/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

/* Page wrapper */
.page-wrapper {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 280px;
    background-color: #f0f0f0;
    border-right: 1px solid #ddd;
    padding: 0;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
}

.sidebar-header {
    padding: 2rem 1.5rem 1rem 1.5rem;
    border-bottom: 1px solid #ddd;
    background-color: #e8e8e8;
}

.sidebar-header h2 {
    color: #333;
    font-size: 1.3rem;
    font-weight: 600;
    line-height: 1.3;
}

/* Sidebar navigation */
.sidebar-nav {
    padding: 0;
}

.sidebar-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sidebar-nav li {
    border-bottom: 1px solid #ddd;
}

.nav-link {
    display: block;
    padding: 1rem 1.5rem;
    color: #333;
    text-decoration: none;
    transition: background-color 0.2s ease;
    font-weight: 400;
}

.nav-link:hover {
    background-color: #e0e0e0;
    color: #000;
}

.nav-link.active {
    background-color: #d0d0d0;
    color: #000;
    font-weight: 500;
}

/* Main content area */
.main-content {
    margin-left: 280px;
    padding: 2rem 3rem;
    flex: 1;
    max-width: calc(100% - 280px);
}

/* Content sections */
.content-section {
    display: none;
    max-width: 900px;
}

.content-section.active {
    display: block !important;
}

/* Debug: temporarily show all sections */
/* .content-section {
    display: block !important;
    border: 2px solid red;
    margin-bottom: 2rem;
} */

.content-section h1 {
    color: #333;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    border-bottom: 3px solid #3b82f6;
    padding-bottom: 1rem;
}

.subtitle {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 2rem;
    font-weight: 500;
}

/* Info cards */
.info-card {
    background: white;
    border-radius: 8px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
}

.info-card h2 {
    color: #1e3a8a;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    border-bottom: 2px solid #3b82f6;
    padding-bottom: 0.5rem;
}

.seminar-details {
    list-style: none;
    margin-bottom: 1.5rem;
}

.seminar-details li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #f3f4f6;
}

.seminar-details li:last-child {
    border-bottom: none;
}

.contact-info p {
    margin-bottom: 0.5rem;
}

