@font-face {
    font-family: 'Co Headline';
    src: url('../fonts/Co%20Headline%20Light.woff2') format('woff2');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Co Headline';
    src: url('../fonts/Co%20Headline.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Co Headline';
    src: url('../fonts/Co%20Headline%20Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

:root {
    --font-primary: 'Co Headline', sans-serif;
    
    /* Fortuna Colors */
    --ftn-yellow: #ffd200;
    --ftn-dark: #040229;
    --ftn-purple: #4a0deb;
    --ftn-text: #ffffff;

    /* Casa Colors */
    --casa-red: #da251d;
    --casa-dark: #080808;
    --casa-yellow: #ffd200;
    --casa-text: #ffffff;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* THEMES */
body.theme-fortuna {
    background-color: var(--ftn-dark);
    background-image: 
        radial-gradient(circle at -10% 20%, rgba(255, 204, 0, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 110% 70%, rgba(255, 204, 0, 0.15) 0%, transparent 50%);
    background-attachment: fixed;
    color: var(--ftn-text);
}

body.theme-casa {
    background: #000 url('../images/casa/background_1@4x.webp') no-repeat top center / 100% auto;
}

.cm-desktop-header {
    display: none !important;
}

@media (min-width: 900px) {
    body.theme-casa {
        background-position: center calc(-10vw);
    }
    .cm-desktop-header {
        display: flex !important;
    }
    .cm-main-wrapper {
        padding-top: 220px !important;
    }
}

.cm-wrapper {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
    position: relative;
    padding-bottom: 60px;
}

/* --- HEADER --- */
.cm-header {
    width: 100%;
    height: 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.theme-fortuna .cm-header {
    background-color: var(--ftn-yellow);
}

.theme-casa .cm-header {
    background-color: var(--casa-red);
    justify-content: center;
}

.cm-header-logo img {
    height: 30px;
    width: auto;
}

.cm-footer-disclaimer p {
    margin: 5px 0;
    font-size: 11px;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.spin-animation {
    animation: spin 10s linear infinite;
}

.cm-header-btn {
    border: 1px solid #000;
    border-radius: 20px;
    padding: 6px 16px;
    font-size: 12px;
    font-weight: 700;
    color: #000;
    text-decoration: none;
    text-transform: uppercase;
}

/* --- HERO --- */
.cm-hero {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px 15px;
    text-align: center;
    position: relative;
}

.cm-hero-img {
    width: 100%;
    height: auto;
    border-radius: 20px;
    margin-bottom: 20px;
}

/* --- DOWN ARROWS --- */
.cm-arrows {
    display: flex;
    justify-content: center;
    margin: 20px 0;
}
.cm-arrows svg {
    width: 40px;
    height: 40px;
    fill: var(--ftn-yellow);
}
.theme-casa .cm-arrows svg {
    fill: var(--casa-yellow);
}

/* --- CARD GRID --- */
.cm-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 15px;
}

.cm-card {
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    flex: 0 0 calc(33.333% - 10px);
    max-width: calc(33.333% - 10px);
}

.cm-grid-full {
    flex: 0 0 100%;
    max-width: 100%;
}

/* Fortuna Cards */
.theme-fortuna .cm-card {
    background-color: var(--ftn-yellow);
    padding: 0;
    border: none;
    flex: 0 0 calc(50% - 15px);
    max-width: calc(50% - 15px);
}

.theme-fortuna .cm-grid-full {
    flex: 0 0 100%;
    max-width: 100%;
}

.theme-fortuna .cm-card img {
    width: 100%;
    height: auto;
    margin-top: auto;
}

/* Casa Cards */

.theme-casa .cm-card {
    background: transparent;
}
.theme-casa .cm-card img {
    width: 100%;
    height: auto;
    border-radius: 15px;
    display: block;
}

/* --- EXTRA BONUS BOX --- */
.cm-bonus-section {
    max-width: 600px;
    margin: 40px auto;
    padding: 0 15px;
    text-align: center;
}

.cm-bonus-box {
    border: 2px solid var(--ftn-yellow);
    border-radius: 15px;
    padding: 25px 15px;
    position: relative;
    margin-bottom: 30px;
    background-color: rgba(0,0,0,0.5);
}

.theme-casa .cm-bonus-box {
    border-color: var(--casa-yellow);
    background: linear-gradient(to bottom, #4a0000, #1a0000);
}

.cm-bonus-badge {
    position: absolute;
    top: -15px;
    left: 20px;
    background-color: var(--ftn-purple);
    color: #fff;
    padding: 5px 15px;
    border-radius: 10px;
    font-weight: 700;
}

.cm-bonus-box h3 {
    color: var(--ftn-yellow);
    font-size: 22px;
    margin-bottom: 10px;
}

.theme-casa .cm-bonus-box h3 {
    color: var(--casa-yellow);
}

/* --- MAIN CTA BUTTON --- */
.cm-cta-btn {
    display: inline-block;
    background-color: var(--ftn-yellow);
    color: #000;
    padding: 15px 40px;
    border-radius: 30px;
    font-size: 18px;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    transition: transform 0.2s;
}

.theme-casa .cm-cta-btn {
    background-color: var(--casa-yellow);
    color: var(--casa-red);
}

.cm-cta-btn:active {
    transform: scale(0.95);
}

/* --- VIDEO EMBED --- */
.cm-video-wrapper {
    max-width: 800px;
    margin: 40px auto;
    padding: 0 15px;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    aspect-ratio: 16/9;
    background-color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
}

.cm-video-wrapper iframe, .cm-video-wrapper video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cm-video-placeholder {
    font-size: 24px;
    font-weight: bold;
    color: #000;
}

/* Media Queries */
@media (max-width: 600px) {
    .cm-card, .theme-fortuna .cm-card {
        flex: 0 0 100%;
        max-width: 100%;
    }
}
