/*
 * Brand theme for the landing page (views/front/d.php).
 * Matches the mobile app: red #bc282c primary, cream #FDFBEE surfaces,
 * gold accent taken from the app logo, Roboto.
 * Loaded after main.css so these values win.
 */
@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700;900&display=swap");

:root {
    --brand-red: #bc282c;
    --brand-red-dark: #8e1c20;
    --brand-red-deep: #5e1215;
    --brand-gold: #F4D471;
    --brand-gold-dark: #E2B84A;
    --brand-cream: #FDFBEE;
    --brand-ink: #1F1F1F;

    --color-primary1: #8e1c20;
    --color-primary2: #bc282c;
    --color-secondary: #bc282c;
    --color-secondary2: #1F1F1F;
    --color-secondary3: #8e1c20;
}

body, h1, h2, h3, h4, h5, h6, p, li, td, th, button, .theme-button {
    font-family: 'Roboto', 'Work Sans', sans-serif;
}

/* Logo: the gold mark has transparent letters, so it sits on a red tile
   the way the app icon does */
.main-header .logo .custom-logo {
    height: 56px;
    width: 56px;
    padding: 6px;
    border-radius: 14px;
    background: var(--brand-red);
    object-fit: contain;
}

/* Hero */
.slider-area {
    background-color: var(--brand-red);
    background-image: url("../images/slider-button-shap.png"), linear-gradient(135deg, #c8302f 0%, var(--brand-red) 45%, var(--brand-red-deep) 100%);
    background-repeat: no-repeat;
    background-position: left bottom, center;
    background-size: 100%, cover;
}
.slider-area .theme-button {
    background: var(--brand-gold);
    color: var(--brand-red-deep);
}
.slider-area .theme-button:hover,
.slider-area .theme-button:focus {
    background: #fff;
    color: var(--brand-red);
}

/* Section headings: gold dot on the red rule */
.title h2 i {
    background: linear-gradient(to right, var(--brand-red), var(--brand-red-dark));
    -webkit-background-clip: text;
}
.title .shap::before {
    background: var(--brand-gold-dark);
}

/* Results */
.features-area {
    background: var(--brand-cream);
}
.single-result {
    background: linear-gradient(45deg, var(--brand-red-deep), var(--brand-red), var(--brand-red-deep), var(--brand-red));
}
.single-result h2 {
    background: linear-gradient(to bottom, #FBE4A0 0%, var(--brand-gold-dark) 100%);
    color: var(--brand-red-deep);
}
.date {
    color: var(--brand-gold);
}
.single-result .date a {
    color: #fff;
}

/* About: solid colour instead of the fixed photo background, which
   iOS Safari does not draw (leaving white text on white) */
.team-area {
    background: var(--brand-ink);
}

/* Time table */
.play-time table tr th {
    background: var(--brand-red);
    border-color: var(--brand-red);
}
.play-time table tr td {
    border: 1px solid #EFE7D6;
}
.table td a {
    background: var(--brand-red);
    color: #fff;
    font-weight: 700;
    border-radius: 4px;
}
.table td a:hover {
    background: var(--brand-red-dark);
    color: #fff;
}

/* Game rates */
.game-rates {
    background: var(--brand-red-deep);
}
.single-game-rate .icon {
    background: var(--brand-gold);
}

/* How to play */
.play-guide {
    background: var(--brand-cream);
}
.feature-item.media .icon {
    background: var(--brand-red);
    box-shadow: 0 6px 14px rgba(188, 40, 44, .3);
}
.feature-item.media p {
    color: var(--brand-ink);
}

/* Footer */
.footer-area {
    background: var(--brand-red-dark);
}
.get-in-touch-number a {
    background: var(--brand-gold);
    color: var(--brand-red-deep);
}
.copy-right p a {
    color: var(--brand-gold) !important;
}

.scroll-top {
    background: var(--brand-red);
}

/* Phone mockup in the app's style */
.s7-phone {
    width: 260px;
    max-width: 100%;
    margin: 0 auto;
    padding: 12px;
    border-radius: 36px;
    background: var(--brand-ink);
    box-shadow: 0 30px 60px rgba(0, 0, 0, .3);
}
.s7-screen {
    background: var(--brand-cream);
    border-radius: 26px;
    overflow: hidden;
    text-align: left;
    font-family: 'Roboto', sans-serif;
}
.s7-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--brand-red);
    padding: 12px;
}
/* owl-carousel forces slide images to width:100%; keep the logo small */
.s7-top img {
    display: inline-block !important;
    width: auto !important;
    height: 30px !important;
}
.s7-wallet {
    background: var(--brand-gold);
    color: var(--brand-red-deep);
    font-weight: 700;
    font-size: 12px;
    padding: 5px 10px;
    border-radius: 20px;
}
.s7-actions {
    display: flex;
    gap: 8px;
    padding: 10px 12px;
    background: #fff;
}
.s7-actions span {
    flex: 1;
    border: 2px solid var(--brand-red);
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-align: center;
    padding: 6px 4px;
    color: var(--brand-red);
}
.s7-actions i {
    color: var(--brand-red);
}
.s7-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff;
    margin: 10px 12px 0;
    padding: 10px 12px;
    border-radius: 12px;
    border-left: 4px solid var(--brand-red);
    box-shadow: 0 2px 6px rgba(0, 0, 0, .06);
}
.s7-card b {
    display: block;
    font-size: 13px;
    color: var(--brand-ink);
}
.s7-card small {
    font-size: 12px;
    color: #777;
    letter-spacing: 1px;
}
.s7-card em {
    font-style: normal;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    color: #fff;
    background: #E53935;
    padding: 3px 8px;
    border-radius: 10px;
}
.s7-card em.s7-open {
    background: #43A047;
}
.s7-nav {
    display: flex;
    justify-content: space-around;
    background: #fff;
    margin-top: 12px;
    padding: 8px 4px 10px;
    border-top: 1px solid #eee;
}
.s7-nav span {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    font-size: 9px;
    color: #999;
}
.s7-nav i {
    font-size: 15px;
}
.s7-nav span.on {
    color: var(--brand-red);
    font-weight: 700;
}

