/* Lesson Page Styles */

/* Layout */
.lesson-page {
    padding-top: 100px;
    min-height: 100vh;
}

.lesson-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 3rem;
    align-items: start;
}

/* Sidebar */
.lesson-sidebar {
    position: sticky;
    top: 100px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 1.5rem;
    backdrop-filter: blur(20px);
}

.sidebar-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--glass-border);
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.back-link:hover {
    color: var(--accent-primary);
}

.module-info-sidebar h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-top: 0.5rem;
}

.module-badge-sm {
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: white;
    border-radius: 20px;
    font-weight: 500;
}

.lessons-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
}

.lesson-nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    border-radius: 8px;
    color: var(--text-secondary);
    transition: all 0.3s ease;
    font-size: 0.85rem;
}

.lesson-nav-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
}

.lesson-nav-item.active {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(236, 72, 153, 0.2));
    color: var(--accent-primary);
    border: 1px solid rgba(139, 92, 246, 0.3);
}

.lesson-nav-item.completed {
    position: relative;
}

.lesson-nav-item.completed::after {
    content: '✓';
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #10b981;
    font-size: 14px;
    font-weight: bold;
}

.lesson-nav-item.completed .nav-number {
    background: #10b981;
    color: white;
    border-radius: 4px;
    padding: 2px 6px;
}

.nav-number {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
    min-width: 24px;
}

.nav-title {
    line-height: 1.3;
}

/* Lesson Content */
.lesson-content {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2.5rem;
    backdrop-filter: blur(20px);
}

.lesson-header {
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--glass-border);
}

.lesson-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.lesson-badge {
    padding: 0.35rem 1rem;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: white;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.reading-time {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.lesson-content h1 {
    font-size: 2.25rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--text-primary), var(--accent-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.lesson-intro {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Content Sections */
.lesson-body {
    color: var(--text-secondary);
    line-height: 1.8;
}

.content-section {
    margin-bottom: 2.5rem;
}

.content-section h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
    padding-left: 1rem;
    border-left: 3px solid var(--accent-primary);
}

.content-section p {
    margin-bottom: 1rem;
}

.content-section strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* Info Boxes */
.info-box {
    display: flex;
    gap: 1rem;
    padding: 1.25rem;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 12px;
    margin: 1.5rem 0;
}

.info-box-warning {
    background: rgba(245, 158, 11, 0.1);
    border-color: rgba(245, 158, 11, 0.3);
}

.info-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.info-content h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.info-content p {
    margin: 0;
    font-size: 0.95rem;
}

/* Info Box with Header */
.info-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
    color: var(--text-primary);
}

.info-header .info-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: rgba(139, 92, 246, 0.3);
    border-radius: 50%;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--accent-primary);
}

.info-box p {
    margin: 0;
    line-height: 1.7;
}

/* Warning Box */
.warning-box {
    padding: 1.25rem 1.5rem;
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 12px;
    margin: 1.5rem 0;
}

.warning-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
    color: #f59e0b;
}

.warning-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: rgba(245, 158, 11, 0.3);
    border-radius: 50%;
    font-size: 0.9rem;
    font-weight: 700;
    color: #f59e0b;
}

.warning-box p {
    margin: 0;
    line-height: 1.7;
}

.warning-box ul {
    margin: 0.5rem 0 0 0;
    padding-left: 1.25rem;
}

.warning-box li {
    margin-bottom: 0.5rem;
}

/* Tip Box */
.tip-box {
    padding: 1.25rem 1.5rem;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 12px;
    margin: 1.5rem 0;
}

.tip-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
    color: #10b981;
}

.tip-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: rgba(16, 185, 129, 0.3);
    border-radius: 50%;
    font-size: 0.9rem;
    font-weight: 700;
    color: #10b981;
}

.tip-box p {
    margin: 0;
    line-height: 1.7;
}

/* Highlight Box */
.highlight-box {
    padding: 1.5rem 2rem;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(236, 72, 153, 0.1));
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 16px;
    margin: 1.5rem 0;
    text-align: center;
}

.highlight-box h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 0.5rem 0;
    line-height: 1.4;
}

.highlight-box p {
    margin: 0;
    color: var(--text-secondary);
}

/* Key Points */
.key-points {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 1.5rem 0;
}

.key-point {
    display: flex;
    gap: 1.25rem;
    padding: 1.25rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.key-point:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--accent-primary);
}

.point-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    min-width: 40px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    color: white;
}

.point-content h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 0.5rem 0;
}

.point-content p {
    margin: 0;
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Grid Layout */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin: 1.5rem 0;
}

.grid-card {
    padding: 1.25rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
}

.grid-card h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 0.75rem 0;
}

.grid-card p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.grid-card ul {
    margin: 0;
    padding-left: 1.25rem;
}

.grid-card li {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.grid-card.red {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.3);
}

