/* Replit Content Machine - Professional Styling */

:root {
    /* Replit Brand Colors - Clean and Professional */
    --replit-primary: #000000;
    --replit-secondary: #333333;
    --replit-accent: #6366f1;
    --replit-success: #10b981;
    --replit-warning: #f59e0b;
    --replit-danger: #ef4444;
    --replit-dark: #000000;
    --replit-light: #f8fafc;
    --replit-muted: #64748b;
    --replit-border: #e2e8f0;
    
    /* Platform Colors */
    --platform-twitter: #1DA1F2;
    --platform-linkedin: #0077B5;
    --platform-tiktok: #FF0050;
    --platform-instagram: #E4405F;
    --platform-youtube: #FF0000;
    --platform-blog: #10b981;
    
    /* Gradients - Nucleus Style */
    --gradient-primary: linear-gradient(135deg, var(--replit-primary) 0%, var(--replit-secondary) 100%);
    --gradient-hero: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    --gradient-accent: linear-gradient(135deg, var(--replit-accent) 0%, #8b5cf6 100%);
}

/* Global Styles - Professional Typography */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.5;
    color: var(--replit-dark);
    background-color: #ffffff;
    font-weight: 400;
    letter-spacing: -0.025em;
    position: relative;
}

/* Clean Top-Right Navigation */
.position-absolute.top-0.end-0 {
    /* No special styling - clean and flat */
}

/* Two-Column Layout - Posts Page */
.video-column {
    position: sticky;
    top: 90px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
}

.posts-wrapper {
    background: #f8f9fa;
    border-radius: 20px;
    padding: 2rem;
    min-height: calc(100vh - 120px);
    position: relative;
    max-width: 700px;
    margin: 0 auto;
}

.posts-column {
    max-height: calc(100vh - 140px);
    overflow-y: auto;
    padding-right: 15px;
}

/* Custom scrollbar for posts column */
.posts-column::-webkit-scrollbar {
    width: 8px;
}

.posts-column::-webkit-scrollbar-track {
    background: transparent;
    border-radius: 4px;
}

.posts-column::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.15);
    border-radius: 4px;
}

.posts-column::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.25);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .video-column {
        position: static;
        max-height: none;
        margin-bottom: 2rem;
    }
    
    .posts-wrapper {
        padding: 1.5rem;
        min-height: auto;
        max-width: none;
        margin: 0;
    }
    
    .posts-column {
        max-height: none;
        overflow-y: visible;
        padding-right: 0;
    }
}

/* Hero Section */
.hero-section {
    background: var(--gradient-hero);
    padding: 80px 0 60px;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cg opacity='0.03'%3E%3Ccircle cx='50' cy='50' r='40' fill='none' stroke='%23007AFF' stroke-width='0.5'/%3E%3Ccircle cx='50' cy='50' r='25' fill='none' stroke='%23007AFF' stroke-width='0.5'/%3E%3Ccircle cx='50' cy='50' r='10' fill='none' stroke='%23007AFF' stroke-width='0.5'/%3E%3C/g%3E%3C/svg%3E") center center;
    background-size: 200px 200px;
}

.hero-icon {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    box-shadow: 0 10px 30px rgba(0, 122, 255, 0.3);
}

.hero-icon i {
    font-size: 36px;
    color: white;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--replit-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* Section Headers */
.section-header {
    margin-bottom: 3rem;
}

.section-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--replit-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.section-icon i {
    font-size: 20px;
    color: white;
}

.section-title {
    font-size: 1.875rem;
    font-weight: 600;
    color: var(--replit-dark);
    margin-bottom: 0.5rem;
    letter-spacing: -0.025em;
}

.section-subtitle {
    font-size: 1rem;
    color: var(--replit-muted);
    max-width: 500px;
    margin: 0 auto;
    font-weight: 400;
    line-height: 1.6;
}

/* Input Section */
.input-section {
    max-width: 600px;
    margin: 0 auto;
}

.input-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    border: 1px solid var(--replit-border);
}

.input-wrapper {
    position: relative;
}

