/* Centennial Yards Brand Override
   Loaded dynamically when BRAND=centennial-yards */

/* Self-hosted fonts — only weights actually used in the app */
@font-face {
    font-family: 'Termina';
    src: url('/assets/fonts/termina/Termina-Demi.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Termina';
    src: url('/assets/fonts/termina/Termina-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'FreightSansPro';
    src: url('/assets/fonts/freightsanspro/FreightSansPro-Book.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'FreightSansPro';
    src: url('/assets/fonts/freightsanspro/FreightSansPro-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'FreightSansPro';
    src: url('/assets/fonts/freightsanspro/FreightSansPro-Semibold.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

/* CY color + font overrides */
:root {
    --primary-color: #bb322d;
    --background: #e6e7e8;
    --surface: #d1d3d4;
    --surface-dark: #9d9fa2;
    --text-primary: #414042;
    --text-secondary: #808285;
    --error-color: #bb322d;
    --accent-gold: #bb322d;
    --wood-light: #9d9fa2;
    --wood-dark: #414042;
    --canvas-bg: #f5f5f5;
    --shadow-warm: rgba(65, 64, 66, 0.15);
    --font-display: 'Termina', 'Arial Black', sans-serif;
    --font-body: 'FreightSansPro', 'Georgia', serif;
}

/* Start screen needs full width for the ticket frame */
#start-screen .screen-content {
    width: 100%;
}

/* Pattern background on screens (not camera or loading) */
.screen {
    background-image: url('/assets/brands/cy/pattern.png');
    background-repeat: repeat;
    background-size: 256px 256px;
    background-color: var(--background);
}

/* Camera screen: CY grey bg instead of default dark (needs ID specificity to override styles.css) */
#camera-screen {
    background-image: url('/assets/brands/cy/pattern.png');
    background-repeat: repeat;
    background-size: 256px 256px;
    background-color: var(--background);
}

#camera-screen .camera-instruction {
    color: var(--text-primary);
}

#camera-screen .secondary-btn {
    background: transparent;
    border-color: var(--text-secondary);
    color: var(--text-primary);
}

#loading-screen {
    background-image: none;
    background-color: var(--loading-bg);
}

/* Button shadow uses CY red */
.primary-btn {
    box-shadow: 0 4px 16px rgba(187, 50, 45, 0.3);
}

.primary-btn:active {
    box-shadow: 0 2px 8px rgba(187, 50, 45, 0.3);
}

#camera-screen .primary-btn {
    box-shadow: 0 4px 16px rgba(187, 50, 45, 0.5);
}

/* Divider uses brand red instead of gold */
.booth-divider {
    background: var(--primary-color);
}

/* CSS picture frame — dark grey with 3D depth effect */
.camera-container,
.result-container,
.preview-container {
    border: 6px solid #4a4a4a;
    border-radius: 2px;
    padding: 0;
    box-shadow:
        inset 0 0 0 2px #6a6a6a,
        0 0 0 4px #3a3a3a,
        0 0 0 6px #5a5a5a,
        0 8px 24px rgba(0, 0, 0, 0.4);
}

/* Result/preview need relative + overflow visible for badge positioning */
.result-container,
.preview-container {
    position: relative;
    overflow: visible;
}

/* Clip images inside the frame (overflow: visible only affects badges) */
.preview-container img,
.result-container img#result-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Square frame for camera and preview */
.camera-container,
.preview-container {
    height: auto;
    aspect-ratio: 1 / 1;
    max-height: 500px;
}

/* Decorative ticket-style frame with concave corners */
.booth-logo-frame {
    position: relative;
    padding: 2.5rem 2rem;
    margin: 0 auto 1rem;
    width: 95%;
    max-width: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.booth-logo-frame::before {
    content: '';
    position: absolute;
    inset: 0;
    /* Ticket-style border with larger concave corner notches */
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 260' preserveAspectRatio='none'%3E%3Cpath d='M2,30 C18,30 30,18 30,2 L170,2 C170,18 182,30 198,30 L198,230 C182,230 170,242 170,258 L30,258 C30,242 18,230 2,230 Z' fill='none' stroke='%23bb322d' stroke-width='1.8'/%3E%3C/svg%3E") no-repeat center / 100% 100%;
    pointer-events: none;
}

/* Combined logo (script + CY) inside the frame */
.booth-script-logo {
    width: 100%;
    height: auto;
    display: block;
}

/* Brand logo on start screen */
.booth-brand-logo-img {
    height: 28px;
    width: auto;
    vertical-align: middle;
}

/* CY badges on result screen (overlapping the frame corners) */
.result-badge {
    position: absolute;
    width: 24%;
    height: auto;
    z-index: 10;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    pointer-events: none;
}

.result-badge-top-right {
    top: -10%;
    right: -10%;
}

.result-badge-bottom-left {
    bottom: -10%;
    left: -10%;
}

/* Modal adjusts for CY colors */
.modal {
    background: rgba(65, 64, 66, 0.75);
}
