﻿/* FIRST FTC DECODE Season Theme */
:root {
    /* FIRST Official Colors */
    --first-blue: #0066B3;
    --first-red: #ED1C24;
    --first-navy: #1E3B82;
    --first-orange: #F57C00;
    /* DECODE Season Colors - Digital/Tech Theme */
    --decode-primary: #0D1B2A; /* Deep tech navy */
    --decode-secondary: #1B263B; /* Darker blue-gray */
    --decode-accent: #415A77; /* Steel blue */
    --decode-highlight: #778DA9; /* Light blue-gray */
    --decode-bright: #E0E1DD; /* Off-white */
    /* Digital Theme Colors */
    --matrix-green: #92dbac;
    --cyber-blue: #598290;
    --code-orange: #e5ae32;
    --error-red: #ea572e;
    --success-green: #39FF14; /* Neon green */
    /* Functional Colors */
    --warning-yellow: #FFD700;
    --info-blue: #00BFFF;
    /* Typography */
    --font-primary: 'Roboto', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-tech: 'Orbitron', monospace;
    --font-code: 'Courier New', monospace;
}

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

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--decode-bright);
    background: url('images/World Map Backdrop.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    min-height: 100vh;
    font-weight: 400;
    position: relative;
}

    /* Digital background pattern */
    body::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-image: linear-gradient(90deg, rgba(0, 255, 65, 0.03) 1px, transparent 1px), linear-gradient(rgba(0, 255, 65, 0.03) 1px, transparent 1px);
        background-size: 20px 20px;
        pointer-events: none;
        z-index: -1;
    }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header - DECODE Theme */
.decode-header {
    background: rgba(13, 27, 42, 0.95);
    backdrop-filter: blur(15px);
    padding: 1.5rem 0;
    box-shadow: 0 4px 30px rgba(0, 255, 65, 0.1);
    border-bottom: 2px solid var(--matrix-green);
    position: relative;
    overflow: hidden;
}

.header-branding {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    position: relative;
    z-index: 2;
}

.first-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 0 1 auto; /* Don't grow, can shrink, auto basis */
}

    /* FIRST Tech Challenge logo image constraints */
    .first-logo img {
        max-width: 100%;
        height: 4rem; /* Fixed height for consistent sizing */
        width: auto;
        object-fit: contain;
        display: block;
    }

/* Season badge positioning and sizing - match FTC logo height */
.season-badge {
    flex: 1; /* Allow it to grow and take available space */
    display: flex;
    align-items: center;
    justify-content: flex-end; /* Right-justify within its allocated space */
    margin-right: 1rem; /* Add spacing between season badge and event title */
}

    /* Season badge image styling - same height as FTC logo */
    .season-badge img {
        max-width: 100%;
        height: 4rem; /* Same height as FTC logo */
        width: auto;
        object-fit: contain;
        display: block;
    }

.event-title {
    text-align: right;
    flex: 0 0 auto; /* Don't grow or shrink, auto basis */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.event-title h1 {
    font-family: var(--font-tech);
    font-size: 2rem;
    font-weight: 700;
    color: var(--decode-bright);
    margin-bottom: 0.25rem;
    text-shadow: 0 0 10px rgba(224, 225, 221, 0.5);
}

.team-subtitle {
    color: var(--code-orange);
    font-weight: 500;
    font-size: 1rem;
    font-family: var(--font-code);
}

.digital-pattern {
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 100%;
    background: linear-gradient(45deg, transparent 40%, rgba(0, 255, 65, 0.1) 50%, transparent 60%);
    animation: digitScan 3s ease-in-out infinite;
}

@keyframes digitScan {
    0%, 100% {
        transform: translateX(100%);
        opacity: 0;
    }

    50% {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Main content */
main {
    padding: 2rem 0;
}

.decode-section {
    background: rgba(13, 27, 42, 0.9);
    backdrop-filter: blur(15px);
    margin-bottom: 2rem;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 255, 65, 0.1);
    border: 1px solid rgba(0, 255, 65, 0.2);
    position: relative;
    overflow: hidden;
}

    .decode-section::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 2px;
        background: linear-gradient(90deg, transparent, var(--matrix-green), transparent);
    }

@keyframes dataFlow {
    0%, 100% {
        transform: translateX(-100%);
    }

    50% {
        transform: translateX(100%);
    }
}

.section-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(0, 255, 65, 0.3);
}

