/* Font Definitions */
@font-face {
    font-family: 'GT America';
    src: url('../gtamerica/GT-America-Standard-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}
@font-face {
    font-family: 'GT America';
    src: url('../gtamerica/GT-America-Standard-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
}
@font-face {
    font-family: 'GT America';
    src: url('../gtamerica/GT-America-Standard-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
}

:root {
    /* Premium Dark Palette */
    --color-background: #000000;
    --color-text: #ffffff;
    --color-text-muted: rgba(255, 255, 255, 0.85);
    --color-accent: #ffffff;
    --color-border: #333333;
    --color-input-bg: #111111;
    
    --spacing: 1rem;
    --spacing-large: 2.5rem;
    --spacing-xl: 5rem;
    
    --max-width: 1000px;
    --font-main: 'GT America', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
}

html, body {
    height: 100%;
    width: 100%;
    overflow-x: hidden;
}

body {
    margin: 0;
    padding: 0;
    background-color: var(--color-background);
    color: var(--color-text);
    font-family: var(--font-main);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

/* Background Image Layer with Liquid Glass Effect */
#background-image {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../merch_render.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.15;
    z-index: -2;
    pointer-events: none;
    will-change: filter, opacity;
    transition: filter 0.3s ease-out, opacity 0.6s ease;
}

body.view-mode #background-image {
    opacity: 1;
    z-index: 0;
}

/* Toggle View Button */
.toggle-view-btn {
    position: fixed;
    top: 30px;
    right: 30px;
    z-index: 9999;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(17, 17, 17, 0.7);
    backdrop-filter: blur(10px);
    color: white;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toggle-view-btn:hover {
    background: rgba(17, 17, 17, 0.9);
    border-color: rgba(255, 255, 255, 0.6);
    transform: scale(1.1);
}

body.view-mode .toggle-view-btn {
    background: rgba(255, 255, 255, 0.9);
    color: #333; /* Gray X when in view mode */
}

/* Layout Container */
.container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
    padding: 0 20px;
    transition: opacity 0.6s ease;
}

body.view-mode .container {
    opacity: 0;
    pointer-events: none;
}

/* Main Content */
main {
    flex: 1;
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding-top: var(--spacing-xl);
}

/* Typography */
h1 {
    font-size: clamp(3rem, 8vw, 6rem);
    line-height: 0.95;
    font-weight: 700;
    margin: 0 0 var(--spacing-large);
    letter-spacing: -0.04em;
    max-width: 800px;
}

.subtitle {
    font-size: clamp(1.2rem, 2.5vw, 1.8rem);
    line-height: 1.3;
    margin-bottom: var(--spacing-large);
    max-width: 650px;
    font-weight: 400;
    color: var(--color-text);
}

/* Grid Layout */
.content-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: var(--spacing-xl);
    width: 100%;
    align-items: start;
}

.content-column {
    padding-right: var(--spacing-large);
}

.rsvp-column {
    position: sticky;
    top: var(--spacing-large);
}

.text-block {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: var(--spacing-large);
    color: var(--color-text-muted);
}

.text-block p {
    margin-bottom: 1.5rem;
}

/* Event Details */
.event-details {
    margin-top: var(--spacing-xl);
    padding-top: var(--spacing-large);
    border-top: 1px solid var(--color-border);
}

.event-time {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.event-location {
    display: block;
    font-size: 1.1rem;
    color: var(--color-text-muted);
}

/* RSVP Form Section - Minimalist/Bold */
.rsvp-section {
    background: rgba(17, 17, 17, 0.85); /* Semi-transparent for depth */
    backdrop-filter: blur(10px);
    border: 1px solid var(--color-border);
    padding: var(--spacing-large);
    border-radius: 2px;
}

.rsvp-title {
    display: block;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 700;
    margin-bottom: 0.5rem;
    border-bottom: 1px solid var(--color-text);
    padding-bottom: 1rem;
}

.rsvp-deadline {
    font-size: 0.9rem;
    margin-bottom: 2rem;
    color: var(--color-text-muted);
    margin-top: 1rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
    color: var(--color-text-muted);
}

.form-input {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--color-border);
    color: #fff;
    font-family: inherit;
    font-size: 1.2rem;
    padding: 0.5rem 0;
    transition: border-color 0.3s ease;
    border-radius: 0;
}

.form-input:focus {
    outline: none;
    border-bottom-color: #fff;
}

/* Checkbox */
.form-checkbox-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 1rem;
}

.form-checkbox {
    appearance: none;
    width: 20px;
    height: 20px;
    border: 1px solid var(--color-border);
    border-radius: 2px;
    background: transparent;
    cursor: pointer;
    position: relative;
}

.form-checkbox:checked {
    background: #fff;
    border-color: #fff;
}

.form-checkbox:checked::after {
    content: '';
    position: absolute;
    top: 4px;
    left: 4px;
    width: 10px;
    height: 10px;
    background: #000;
}

.form-checkbox-label {
    font-size: 1rem;
    cursor: pointer;
}

/* Button */
.btn-submit {
    width: 100%;
    background: #fff;
    color: #000;
    border: none;
    padding: 1.2rem;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 1rem;
    cursor: pointer;
    transition: opacity 0.3s ease;
    border-radius: 2px;
}

.btn-submit:hover {
    opacity: 0.9;
}

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

.status-message {
    margin-top: 1rem;
    text-align: center;
    font-size: 0.9rem;
    min-height: 20px;
}

/* Footer */
.footer {
    margin-top: var(--spacing-xl);
    padding: var(--spacing-xl) 0;
    border-top: 1px solid var(--color-border);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin-bottom: 2rem;
    text-align: center;
}

.contact-label {
    display: block;
}

.contact-details {
    display: block;
}

.contact-link {
    color: #fff;
    text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,0.3);
}