.link {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.link:hover {
    color: #1e40af;
    text-decoration: underline;
}

/* Schedule sections */
.semester {
    background: white;
    border-radius: 8px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
}

.semester h2 {
    color: #1e3a8a;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.status {
    color: #6b7280;
    font-style: italic;
    margin-bottom: 1.5rem;
}

.talk {
    padding: 1.5rem;
    background: #f8fafc;
    border-radius: 6px;
    border-left: 4px solid #3b82f6;
    margin-bottom: 1rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.talk:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.talk-date {
    font-weight: 600;
    color: #1e40af;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.speaker-info {
    margin-bottom: 0.5rem;
    color: #374151;
}

.talk-title {
    color: #6b7280;
    line-height: 1.5;
}

.no-seminar {
    padding: 1rem;
    background: #f3f4f6;
    border-radius: 6px;
    border-left: 4px solid #9ca3af;
    margin-bottom: 1rem;
}

.no-seminar .talk-date {
    color: #6b7280;
    font-weight: 500;
}

.no-talks {
    text-align: center;
    color: #6b7280;
    font-style: italic;
    padding: 2rem;
    background: #f8fafc;
    border-radius: 6px;
    border: 2px dashed #d1d5db;
}

/* Organizers */
.organizer {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 6px;
    border-left: 3px solid #3b82f6;
}

.organizer h3 {
    color: #1e3a8a;
    margin-bottom: 0.5rem;
}

.organizer p {
    margin-bottom: 0.25rem;
    color: #6b7280;
}

/* Archive talks detailed */
.archive-talks-detailed {
    background: white;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
}

.archive-talks-detailed h2 {
    color: #1e3a8a;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #3b82f6;
    padding-bottom: 0.5rem;
}

.archive-talk-detailed {
    padding: 1.5rem;
    margin-bottom: 1rem;
    background: #f8fafc;
    border-radius: 6px;
    border-left: 4px solid #3b82f6;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.archive-talk-detailed:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.archive-date {
    font-weight: 600;
    color: #1e40af;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.archive-speaker {
    margin-bottom: 0.5rem;
    color: #374151;
}

.archive-title {
    color: #6b7280;
    line-height: 1.5;
    font-style: italic;
}

.speaker-link {
    color: #3b82f6;
    text-decoration: none;
    transition: color 0.2s ease;
}

.speaker-link:hover {
    color: #1e40af;
    text-decoration: underline;
}

.title-link {
    color: #6b7280;
    text-decoration: none;
    transition: color 0.2s ease;
}

.title-link:hover {
    color: #374151;
    text-decoration: underline;
}

.special-time {
    color: #dc2626;
    font-weight: 600;
}

.format-note {
    color: #059669;
    font-weight: 500;
    font-size: 0.9rem;
    margin-top: 0.25rem;
}

.no-seminar-archive {
    padding: 1rem;
    background: #f3f4f6;
    border-radius: 6px;
    border-left: 4px solid #9ca3af;
    margin-bottom: 1rem;
}

.no-seminar-archive .archive-date {
    color: #6b7280;
    font-weight: 500;
}

/* Footer */
footer {
    background: #1f2937;
    color: white;
    text-align: center;
    padding: 1.5rem 0;
    margin-left: 280px;
}

footer p {
    opacity: 0.8;
}

/* Responsive design */
@media (max-width: 1024px) {
    .sidebar {
        width: 250px;
    }
    
    .main-content {
        margin-left: 250px;
        max-width: calc(100% - 250px);
        padding: 2rem 2rem;
    }
    
    footer {
        margin-left: 250px;
    }
}

@media (max-width: 768px) {
    .page-wrapper {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        height: auto;
        position: static;
        border-right: none;
        border-bottom: 1px solid #ddd;
    }
    
    .main-content {
        margin-left: 0;
        max-width: 100%;
        padding: 1.5rem;
    }
    
    footer {
        margin-left: 0;
    }
    
    .content-section h1 {
        font-size: 2rem;
    }
    
    .info-card,
    .semester,
    .archive-talks-detailed {
        padding: 1.5rem;
    }
    
    .sidebar-nav {
        display: flex;
        overflow-x: auto;
        padding-bottom: 0;
    }
    
    .sidebar-nav ul {
        display: flex;
        min-width: max-content;
    }
    
    .sidebar-nav li {
        border-bottom: none;
        border-right: 1px solid #ddd;
        white-space: nowrap;
    }
    
    .sidebar-nav li:last-child {
        border-right: none;
    }
    
    .nav-link {
        padding: 1rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .content-section h1 {
        font-size: 1.75rem;
    }
    
    .info-card,
    .semester,
    .archive-talks-detailed {
        padding: 1rem;
    }
    
    .main-content {
        padding: 1rem;
    }
    
    .sidebar-header {
        padding: 1.5rem 1rem;
    }
    
    .sidebar-header h2 {
        font-size: 1.1rem;
    }
}

/* Print styles */
@media print {
    .sidebar {
        display: none;
    }
    
    .main-content {
        margin-left: 0;
        max-width: 100%;
    }
    
    footer {
        margin-left: 0;
    }
    
    .content-section {
        display: block !important;
    }
    
    .content-section:not(:first-child) {
        page-break-before: always;
    }
}

.talk {
    padding: 1.5rem;
    background: #f8fafc;
    border-radius: 8px;
    border-left: 4px solid #3b82f6;
    margin-bottom: 1rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.talk:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

.talk-date {
    font-weight: 600;
    color: #1e40af;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.speaker-info {
    margin-bottom: 0.5rem;
    color: #374151;
}

.talk-title {
    color: #6b7280;
    line-height: 1.5;
}

.no-seminar {
    padding: 1rem;
    background: #f3f4f6;
    border-radius: 8px;
    border-left: 4px solid #9ca3af;
    margin-bottom: 1rem;
}

.no-seminar .talk-date {
    color: #6b7280;
    font-weight: 500;
}

.no-talks {
    text-align: center;
    color: #6b7280;
    font-style: italic;
    padding: 2rem;
    background: #f8fafc;
    border-radius: 8px;
    border: 2px dashed #d1d5db;
}

/* Archive section */
.archive {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
    margin-bottom: 2rem;
}

.archive h2 {
    color: #1e3a8a;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    border-bottom: 2px solid #3b82f6;
    padding-bottom: 0.5rem;
}

.archive-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.archive-link {
    color: #3b82f6;
    text-decoration: none;
    padding: 0.75rem 1rem;
    background: #f8fafc;
    border-radius: 6px;
    transition: all 0.2s ease;
    border: 1px solid #e2e8f0;
}

.archive-link:hover {
    background: #e0f2fe;
    color: #1e40af;
    transform: translateX(4px);
}

/* Footer */
footer {
    background: #1f2937;
    color: white;
    text-align: center;
    padding: 1.5rem 0;
    margin-top: 2rem;
}

footer p {
    opacity: 0.8;
}

/* Responsive design */
@media (max-width: 1024px) {
    .main-content-wrapper {
        flex-direction: column;
    }
    
    .sidebar {
        flex: none;
        min-width: auto;
        order: 2;
    }
    
    .main-content {
        order: 1;
    }
    
    .sidebar .archive {
        position: static;
        max-height: none;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    header h1 {
        font-size: 2rem;
    }
    
    .subtitle {
        font-size: 1.1rem;
    }
    
    .info-card,
    .semester,
    .sidebar .archive {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .talk {
        padding: 1rem;
    }
    
    main {
        padding: 1.5rem 0;
    }
    
    .main-content-wrapper {
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 1.75rem;
    }
    
    .info-card,
    .semester,
    .sidebar .archive {
        padding: 1rem;
    }
    
    .main-content-wrapper {
        gap: 1rem;
    }
}

/* Print styles */
@media print {
    body {
        background: white;
        color: black;
    }
    
    header {
        background: white !important;
        color: black !important;
    }
    
    .info-card,
    .semester,
    .archive {
        box-shadow: none;
        border: 1px solid #ccc;
    }
    
    .talk:hover {
        transform: none;
        box-shadow: none;
    }
}
