/*
 * AI&OG Workshop - Modern Sleek Stylesheet
 * WCAG AA compliant contrast ratios (4.5:1 minimum)
 * Clean, modern design with visual depth
 */

/* Notice banner */
.notice-banner {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-bottom: 2px solid #f59e0b;
    padding: 14px 20px;
    text-align: center;
    color: #92400e;
    font-size: 0.95rem;
}

.notice-banner strong {
    color: #78350f;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Source Sans 3', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.7;
    color: #1a1a1a;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    background-attachment: fixed;
    font-size: 17px;
    min-height: 100vh;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header - Modern gradient with depth */
header {
    background:
        linear-gradient(135deg, rgba(15, 23, 42, 0.85) 0%, rgba(30, 58, 95, 0.8) 50%, rgba(30, 64, 175, 0.75) 100%),
        url('header.jpg') center/cover no-repeat;
    color: #ffffff;
    padding: 100px 20px 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 80%, rgba(59, 130, 246, 0.25) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(147, 51, 234, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(6, 182, 212, 0.1) 0%, transparent 40%);
    pointer-events: none;
}

header .container {
    position: relative;
    z-index: 1;
}

header h1 {
    font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 3.2rem;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: -2px;
    color: #ffffff;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
}

header h1 a {
    color: inherit;
    text-decoration: none;
    border-bottom: none;
}

header h1 a:hover {
    color: inherit;
}

header .subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.95);
    max-width: 650px;
    margin: 0 auto 28px;
    font-weight: 400;
    line-height: 1.6;
}

header .venue {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    display: inline-block;
    padding: 12px 28px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

header .venue a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    border-bottom: 2px solid rgba(255, 255, 255, 0.5);
    transition: border-color 0.3s ease;
}

header .venue a:hover,
header .venue a:focus {
    border-bottom-color: #ffffff;
}

header .conference-details {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.75);
    margin-top: 16px;
    line-height: 1.6;
}

/* Navigation - Sleek floating style */
nav {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(20px);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
    padding: 20px 0 10px 0;
    margin: 0;
}

nav ul li a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 6px;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(-50%);
    border-radius: 2px;
}

nav ul li a:hover,
nav ul li a:focus,
nav ul li a.active {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
    outline: none;
}

nav ul li a:hover::after,
nav ul li a:focus::after,
nav ul li a.active::after {
    width: 60%;
}

nav ul li a:focus-visible {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

/* Main content */
main.container {
    padding: 40px 24px 40px;
}

section {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 40px 44px;
    margin-bottom: 32px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow:
        0 4px 6px -1px rgba(0, 0, 0, 0.05),
        0 10px 15px -3px rgba(0, 0, 0, 0.08),
        0 20px 25px -5px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

section:hover {
    transform: translateY(-2px);
    box-shadow:
        0 8px 12px -2px rgba(0, 0, 0, 0.08),
        0 16px 24px -4px rgba(0, 0, 0, 0.1),
        0 24px 32px -8px rgba(0, 0, 0, 0.06);
}

/* Typography */
h2 {
    font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 1.75rem;
    color: #0f172a;
    margin-bottom: 24px;
    padding-bottom: 16px;
    position: relative;
    letter-spacing: -0.5px;
    font-weight: 600;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
    border-radius: 4px;
}

h3 {
    font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 1.15rem;
    color: #1e3a5f;
    margin-bottom: 10px;
    font-weight: 600;
    letter-spacing: -0.3px;
}

p {
    margin-bottom: 16px;
    color: #334155;
}

/* Lists */
ul, ol {
    margin-left: 24px;
    margin-bottom: 16px;
}

ul li, ol li {
    margin-bottom: 10px;
    color: #334155;
    line-height: 1.7;
}

/* Links - Modern styling */
a {
    color: #2563eb;
    text-decoration: none;
    border-bottom: 1px solid rgba(37, 99, 235, 0.3);
    transition: all 0.2s ease;
}

a:hover,
a:focus {
    color: #1d4ed8;
    border-bottom-color: #1d4ed8;
}

a:focus-visible {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
    border-radius: 2px;
}

/* Key points highlight box */
section#objectives ol {
    background: linear-gradient(135deg, #eff6ff 0%, #f0f9ff 100%);
    border-left: 4px solid #3b82f6;
    padding: 24px 24px 24px 44px;
    border-radius: 0 12px 12px 0;
    margin: 24px 0;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.1);
}

section#objectives ol li {
    color: #1e3a5f;
    font-weight: 500;
}