.grid-card.red h4 {
    color: #ef4444;
}

.grid-card.green {
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.3);
}

.grid-card.green h4 {
    color: #10b981;
}

/* Styled List */
.styled-list {
    margin: 1rem 0;
    padding-left: 0;
    list-style: none;
}

.styled-list li {
    position: relative;
    padding-left: 1.75rem;
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

.styled-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.6em;
    width: 8px;
    height: 8px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border-radius: 50%;
}

/* Script Box */
.script-box {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    overflow: hidden;
    margin: 1rem 0;
}

.script-header {
    padding: 0.75rem 1.25rem;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(236, 72, 153, 0.15));
    border-bottom: 1px solid var(--glass-border);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--accent-primary);
}

.script-content {
    padding: 1.25rem;
}

.script-content p {
    margin: 0 0 0.75rem 0;
    line-height: 1.7;
}

.script-content p:last-child {
    margin-bottom: 0;
}

/* Chat Example */
.chat-example {
    margin: 1.5rem 0;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
}

.chat-message {
    max-width: 80%;
    padding: 0.75rem 1rem;
    border-radius: 16px;
    margin-bottom: 0.75rem;
}

.chat-message:last-child {
    margin-bottom: 0;
}

.chat-message.incoming {
    background: rgba(255, 255, 255, 0.1);
    border-bottom-left-radius: 4px;
    margin-right: auto;
}

.chat-message.outgoing {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.3), rgba(236, 72, 153, 0.3));
    border-bottom-right-radius: 4px;
    margin-left: auto;
}

.chat-message p {
    margin: 0;
    line-height: 1.5;
}

/* Table Styles */
.table-wrapper {
    overflow-x: auto;
    margin: 1.5rem 0;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
}

.styled-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.styled-table th,
.styled-table td {
    padding: 1rem 1.25rem;
    text-align: left;
    border-bottom: 1px solid var(--glass-border);
}

.styled-table th {
    background: rgba(139, 92, 246, 0.15);
    font-weight: 600;
    color: var(--text-primary);
}

.styled-table tr:last-child td {
    border-bottom: none;
}

.styled-table tr:hover td {
    background: rgba(255, 255, 255, 0.03);
}

/* Example Box Improvements */
.example-box {
    padding: 1.25rem 1.5rem;
}

.example-box p {
    margin: 0 0 0.75rem 0;
}

.example-box p:last-child {
    margin-bottom: 0;
}

.example-box hr {
    border: none;
    border-top: 1px solid rgba(16, 185, 129, 0.2);
    margin: 1rem 0;
}

.example-box ul {
    margin: 0;
    padding-left: 1.25rem;
}

.example-box li {
    margin-bottom: 0.5rem;
}

/* Exercise Box */
.exercise-box {
    padding: 1.5rem;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 12px;
    margin: 1.5rem 0;
}

.exercise-box h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #3b82f6;
    margin: 0 0 1rem 0;
}

.exercise-box p {
    margin: 0 0 0.75rem 0;
}

.exercise-box ol {
    margin: 0.75rem 0;
    padding-left: 1.5rem;
}

.exercise-box li {
    margin-bottom: 0.5rem;
}

/* Summary section styling */
.content-section.summary {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(236, 72, 153, 0.05));
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 16px;
    padding: 1.5rem 2rem;
    margin-top: 2rem;
}

.content-section.summary h2 {
    border-left: none;
    padding-left: 0;
    text-align: center;
    margin-bottom: 1.5rem;
}

.content-section.summary ul {
    margin: 0;
    padding-left: 1.5rem;
}

.content-section.summary li {
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

/* Example Boxes */
.example-box {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 12px;
    overflow: hidden;
    margin: 1.5rem 0;
}

.example-box.example-bad {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.3);
}

.example-box.example-good {
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.3);
}

.example-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.example-badge {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent-green);
}

.example-bad .example-badge {
    color: #ef4444;
}

.example-type {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.example-content {
    padding: 1rem;
}

.example-content p {
    margin: 0;
    font-style: italic;
    color: var(--text-primary);
}

.example-content ul {
    margin: 0;
    padding-left: 1.25rem;
}

.example-content li {
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

/* Type Cards */
.type-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    overflow: hidden;
    margin: 1.5rem 0;
    transition: all 0.3s ease;
}

.type-card:hover {
    border-color: var(--accent-primary);
    transform: translateY(-2px);
}

.type-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(236, 72, 153, 0.1));
    border-bottom: 1px solid var(--glass-border);
}

.type-icon {
    font-size: 1.75rem;
}

.type-header h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.type-content {
    padding: 1.5rem;
}

.type-content p {
    margin-bottom: 1rem;
}

.type-content p:last-child {
    margin-bottom: 0;
}

/* Features List */
.features-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 1.5rem 0;
}

