/* ===================================
   6th Workshop on Decentralized Finance
   Modern CSS Stylesheet for FC26
   =================================== */

/* CSS Variables for theming - Uniswap-inspired colors (pink, not purple) */
:root {
    --primary-color: #e84393;
    --primary-dark: #c02c6f;
    --accent-color: #ff007a;
    --text-color: #2d3748;
    --text-light: #718096;
    --bg-color: #ffffff;
    --bg-secondary: #fff8fb;
    --border-color: #ffd6ea;
    --highlight-color: #fff0f7;
    --success-color: #48bb78;
    --spacing-unit: 1rem;
    --border-radius: 8px;
    --box-shadow: 0 2px 8px rgba(232, 67, 147, 0.1);
    --box-shadow-hover: 0 4px 12px rgba(232, 67, 147, 0.15);
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-secondary);
    font-size: 16px;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-unit);
}

/* Header */
header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 2rem 0;
    text-align: center;
    box-shadow: var(--box-shadow);
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

header .subtitle {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    opacity: 0.95;
}

header .subtitle a {
    color: var(--highlight-color);
    text-decoration: none;
    border-bottom: 1px solid var(--highlight-color);
    transition: opacity 0.3s ease;
}

header .subtitle a:hover {
    opacity: 0.8;
}

header .event-details {
    font-size: 1.1rem;
    margin-top: 1rem;
    line-height: 1.8;
}

.logo-section {
    margin-bottom: 1rem;
}

.logo {
    max-height: 80px;
    width: auto;
}

/* Navigation */
nav {
    background-color: var(--bg-color);
    box-shadow: var(--box-shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    padding: 0;
}

nav ul li {
    position: relative;
}

nav ul li a {
    display: block;
    padding: 1rem 1.5rem;
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

nav ul li a:hover,
nav ul li a.active {
    background-color: var(--primary-color);
    color: white;
}

/* Dropdown Menu */
.dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--bg-color);
    min-width: 160px;
    box-shadow: var(--box-shadow-hover);
    z-index: 101;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.dropdown-content a {
    padding: 0.75rem 1rem;
    display: block;
    color: var(--text-color);
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.dropdown-content a:hover {
    background-color: var(--bg-secondary);
    color: var(--primary-color);
}

.dropdown:hover .dropdown-content {
    display: block;
}

/* Main Content */
main {
    padding: 2rem 0;
    min-height: 60vh;
}

/* Card Styles */
.card {
    background-color: var(--bg-color);
    border-radius: var(--border-radius);
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--box-shadow);
    transition: box-shadow 0.3s ease;
}

.card:hover {
    box-shadow: var(--box-shadow-hover);
}

.card h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 2rem;
    border-bottom: 3px solid var(--accent-color);
    padding-bottom: 0.5rem;
}