.section-icon {
    font-size: 2rem;
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--decode-accent), var(--cyber-blue));
    border-radius: 12px;
    color: var(--decode-primary);
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.3);
}

.section-header h2 {
    font-family: var(--font-tech);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--decode-bright);
    margin: 0;
    text-shadow: 0 0 10px rgba(224, 225, 221, 0.3);
}

/* Welcome section - DECODE values */
.decode-values {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(0, 255, 65, 0.1), rgba(0, 212, 255, 0.1));
    border-radius: 12px;
    border: 1px solid rgba(0, 255, 65, 0.3);
}

.value-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    text-align: center;
    padding: 1rem;
    background: rgba(13, 27, 42, 0.5);
    border-radius: 8px;
    border: 1px solid rgba(0, 255, 65, 0.2);
    transition: all 0.3s ease;
}

    .value-item:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 20px rgba(0, 255, 65, 0.2);
    }

.value-icon {
    font-size: 1.5rem;
    background: var(--matrix-green);
    color: var(--decode-primary);
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 10px rgba(0, 255, 65, 0.5);
}

/* QR Code Section Styling */
.qr-container {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: rgba(27, 38, 59, 0.8);
    border-radius: 12px;
    border: 1px solid rgba(0, 255, 65, 0.3);
}

.qr-code {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    border-radius: 8px;
    border: 2px solid var(--matrix-green);
    box-shadow: 0 0 15px rgba(0, 255, 65, 0.3);
}

.qr-image {
    width: 256px;
    height: 256px;
    object-fit: contain;
    display: block;
    border-radius: 4px;
}

.qr-instructions {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

    .qr-instructions p {
        margin: 0;
        color: var(--decode-highlight);
    }

        .qr-instructions p:first-child {
            color: var(--decode-bright);
            font-size: 1.1rem;
        }

/* Session cards */
.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.link-card {
    background: rgba(27, 38, 59, 0.8);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(0, 255, 65, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

    .link-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 3px;
        background: linear-gradient(90deg, var(--matrix-green), var(--cyber-blue));
    }

    .link-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 12px 40px rgba(0, 255, 65, 0.2);
        border-color: var(--matrix-green);
    }

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

    .card-header h3 {
        font-family: var(--font-tech);
        font-size: 1.2rem;
        font-weight: 700;
        color: var(--decode-bright);
    }

.decode-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: var(--font-code);
}

    .decode-badge.cad {
        background: var(--error-red);
        color: white;
        animation: pulse 2s infinite;
    }

    .decode-badge.code {
        background: var(--matrix-green);
        color: var(--decode-primary);
    }

    .decode-badge.strategy {
        background: var(--code-orange);
        color: white;
    }

    .decode-badge.hardware {
        background: var(--decode-accent);
        color: white;
    }

    .decode-badge.facility {
        background: var(--cyber-blue);
        color: white;
    }

    .decode-badge.parking {
        background: var(--decode-accent);
        color: white;
    }

    .decode-badge.registration {
        background: var(--matrix-green);
        color: var(--decode-primary);
    }

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }
}

/* Buttons */
.video-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: var(--font-tech);
    position: relative;
    overflow: hidden;
}

    .video-link::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
        transition: left 0.5s;
    }

    .video-link:hover::before {
        left: 100%;
    }

.decode-primary-btn {
    background: linear-gradient(135deg, var(--matrix-green), var(--success-green));
    color: var(--decode-primary);
    box-shadow: 0 0 15px rgba(0, 255, 65, 0.3);
}

    .decode-primary-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 20px rgba(0, 255, 65, 0.4);
    }

.decode-secondary-btn {
    background: linear-gradient(135deg, var(--cyber-blue), var(--info-blue));
    color: var(--decode-primary);
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.3);
}

    .decode-secondary-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 20px rgba(0, 212, 255, 0.4);
    }