.url-input {
    border: 1px solid var(--replit-border);
    border-radius: 12px;
    padding: 0.875rem 0.875rem 0.875rem 3rem;
    font-size: 1rem;
    transition: all 0.2s ease;
    background: white;
    font-weight: 400;
}

.url-input:focus {
    border-color: var(--replit-primary);
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05);
}

.input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--replit-muted);
    font-size: 1.25rem;
}

.input-help {
    color: var(--replit-muted);
    font-size: 0.875rem;
    margin-top: 0.75rem;
    text-align: center;
}

/* Platform Cards Grid */
.platforms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    max-width: 1000px;
    margin: 0 auto;
}

.platform-card {
    background: white;
    border-radius: 16px;
    border: 1px solid var(--replit-border);
    transition: all 0.2s ease;
    overflow: hidden;
}

.platform-card:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border-color: var(--replit-muted);
}

.platform-header {
    padding: 1.5rem 1.5rem 1rem;
    text-align: center;
}

.platform-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 20px;
    color: white;
}

.platform-icon.twitter { background: #000000; }
.platform-icon.linkedin { background: var(--platform-linkedin); }
.platform-icon.tiktok { background: #000000; }
.platform-icon.instagram { background: var(--platform-instagram); }
.platform-icon.youtube { background: var(--platform-youtube); }
.platform-icon.blog { background: var(--platform-blog); }

.platform-name {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--replit-dark);
    margin: 0;
    letter-spacing: -0.025em;
}

.platform-fields {
    padding: 0 1.5rem 1.5rem;
}

.field-group {
    margin-bottom: 1rem;
}

.field-label {
    font-weight: 500;
    color: var(--replit-dark);
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    letter-spacing: -0.025em;
}

.platform-input {
    border: 1px solid var(--replit-border);
    border-radius: 12px;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.platform-input:focus {
    border-color: var(--replit-primary);
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05);
}

/* Button Outline Styles */
.btn-outline-primary {
    border: 1px solid var(--replit-border);
    color: var(--replit-dark);
    background: white;
    border-radius: 12px;
    padding: 0.5rem 1rem;
    font-weight: 500;
    transition: all 0.2s ease;
    font-size: 0.875rem;
}

.btn-outline-primary:hover {
    background: var(--replit-light);
    border-color: var(--replit-muted);
    color: var(--replit-dark);
}

/* Launch Button - Nucleus Style */
.btn-launch {
    background: var(--replit-primary);
    border: none;
    border-radius: 12px;
    padding: 0.875rem 2rem;
    font-size: 1rem;
    font-weight: 500;
    color: white;
    transition: all 0.2s ease;
    letter-spacing: -0.025em;
}

.btn-launch:hover {
    background: var(--replit-secondary);
    transform: translateY(-1px);
    color: white;
}

.processing-info {
    color: var(--replit-muted);
    font-size: 0.875rem;
}

/* Loading Modal */
.blast-modal {
    border: none;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.blast-animation {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto;
}

.blast-rocket {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: white;
    animation: rocket-bounce 2s ease-in-out infinite;
    position: relative;
    z-index: 2;
}

.blast-waves {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.wave {
    position: absolute;
    border: 2px solid var(--replit-primary);
    border-radius: 20px;
    opacity: 0.6;
    animation: wave-expand 2s ease-out infinite;
}

.wave-1 { animation-delay: 0s; }
.wave-2 { animation-delay: 0.7s; }
.wave-3 { animation-delay: 1.4s; }

@keyframes rocket-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes wave-expand {
    0% {
        width: 80px;
        height: 80px;
        opacity: 0.6;
    }
    100% {
        width: 160px;
        height: 160px;
        margin-left: -40px;
        margin-top: -40px;
        opacity: 0;
    }
}

.blast-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--replit-dark);
    margin-bottom: 0.5rem;
}

.blast-description {
    color: var(--replit-muted);
    font-size: 1rem;
}

.blast-progress {
    height: 6px;
    background: var(--replit-light);
    border-radius: 3px;
    overflow: hidden;
}

.blast-progress .progress-bar {
    background: var(--gradient-primary);
    transition: width 0.3s ease;
}

/* Results Page */
.results-hero {
    background: var(--gradient-hero);
    padding: 40px 0;
    border-bottom: 1px solid var(--replit-border);
}

.results-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.results-icon i {
    font-size: 24px;
    color: white;
}

.results-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--replit-dark);
}