.card h3 {
    color: var(--primary-dark);
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.card h4 {
    color: var(--text-color);
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.card p {
    margin-bottom: 1rem;
    line-height: 1.7;
}

.card ul {
    margin-left: 2rem;
    margin-bottom: 1rem;
}

.card li {
    margin-bottom: 0.5rem;
}

/* Highlight Card */
.highlight-card {
    border-left: 5px solid var(--accent-color);
    background-color: var(--highlight-color);
}

/* Important Dates */
.dates-list {
    list-style: none;
    margin-left: 0;
}

.dates-list li {
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    background-color: var(--bg-color);
    border-radius: var(--border-radius);
    border-left: 4px solid var(--accent-color);
}

.note {
    font-style: italic;
    color: var(--text-light);
    font-size: 0.95rem;
    margin-top: 1rem;
}

/* Submission Types */
.submission-types {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.submission-type {
    padding: 1.5rem;
    background-color: var(--bg-secondary);
    border-radius: var(--border-radius);
    border: 2px solid var(--border-color);
    transition: border-color 0.3s ease;
}

.submission-type:hover {
    border-color: var(--accent-color);
}

.submission-info {
    margin-top: 1.5rem;
    padding: 1rem;
    background-color: var(--highlight-color);
    border-radius: var(--border-radius);
}

/* Topics Grid */
.topics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 0.75rem;
    list-style: none;
    margin-left: 0;
}

.topics-grid li {
    padding: 0.75rem;
    background-color: var(--bg-secondary);
    border-radius: var(--border-radius);
    border-left: 3px solid var(--accent-color);
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.topics-grid li:hover {
    transform: translateX(5px);
    background-color: var(--highlight-color);
}

/* Committee Lists */
.committee-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.committee-member {
    padding: 1.25rem;
    background-color: var(--bg-secondary);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    text-align: center;
    line-height: 1.6;
}

.committee-member:hover {
    box-shadow: var(--box-shadow);
    border-color: var(--accent-color);
}

.committee-member strong {
    display: block;
    color: var(--primary-color);
    font-size: 1.1rem;
}

.pc-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.pc-member {
    padding: 1rem;
    background-color: var(--bg-secondary);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    text-align: center;
    transition: all 0.3s ease;
    line-height: 1.6;
}

.pc-member:hover {
    box-shadow: var(--box-shadow);
    border-color: var(--accent-color);
}

/* Program Page Styles */
.session {
    margin-bottom: 2rem;
}

.session-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    color: white;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
}

.session-header h3 {
    color: white;
    margin: 0 0 0.5rem 0;
    font-size: 1.5rem;
}

.session-time {
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.session-chair {
    font-size: 0.95rem;
    opacity: 0.9;
    margin: 0;
}

.paper {
    padding: 1rem;
    margin-bottom: 0.5rem;
    background-color: var(--bg-secondary);
    border-radius: var(--border-radius);
    border-left: 4px solid var(--accent-color);
    transition: all 0.3s ease;
}

.paper:hover {
    background-color: var(--highlight-color);
    transform: translateX(5px);
}

.paper-title {
    color: var(--primary-dark);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.paper-authors {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
}

.paper-time {
    color: var(--text-color);
    font-weight: 600;
    font-size: 0.9rem;
    margin: 0;
}

.discussion {
    background-color: var(--highlight-color);
    border-left-color: var(--success-color);
    font-weight: 600;
    text-align: center;
}

.break-card {
    background: linear-gradient(135deg, #f6f8fa 0%, #e9ecef 100%);
    text-align: center;
    padding: 1.5rem;
}

.break-card h3 {
    color: var(--text-color);
    margin: 0 0 0.5rem 0;
}

/* Sponsors */
.sponsors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    align-items: center;
    justify-items: center;
    margin-top: 1.5rem;
}

.sponsor {
    text-align: center;
}

.sponsor-logo {
    max-width: 200px;
    height: auto;
    transition: transform 0.3s ease;
}

.sponsor-logo:hover {
    transform: scale(1.05);
}

/* Links */
a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Footer */
footer {
    background-color: var(--primary-dark);
    color: white;
    text-align: center;
    padding: 2rem 0;
    margin-top: 3rem;
}

footer a {
    color: var(--highlight-color);
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    header h1 {
        font-size: 1.8rem;
    }

    header .subtitle {
        font-size: 1rem;
    }

    nav ul {
        flex-direction: column;
    }

    nav ul li {
        width: 100%;
    }

    nav ul li a {
        text-align: center;
    }

    .dropdown-content {
        position: static;
        display: none;
    }

    .dropdown:hover .dropdown-content {
        display: block;
    }

    .card {
        padding: 1.5rem;
    }

    .card h2 {
        font-size: 1.5rem;
    }

    .submission-types,
    .committee-list,
    .topics-grid {
        grid-template-columns: 1fr;
    }

    .logo {
        max-height: 60px;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 1.5rem;
    }

    .card {
        padding: 1rem;
    }

    .card h2 {
        font-size: 1.3rem;
    }

    nav ul li a {
        padding: 0.75rem 1rem;
    }
}

/* Print Styles */
@media print {
    header,
    nav,
    footer {
        page-break-after: avoid;
    }

    .card {
        page-break-inside: avoid;
    }

    a {
        text-decoration: underline;
    }

    .dropdown-content {
        display: none;
    }
}