.decode-accent-btn {
    background: linear-gradient(135deg, var(--code-orange), var(--first-orange));
    color: white;
    box-shadow: 0 0 15px rgba(255, 107, 53, 0.3);
}

    .decode-accent-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 20px rgba(255, 107, 53, 0.4);
    }

.time {
    display: block;
    font-size: 0.8rem;
    color: var(--decode-highlight);
    font-weight: 400;
    font-family: var(--font-code);
    opacity: 0.8;
}

/* Materials section */
.materials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.material-item {
    background: rgba(27, 38, 59, 0.8);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(0, 255, 65, 0.3);
    text-align: center;
    transition: all 0.3s ease;
}

    .material-item:hover {
        transform: translateY(-4px);
        box-shadow: 0 12px 40px rgba(0, 255, 65, 0.2);
        border-color: var(--matrix-green);
    }

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

.material-icon {
    font-size: 2.5rem;
    background: linear-gradient(135deg, var(--matrix-green), var(--cyber-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.official-badge, .resource-badge, .event-badge {
    padding: 0.2rem 0.6rem;
    border-radius: 10px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: var(--font-code);
}

.official-badge {
    background: var(--first-red);
    color: white;
}

.resource-badge {
    background: var(--matrix-green);
    color: var(--decode-primary);
}

.event-badge {
    background: var(--decode-accent);
    color: white;
}

.decode-download-btn {
    background: linear-gradient(135deg, var(--decode-accent), var(--cyber-blue));
    color: var(--decode-primary);
    padding: 0.6rem 1.2rem;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: var(--font-tech);
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.3);
}

    .decode-download-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 15px rgba(0, 212, 255, 0.4);
    }

/* Announcements */
.announcement-board {
    background: rgba(27, 38, 59, 0.6);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid rgba(0, 255, 65, 0.3);
    border-left: 4px solid var(--matrix-green);
}

.announcement {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(0, 255, 65, 0.2);
}

    .announcement:last-child {
        border-bottom: none;
    }

.timestamp {
    background: var(--matrix-green);
    color: var(--decode-primary);
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 700;
    font-family: var(--font-code);
    box-shadow: 0 0 8px rgba(0, 255, 65, 0.4);
}

.priority-badge {
    background: var(--error-red);
    color: white;
    padding: 0.2rem 0.6rem;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: var(--font-code);
    animation: pulse 2s infinite;
}

/* Contact section */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 1.5rem;
}

.contact-item {
    background: rgba(27, 38, 59, 0.8);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(0, 255, 65, 0.3);
}

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

    .contact-header h3 {
        font-family: var(--font-tech);
        font-size: 1.1rem;
        font-weight: 700;
        color: var(--decode-bright);
    }

.contact-badge {
    padding: 0.2rem 0.6rem;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: var(--font-code);
    background: var(--matrix-green);
    color: var(--decode-primary);
}

.contact-details {
    margin-top: 1rem;
}

    .contact-details p {
        margin-bottom: 0.5rem;
        color: var(--decode-highlight);
        font-family: var(--font-code);
        font-size: 0.9rem;
    }

    .contact-details strong {
        color: var(--decode-bright);
    }

/* Contact section email links styling */
.contact-details a {
    color: var(--matrix-green);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    text-shadow: 0 0 5px rgba(146, 219, 172, 0.3);
}

.contact-details a:hover {
    color: var(--success-green);
    text-shadow: 0 0 8px rgba(57, 255, 20, 0.5);
    text-decoration: underline;
}

.contact-details a:visited {
    color: var(--matrix-green);
}

/* Footer - DECODE Branding */
.decode-footer {
    background: linear-gradient(135deg, var(--decode-primary), var(--decode-secondary));
    color: var(--decode-bright);
    padding: 2rem 0;
    margin-top: 3rem;
    border-top: 2px solid var(--matrix-green);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    align-items: start;
}

.first-footer-logo {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin-bottom: 1rem;
}

    .first-footer-logo .first-text {
        font-family: var(--font-tech);
        font-size: 1.8rem;
        font-weight: 900;
        color: var(--first-blue);
        text-shadow: 0 0 10px rgba(0, 102, 179, 0.5);
    }