.results-subtitle {
    font-size: 1.125rem;
    color: var(--replit-muted);
}

/* Content Cards */
.content-card {
    transition: all 0.3s ease;
    margin-bottom: 1.5rem;
}

.content-card:hover {
    /* No movement on hover */
}

.content-card .card {
    border: 1px solid var(--replit-border);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.content-card:hover .card {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-color: var(--replit-primary);
}

.platform-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.platform-badge {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    color: white;
}

.platform-badge.platform-twitter { background: var(--platform-twitter); }
.platform-badge.platform-linkedin { background: var(--platform-linkedin); }
.platform-badge.platform-tiktok { background: var(--platform-tiktok); }
.platform-badge.platform-instagram { background: var(--platform-instagram); }
.platform-badge.platform-youtube { background: var(--platform-youtube); }
.platform-badge.platform-blog { background: var(--platform-blog); }

.draft-content {
    background: var(--replit-light);
    border-radius: 12px;
    padding: 1rem;
    border-left: 4px solid var(--replit-primary);
}

.draft-text {
    font-style: italic;
    line-height: 1.6;
    white-space: pre-wrap;
    color: var(--replit-dark);
}

.blockquote-sm {
    font-size: 0.9rem;
    border-left: 4px solid var(--replit-warning);
    padding: 1rem;
    margin: 0;
    background: rgba(255, 159, 10, 0.1);
    border-radius: 12px;
}

.reasoning {
    background: rgba(48, 209, 88, 0.1);
    border-radius: 12px;
    padding: 1rem;
    border-left: 4px solid var(--replit-success);
}

.copy-btn {
    background: var(--replit-primary);
    border: none;
    border-radius: 12px;
    color: white;
    font-weight: 600;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
}

.copy-btn:hover {
    background: var(--replit-secondary);
    transform: translateY(-1px);
    color: white;
}

.copy-btn.copied {
    background: var(--replit-success);
    color: white;
}

/* Tabs */
.nav-tabs {
    border-bottom: 1px solid var(--replit-border);
}

.nav-tabs .nav-link {
    border: none;
    border-bottom: 3px solid transparent;
    background: none;
    color: var(--replit-muted);
    font-weight: 600;
    padding: 1rem 1.5rem;
    transition: all 0.3s ease;
}

.nav-tabs .nav-link:hover {
    border-bottom-color: var(--replit-primary);
    color: var(--replit-primary);
    background: rgba(0, 122, 255, 0.05);
}

.nav-tabs .nav-link.active {
    border-bottom-color: var(--replit-primary);
    color: var(--replit-primary);
    background: rgba(0, 122, 255, 0.05);
}

/* Card Styling */
.card-header {
    background: var(--replit-light);
    border-bottom: 1px solid var(--replit-border);
    padding: 1rem 1.5rem;
}

.card-footer {
    background: var(--replit-light);
    border-top: 1px solid var(--replit-border);
    padding: 1rem 1.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .platforms-grid {
        grid-template-columns: 1fr;
    }
    
    .results-title {
        font-size: 2rem;
    }
    
    .nav-tabs .nav-link {
        font-size: 0.875rem;
        padding: 0.75rem 1rem;
    }
}

/* Animation for content appearance */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.content-card {
    animation: fadeInUp 0.5s ease forwards;
}

/* Stagger animation for multiple cards */
.content-card:nth-child(1) { animation-delay: 0.1s; }
.content-card:nth-child(2) { animation-delay: 0.2s; }
.content-card:nth-child(3) { animation-delay: 0.3s; }
.content-card:nth-child(4) { animation-delay: 0.4s; }
.content-card:nth-child(5) { animation-delay: 0.5s; }
.content-card:nth-child(6) { animation-delay: 0.6s; }

/* Toast Positioning */
.toast-container {
    z-index: 1055;
}

/* Settings Card - Nucleus Style */
.settings-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    border: 1px solid var(--replit-border);
    max-width: 500px;
    margin: 0 auto;
    transition: all 0.2s ease;
}