.article-link {
    color: var(--color-text);
    text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,0.5);
    transition: opacity 0.2s ease;
}

.article-link:hover {
    opacity: 0.7;
}

.partners-grid {
    display: flex;
    gap: 3rem;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    align-content: center;
}

.partner-logo {
    height: 25px;
    width: auto;
    filter: brightness(0) invert(1);
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.partner-logo:hover {
    opacity: 1;
}

/* Optical adjustments for logo sizes */
.partner-logo-ambi {
    height: 44px; /* 35px + 25% = 43.75px */
    filter: none !important; /* Remove invert filter for SVG logo */
}

.partner-logo-umprum {
    height: 15px; /* 20px - 25% = 15px */
}

.partner-logo-bomma {
    height: 25px;
    transform: translateY(-2px); /* Push up 2px for optical alignment */
}

/* Animations */
.fade-in {
    opacity: 0;
    animation: fadeIn 1s ease-out forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.distortion-target {
    animation: fadeIn 1s ease-out forwards;
    animation-delay: 0.2s;
    opacity: 0;
}

.distortion-target:nth-child(2) { animation-delay: 0.4s; }
.distortion-target:nth-child(3) { animation-delay: 0.6s; }

/* Mobile */
@media (max-width: 768px) {
    main {
        text-align: center;
    }
    
    .content-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-large);
        display: flex;
        flex-direction: column;
    }
    
    .content-column {
        padding-right: 0;
        order: 3; /* Content last */
    }
    
    .rsvp-column {
        position: static;
        order: 1; /* RSVP first */
        width: 100%;
        max-width: 100%;
    }
    
    .rsvp-section {
        width: 100%;
        box-sizing: border-box;
    }
    
    .event-details {
        order: 2; /* Date second */
    }
    
    h1 {
        font-size: 12vw;
        margin-bottom: 1rem;
    }
    
    .subtitle {
        font-size: 1.2rem;
    }
    
    .text-block {
        text-align: center;
    }
    
    .partners-grid {
        gap: 1.5rem;
    }
    
    .partner-logo {
        height: 20px;
    }
    
    .partner-logo-ambi {
        height: 35px; /* 28px + 25% = 35px */
    }
    
    .partner-logo-umprum {
        height: 12px; /* 16px - 25% = 12px */
    }
    
    .partner-logo-bomma {
        height: 20px;
    }
}