/* Download buttons */
.s7-download {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 14px 26px 14px 20px;
    border-radius: 16px;
    background: linear-gradient(180deg, #FBE4A0 0%, var(--brand-gold) 45%, var(--brand-gold-dark) 100%);
    color: var(--brand-red-deep) !important;
    text-decoration: none !important;
    border: 2px solid #fff;
    box-shadow: 0 10px 24px rgba(0, 0, 0, .3);
    animation: s7-pulse 2s ease-out infinite;
    transition: transform .2s;
}
.s7-download:hover,
.s7-download:focus {
    transform: translateY(-3px);
    color: var(--brand-red-deep) !important;
}
.s7-download .fa-android {
    font-size: 40px;
}
.s7-download .fa-download {
    font-size: 22px;
    width: 42px;
    height: 42px;
    line-height: 42px;
    text-align: center;
    border-radius: 50%;
    background: var(--brand-red);
    color: #fff;
}
.s7-download span {
    display: flex;
    flex-direction: column;
    font-size: 26px;
    font-weight: 900;
    line-height: 1.1;
    text-transform: uppercase;
    letter-spacing: .5px;
}
.s7-download small {
    font-size: 13px;
    font-weight: 500;
    text-transform: none;
    letter-spacing: 0;
}
@keyframes s7-pulse {
    0%   { box-shadow: 0 10px 24px rgba(0, 0, 0, .3), 0 0 0 0 rgba(244, 212, 113, .7); }
    70%  { box-shadow: 0 10px 24px rgba(0, 0, 0, .3), 0 0 0 18px rgba(244, 212, 113, 0); }
    100% { box-shadow: 0 10px 24px rgba(0, 0, 0, .3), 0 0 0 0 rgba(244, 212, 113, 0); }
}
@media (prefers-reduced-motion: reduce) {
    .s7-download { animation: none; }
}
.s7-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    margin: 18px 0 0;
    padding: 0;
    list-style: none;
}
.s7-trust li {
    color: #fff;
    font-size: 14px;
    font-weight: 500;
}
.s7-trust i {
    color: var(--brand-gold);
}
.slider-area .text-right .s7-trust {
    justify-content: flex-end;
}

.s7-header-dl {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: 16px;
    padding: 0 18px;
    height: 42px;
    border-radius: 21px;
    background: var(--brand-red);
    color: #fff !important;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none !important;
    white-space: nowrap;
    order: 2;
}
.s7-header-dl:hover,
.s7-header-dl:focus {
    background: var(--brand-red-dark);
}

/* Sticky bar on phones, where the hero button scrolls away fastest */
.s7-sticky-dl {
    display: none;
}
@media (max-width: 767px) {
    .s7-sticky-dl {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1000;
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
        background: var(--brand-red);
        box-shadow: 0 -6px 20px rgba(0, 0, 0, .25);
        text-decoration: none !important;
    }
    .s7-sticky-dl img {
        width: 40px;
        height: 40px;
    }
    .s7-sticky-dl span {
        flex: 1;
        display: flex;
        flex-direction: column;
        color: #fff;
        line-height: 1.2;
    }
    .s7-sticky-dl b { font-size: 15px; }
    .s7-sticky-dl small { font-size: 12px; opacity: .85; }
    .s7-sticky-dl em {
        font-style: normal;
        font-weight: 900;
        font-size: 14px;
        padding: 10px 16px;
        border-radius: 22px;
        background: var(--brand-gold);
        color: var(--brand-red-deep);
        white-space: nowrap;
    }
    body { padding-bottom: 72px; }
    .scroll-top { bottom: 84px; }

    .s7-download { padding: 12px 18px 12px 14px; gap: 10px; }
    .s7-download span { font-size: 21px; }
    .s7-download .fa-android { font-size: 32px; }
    /* the sticky bar covers phones; the header has no room beside the menu icon */
    .s7-header-dl { display: none; }
}