.settings-card:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border-color: var(--replit-muted);
}

.settings-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--replit-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.settings-icon i {
    font-size: 20px;
    color: white;
}

.settings-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--replit-dark);
    margin-bottom: 0.5rem;
    letter-spacing: -0.025em;
}

.settings-description {
    color: var(--replit-muted);
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
    font-weight: 400;
}

/* Uploads Section */
.uploads-section {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 1px solid var(--replit-border);
}

.uploads-section .section-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--replit-dark);
    margin-bottom: 2rem;
    letter-spacing: -0.025em;
    position: relative;
}

.uploads-section .section-title::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--replit-primary);
    border-radius: 2px;
}

.upload-card {
    border: 1px solid var(--replit-border);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04), 0 1px 3px rgba(0, 0, 0, 0.06);
    background: white;
    position: relative;
}

.upload-card:hover {
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.1), 0 2px 8px rgba(0, 0, 0, 0.08);
    border-color: var(--replit-primary);
}

.upload-thumbnail {
    position: relative;
    height: 180px;
    overflow: hidden;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.upload-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.upload-card:hover .upload-thumbnail img {
    /* No scaling on hover */
}

.thumbnail-placeholder {
    width: 100%;
    height: 180px;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--replit-muted);
    font-size: 0.875rem;
    font-weight: 500;
}

.upload-card .card-body {
    padding: 1.5rem;
    background: white;
}

.upload-card .card-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--replit-dark);
    margin-bottom: 1rem;
    line-height: 1.4;
    letter-spacing: -0.025em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 2.8rem;
}

.upload-stats {
    margin-bottom: 1.25rem;
}

.posts-count {
    font-size: 0.875rem;
    color: var(--replit-muted);
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
}

.posts-count::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--replit-primary);
    border-radius: 50%;
    display: inline-block;
}

/* Modern button styling for upload cards */
.upload-card .btn-primary {
    background: var(--replit-primary);
    border: none;
    border-radius: 12px;
    padding: 0.75rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: white;
    transition: all 0.2s ease;
    letter-spacing: -0.025em;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    width: 100%;
    justify-content: center;
}

.upload-card .btn-primary:hover {
    background: var(--replit-secondary);
    color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.upload-card .btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.upload-card .btn-primary i {
    font-size: 0.875rem;
    opacity: 0.9;
}

/* Debug: Hide any remaining overlay elements */
.upload-overlay,
.upload-date {
    display: none !important;
}

/* Posts Page Styling */
.video-header {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--replit-border);
}

/* Video title styling - ensure full title is always visible */
.video-info h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--replit-dark);
    line-height: 1.4;
    letter-spacing: -0.025em;
    margin-bottom: 1rem;
    /* Remove any text truncation */
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    /* Allow wrapping to multiple lines */
    word-wrap: break-word;
    word-break: break-word;
}

.video-header iframe {
    border-radius: 12px;
}

.video-fallback {
    border: 2px dashed var(--replit-border);
}

/* Timestamp button styling */
.jump-to-timestamp {
    transition: all 0.2s ease;
}

.jump-to-timestamp:hover:not(:disabled) {
    transform: translateY(-1px);
}

.jump-to-timestamp:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.timestamp-info {
    border: 1px solid var(--replit-border) !important;
}

/* Post type sections */
.post-type-section {
    border: 1px solid var(--replit-border);
    border-radius: 16px;
    overflow: hidden;
    background: white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    margin-bottom: 1.5rem;
    transition: all 0.2s ease;
    max-width: 550px;
    margin-left: auto;
    margin-right: auto;
}