/* Table for important dates */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    border-radius: 12px;
    overflow: hidden;
}

table tr {
    border-bottom: 1px solid #e2e8f0;
    transition: background-color 0.2s ease;
}

table tr:hover {
    background: #f8fafc;
}

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

table td {
    padding: 18px 16px;
    color: #334155;
}

table td:first-child {
    font-weight: 500;
    color: #1e293b;
}

table td:last-child {
    text-align: right;
}

table td strong {
    color: #3b82f6;
    font-weight: 600;
}

/* Workshop structure */
.workshop-parts {
    display: grid;
    gap: 18px;
    margin-top: 24px;
}

.workshop-part {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    padding: 26px 28px;
    border-radius: 12px;
    border-left: 4px solid transparent;
    border-image: linear-gradient(180deg, #3b82f6, #8b5cf6) 1;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.workshop-part::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.workshop-part:hover::before {
    opacity: 1;
}

.workshop-part:hover {
    transform: translateX(4px);
}

.workshop-part h3 {
    margin-bottom: 10px;
    position: relative;
}

.workshop-part p {
    margin-bottom: 0;
    font-size: 0.95rem;
    position: relative;
}

/* Topics list */
#topics ul {
    list-style: none;
    margin-left: 0;
    display: grid;
    gap: 12px;
}

#topics ul li {
    padding: 16px 20px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 10px;
    position: relative;
    padding-left: 42px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

#topics ul li:hover {
    background: linear-gradient(135deg, #eff6ff 0%, #f0f9ff 100%);
    border-color: rgba(59, 130, 246, 0.2);
    transform: translateX(4px);
}

#topics ul li::before {
    content: '';
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 10px;
    height: 10px;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(59, 130, 246, 0.4);
}

/* Organizers */
.organizers-list {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.organizer {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    padding: 30px 32px;
    border-radius: 14px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
}

.organizer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #3b82f6, #8b5cf6);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.organizer:hover {
    border-color: rgba(59, 130, 246, 0.2);
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.1);
}

.organizer:hover::before {
    opacity: 1;
}

.organizer h3 {
    font-size: 1.25rem;
    margin-bottom: 6px;
}

.organizer h3 a {
    color: #1e3a5f;
    border-bottom: none;
}

.organizer h3 a:hover {
    color: #3b82f6;
}

.organizer .affiliation {
    color: #3b82f6;
    font-weight: 600;
    margin-bottom: 6px;
    font-size: 0.95rem;
}

.organizer .email {
    margin-bottom: 16px;
    font-size: 0.9rem;
}

.organizer .email a {
    color: #64748b;
    border-bottom: none;
}

.organizer .email a:hover {
    color: #3b82f6;
}

/* Target audience */
#audience ul {
    list-style: none;
    margin-left: 0;
    display: grid;
    gap: 12px;
}

#audience ul li {
    padding: 14px 18px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 10px;
    border-left: 4px solid transparent;
    border-image: linear-gradient(180deg, #3b82f6, #8b5cf6) 1;
    color: #1e293b;
    transition: all 0.3s ease;
}

#audience ul li:hover {
    background: linear-gradient(135deg, #eff6ff 0%, #f0f9ff 100%);
    transform: translateX(4px);
}