.feature-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.feature-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--accent-primary);
}

.feature-icon-sm {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.feature-item h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.feature-item p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Lesson Summary */
.lesson-summary {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(236, 72, 153, 0.1));
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 16px;
    padding: 1.5rem;
    margin-top: 2rem;
}

.lesson-summary h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.lesson-summary ul {
    margin: 0;
    padding-left: 1.25rem;
}

.lesson-summary li {
    margin-bottom: 0.75rem;
    color: var(--text-secondary);
}

.lesson-summary li:last-child {
    margin-bottom: 0;
}

.lesson-summary strong {
    color: var(--accent-primary);
}

/* Lesson Navigation */
.lesson-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--glass-border);
}

.nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: var(--text-secondary);
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
}

.nav-btn:hover {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border-color: transparent;
    color: white;
    transform: translateY(-2px);
}

.nav-btn.nav-complete {
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.3);
    color: #10b981;
}

.nav-btn.nav-complete:hover {
    background: rgba(16, 185, 129, 0.2);
    border-color: rgba(16, 185, 129, 0.5);
    color: #10b981;
    transform: translateY(-2px);
}

.nav-btn.nav-complete.completed {
    background: linear-gradient(135deg, #10b981, #059669);
    border-color: transparent;
    color: white;
}

.nav-btn.nav-finish {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border-color: transparent;
    color: white;
}

.nav-placeholder {
    width: 120px;
}

/* Keyboard hint */
.lesson-navigation::after {
    content: 'Используй ← → для навигации';
    position: absolute;
    bottom: -2rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.75rem;
    color: var(--text-muted);
    opacity: 0.5;
}

.lesson-navigation {
    position: relative;
}

/* Responsive */
@media (max-width: 1024px) {
    .lesson-layout {
        grid-template-columns: 1fr;
    }
    
    .lesson-sidebar {
        position: static;
        margin-bottom: 2rem;
    }
    
    .lessons-nav {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .lesson-nav-item {
        flex: 1;
        min-width: 150px;
    }
}

@media (max-width: 768px) {
    .lesson-content {
        padding: 1.5rem;
    }
    
    .lesson-content h1 {
        font-size: 1.75rem;
    }
    
    .content-section h2 {
        font-size: 1.25rem;
    }
    
    .lesson-navigation {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-btn {
        justify-content: center;
    }
    
    .nav-placeholder {
        display: none;
    }
    
    .grid-2 {
        grid-template-columns: 1fr;
    }
    
    .key-point {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .point-number {
        margin: 0 auto;
    }
    
    .chat-message {
        max-width: 90%;
    }
}

/* ==========================================
   COMMENTS SECTION
   ========================================== */

.comments-section {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--glass-border);
}

.comments-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.comments-header h3 {
    font-size: 1.25rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.comments-count {
    background: var(--accent-primary);
    color: white;
    padding: 0.15rem 0.5rem;
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Comment Form */
.comment-form {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
}

.comment-form textarea {
    width: 100%;
    min-height: 100px;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: var(--font-primary);
    font-size: 0.95rem;
    resize: vertical;
    margin-bottom: 1rem;
}

.comment-form textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
}

.comment-form textarea::placeholder {
    color: var(--text-muted);
}

.comment-form-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.comment-form-hint {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.comment-submit-btn {
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border: none;
    border-radius: 8px;
    color: white;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.comment-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(139, 92, 246, 0.3);
}

.comment-submit-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Comment List */
.comments-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.comment-item {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 1.25rem;
}

.comment-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.comment-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.comment-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: white;
    font-size: 0.9rem;
}

.comment-author-info {
    display: flex;
    flex-direction: column;
}

.comment-author-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.comment-date {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.comment-content {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 0.95rem;
}

/* Admin Reply */
.comment-reply {
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(139, 92, 246, 0.1);
    border-left: 3px solid var(--accent-primary);
    border-radius: 0 8px 8px 0;
}

.comment-reply-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--accent-primary);
    font-size: 0.85rem;
}

.comment-reply-content {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Empty state */
.comments-empty {
    text-align: center;
    padding: 2rem;
    color: var(--text-muted);
}

.comments-empty-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

/* Loading */
.comments-loading {
    text-align: center;
    padding: 2rem;
    color: var(--text-muted);
}

/* Login prompt */
.comment-login-prompt {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    margin-bottom: 1.5rem;
}

.comment-login-prompt p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.comment-login-btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border-radius: 8px;
    color: white;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.comment-login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(139, 92, 246, 0.3);
}

/* Success message */
.comment-success {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    color: #10b981;
    text-align: center;
}

@media (max-width: 768px) {
    .comments-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .comment-form-footer {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    
    .comment-form-hint {
        text-align: center;
    }
    
    .comment-submit-btn {
        width: 100%;
    }
}