.decode-signature {
    margin-top: 1rem;
    padding: 0.5rem;
    border: 1px solid rgba(0, 255, 65, 0.3);
    border-radius: 8px;
    background: rgba(0, 255, 65, 0.1);
}

.decode-text {
    font-family: var(--font-tech);
    font-weight: 900;
    font-size: 1.2rem;
    color: var(--matrix-green);
    letter-spacing: 2px;
}

.decode-tagline {
    display: block;
    font-family: var(--font-code);
    font-size: 0.8rem;
    color: var(--decode-highlight);
    margin-top: 0.25rem;
}

.footer-section h4 {
    font-family: var(--font-tech);
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--cyber-blue);
}

.footer-section ul {
    list-style: none;
}

    .footer-section ul li {
        margin-bottom: 0.5rem;
    }

        .footer-section ul li a {
            color: var(--decode-highlight);
            text-decoration: none;
            transition: color 0.3s ease;
            font-family: var(--font-code);
            font-size: 0.9rem;
        }

            .footer-section ul li a:hover {
                color: var(--matrix-green);
                text-shadow: 0 0 5px rgba(0, 255, 65, 0.5);
            }

.gracious-prof {
    font-style: italic;
    color: var(--code-orange);
    margin-top: 0.5rem;
}

.footer-decode {
    font-family: var(--font-code);
    font-size: 0.8rem;
    color: var(--decode-highlight);
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(0, 255, 65, 0.3);
}

/* Facility map container and image styling */
.map-placeholder {
    width: 100%;
    overflow: hidden;
    border-radius: 8px;
    border: 1px solid rgba(0, 255, 65, 0.3);
    background: rgba(27, 38, 59, 0.5);
}

.facility-map {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    max-width: 100%;
}

/* Ensure the map container has proper responsive behavior */
.facility-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin-top: 1.5rem;
}

.map-container, .parking-container {
    background: rgba(27, 38, 59, 0.8);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(0, 255, 65, 0.3);
    transition: all 0.3s ease;
}

    .map-container:hover, .parking-container:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 30px rgba(0, 255, 65, 0.2);
        border-color: var(--matrix-green);
    }

/* Header styling for both containers */
.map-header, .parking-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

    .map-header h3, .parking-header h3 {
        font-family: var(--font-tech);
        font-size: 1.2rem;
        font-weight: 700;
        color: var(--decode-bright);
        margin: 0;
    }

/* Unified responsive map styling for both facility and parking maps */
.responsive-map-container {
    width: 100%;
    overflow: hidden;
    border-radius: 8px;
    border: 1px solid rgba(0, 255, 65, 0.3);
    background: rgba(27, 38, 59, 0.5);
    position: relative;
}

.responsive-map-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    max-width: 100%;
    transition: transform 0.3s ease;
}

/* Hover effect for better interactivity */
.responsive-map-container:hover .responsive-map-image {
    transform: scale(1.02);
}

/* Itinerary list styling */
.itinerary-list {
    list-style: none;
    padding-left: 0;
}

    .itinerary-list li {
        margin-bottom: 0.75rem;
        padding-left: 1rem;
        position: relative;
    }

        /* Style for nested lists within itinerary items */
        .itinerary-list li ul {
            margin-top: 0.5rem;
            margin-bottom: 0;
            padding-left: 2rem; /* This creates the indentation */
            list-style-type: disc; /* Adds bullet points */
        }

            .itinerary-list li ul li {
                margin-bottom: 0.25rem;
                padding-left: 0.5rem;
                color: var(--decode-highlight); /* Slightly different color for sub-items */
            }

    /* Optional: Add bullet points for main items */
    .itinerary-list > li::before {
        content: "▶";
        color: var(--matrix-green);
        position: absolute;
        left: 0;
        top: 0;
    }

/* Responsive design for QR container */
@media (max-width: 768px) {
    .qr-container {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }

    .qr-image {
        width: 200px;
        height: 200px;
    }
}