/* Previous editions - styled as a callout */
#previous p {
    background: linear-gradient(135deg, #fefce8 0%, #fef9c3 100%);
    padding: 24px 28px;
    border-radius: 12px;
    border-left: 4px solid #eab308;
    color: #422006;
    box-shadow: 0 2px 8px rgba(234, 179, 8, 0.1);
}

/* Contact section */
#contact {
    background: linear-gradient(135deg, #1e3a5f 0%, #1e40af 100%);
    color: #ffffff;
    position: relative;
    overflow: hidden;
}

#contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 90% 10%, rgba(147, 51, 234, 0.3) 0%, transparent 40%),
        radial-gradient(circle at 10% 90%, rgba(59, 130, 246, 0.3) 0%, transparent 40%);
    pointer-events: none;
}

#contact h2,
#contact p {
    position: relative;
    z-index: 1;
}

#contact h2 {
    color: #ffffff;
}

#contact h2::after {
    background: linear-gradient(90deg, #ffffff, rgba(255, 255, 255, 0.5));
}

#contact p {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.1rem;
}

#contact a {
    color: #ffffff;
    font-weight: 600;
    border-bottom-color: rgba(255, 255, 255, 0.5);
}

#contact a:hover {
    border-bottom-color: #ffffff;
}

#contact:hover {
    transform: none;
}

/* Footer */
footer {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #ffffff;
    padding: 44px 20px;
    text-align: center;
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.5), transparent);
}

footer p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

footer .social-links {
    margin-bottom: 16px;
}

footer .bluesky-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #ffffff;
    background: linear-gradient(135deg, #0085ff 0%, #00c8ff 100%);
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    border: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 133, 255, 0.3);
}

footer .bluesky-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 133, 255, 0.4);
    color: #ffffff;
}

footer .bluesky-link svg {
    flex-shrink: 0;
}

/* Focus styles for keyboard navigation */
:focus-visible {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

/* Skip link for screen readers */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: #3b82f6;
    color: #ffffff;
    padding: 8px 16px;
    z-index: 1000;
    text-decoration: none;
    border-radius: 0 0 8px 0;
}

.skip-link:focus {
    top: 0;
}

/* Responsive */
@media (max-width: 768px) {
    body {
        font-size: 16px;
    }

    header {
        padding: 70px 20px 60px;
    }

    header h1 {
        font-size: 2.2rem;
        letter-spacing: -1px;
    }

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

    header .venue {
        padding: 10px 20px;
        font-size: 1rem;
    }

    nav ul {
        gap: 4px;
        padding: 12px 0;
    }

    nav ul li a {
        padding: 8px 14px;
        font-size: 0.85rem;
    }

    main.container {
        padding: 40px 16px 50px;
    }

    section {
        padding: 28px 24px;
        border-radius: 12px;
        margin-bottom: 24px;
    }

    section:hover {
        transform: none;
    }

    h2 {
        font-size: 1.45rem;
    }

    table td {
        display: block;
        text-align: left !important;
        padding: 12px 14px;
    }

    table td:first-child {
        padding-bottom: 4px;
        background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
        border-radius: 8px 8px 0 0;
    }

    table td:last-child {
        border-radius: 0 0 8px 8px;
        background: #f8fafc;
    }

    table tr:hover {
        background: transparent;
    }

    .organizer {
        padding: 24px;
    }

    .organizer h3 {
        font-size: 1.15rem;
    }

    #topics ul li {
        padding: 14px 16px 14px 38px;
    }

    #topics ul li:hover,
    #audience ul li:hover,
    .workshop-part:hover {
        transform: none;
    }
}

/* Print styles */
@media print {
    header, nav, footer {
        background: none;
        color: #000000;
    }

    header::before,
    #contact::before,
    footer::before {
        display: none;
    }

    section {
        border: 1px solid #cccccc;
        break-inside: avoid;
        box-shadow: none;
        background: #ffffff;
    }

    a {
        color: #000000;
    }

    a[href]::after {
        content: " (" attr(href) ")";
        font-size: 0.8em;
    }
}