.post-type-section:hover {
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

/* Responsive adjustments for platform sections */
@media (max-width: 991.98px) {
    .post-type-section {
        max-width: none;
        margin-left: 0;
        margin-right: 0;
    }
}

.post-type-header {
    background: transparent;
    border-bottom: 1px solid var(--replit-border);
    padding: 0.75rem 1rem;
}

.post-type-header button {
    color: var(--replit-dark) !important;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.post-type-header button:hover {
    color: var(--replit-primary) !important;
}

.post-type-header .fas.fa-chevron-down {
    transition: transform 0.2s ease;
    opacity: 0.6;
}

.post-type-header button[aria-expanded="false"] .fas.fa-chevron-down {
    transform: rotate(-90deg);
}

.post-type-section .collapse {
    padding: 0.75rem 1rem 1rem 1rem;
}

/* Responsive adjustments for video header */
@media (max-width: 991.98px) {
    .video-header {
        padding: 1.5rem;
    }
    
    .video-header .col-lg-8 {
        margin-bottom: 2rem;
    }
    
    .timestamp-info .d-flex {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start !important;
    }
    
    .jump-to-timestamp {
        font-size: 0.75rem;
        padding: 0.25rem 0.5rem;
    }
    
    .post-type-header {
        padding: 0.75rem;
    }
    
    .post-type-section .collapse {
        padding: 0 0.75rem 0.75rem 0.75rem;
    }
}

.post-card {
    border: 1px solid var(--replit-border);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    background: white;
}

.post-card:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.post-card .card-body {
    padding: 1rem;
}

.post-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--replit-primary);
    letter-spacing: -0.025em;
    line-height: 1.3;
    margin-bottom: 0.75rem;
    border-bottom: 1px solid var(--replit-border);
    padding-bottom: 0.75rem;
}

.post-content {
    max-height: 180px;
    overflow-y: auto;
    margin: 0;
}

.post-text {
    white-space: pre-wrap;
    font-family: inherit;
    margin: 0;
    font-size: 0.85rem;
    line-height: 1.4;
    color: var(--replit-dark);
    background: none;
    border: none;
    padding: 0;
}

.post-card .card-footer {
    background: transparent;
    border-top: 1px solid var(--replit-border);
    padding: 0.5rem 1rem;
}

.copy-btn, .jump-to-timestamp {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    font-size: 0.75rem;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    opacity: 0.6;
}

.copy-btn {
    border: none;
    background: transparent;
    color: var(--replit-muted);
}

.copy-btn:hover {
    background: var(--replit-light);
    color: var(--replit-dark);
    opacity: 1;
}

.timestamp-clickable {
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    opacity: 0.7;
}

.timestamp-clickable:hover {
    background: var(--replit-light);
    opacity: 1;
}

.timestamp-icon {
    font-size: 0.75rem;
    color: var(--replit-muted);
}

.timestamp-clickable:hover .timestamp-icon {
    color: var(--replit-primary);
}

.timestamp-display {
    font-size: 0.7rem;
    color: var(--replit-muted);
    font-weight: 500;
    user-select: none;
}

.timestamp-clickable:hover .timestamp-display {
    color: var(--replit-dark);
}

/* Copy feedback */
.copy-feedback {
    position: absolute;
    top: -25px;
    right: 0;
    background: var(--replit-dark);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.7rem;
    opacity: 0;
    transform: translateY(5px);
    transition: all 0.2s ease;
    pointer-events: none;
    z-index: 10;
}

.copy-feedback.show {
    opacity: 1;
    transform: translateY(0);
}

.copy-btn {
    position: relative;
}

.empty-state {
    padding: 3rem;
}

.empty-state i {
    opacity: 0.5;
}

/* Loading state for posts page */
.loading-posts-spinner {
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

#posts-loading-state .progress {
    background-color: var(--replit-border);
    border-radius: 4px;
    overflow: hidden;
}

#posts-loading-state .progress-bar {
    background: var(--gradient-accent);
    animation: shimmer 2s ease-in-out infinite;
}

@keyframes shimmer {
    0% {
        opacity: 0.8;
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0.8;
    }
}

/* Status badges */
.badge.bg-success { background-color: var(--replit-success) !important; }
.badge.bg-danger { background-color: var(--replit-danger) !important; }
.badge.bg-secondary { background-color: var(--replit-muted) !important; }

/* Utility Classes */
.text-nucleus-primary { color: var(--replit-primary); }
.text-nucleus-muted { color: var(--replit-muted); }
.bg-nucleus-light { background-color: var(--replit-light); }