/*
Theme Name: BetRight
Theme URI: https://betright.co.uk
Author: BetRight
Description: Custom theme for BetRight.co.uk betting affiliate site.
Version: 1.0
Text Domain: betright
*/

body {
    margin: 0;
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #f5f7fb;
    color: #111827;
    font-weight: 400;
}

a {
    color: #1d4ed8;
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* =========================
   Header
========================= */

.site-header {
    background: #0a1933;
    color: #ffffff;
    border-bottom: 2px solid #f7f7f7;

}

.site-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 0;
    flex-wrap: wrap;
}

.site-branding {
    display: flex;
    align-items: center;
    min-width: 140px;
}

.site-logo-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.custom-logo-link img,
.custom-logo {
    max-height: 42px;
    width: auto;
    height: auto;
    display: block;
}

.site-title-text {
    color: #ffffff;
    font-weight: 700;
    font-size: 1.1rem;
}

/* Navigation */

.main-navigation {
    display: flex;
    align-items: center;
}

.main-navigation ul.menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 14px;
}

.main-navigation ul.menu a {
    color: #ffffff;
    font-weight: 500;
    font-size: 0.95rem;
    white-space: nowrap;
}

/* Mobile toggle */

.nav-toggle {
    display: none;
    appearance: none;
    border: 1px solid rgba(255,255,255,0.35);
    background: transparent;
    color: #ffffff;
    padding: 8px 10px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
}

/* =========================
   Homepage top section
========================= */

.home-hero {
    /* Diagonal gradient: bottom-left (#263766) → top-right (#0a1933) */
    background: linear-gradient(
        to top right,
        #263766 40%,
        #263766 60%
    );
    padding: 40px 0;
    color: #ffffff;
}

.home-hero-inner {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 30px;
}

/* Left column */

.home-hero-left {
    flex: 1 1 640px;
    min-width: 320px;
}

.home-hero-left h1 {
    margin-top: 0;
    color: #ffffff;
    font-size: 2rem;
    font-weight: 800;
}

.home-hero-left p {
    color: #ffffff;
    font-size: 0.95rem;
    line-height: 1.5;
    max-width: 700px;
}

/* Right column: Top 5 box */

.home-hero-right {
    flex: 0 0 360px;
    max-width: 360px;
    background: #ffffff;
    color: #111827;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.25);
    padding: 20px;
}

.home-hero-right h2 {
    margin-top: 0;
    font-size: 1.2rem;
}

.top-sites-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.top-sites-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid #e5e7eb;
}

.top-sites-list li:last-child {
    border-bottom: none;
}

.top-sites-site-name {
    font-weight: 600;
    color: #111827;
}

.top-sites-list small {
    color: #6b7280;
}

/* =========================
   Main content
========================= */

.main-content {
    padding: 30px 0 40px;
}

.main-content-inner {
    background: #ffffff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.06);
}

/* =========================
   Cards
========================= */

.card-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    margin: 20px 0;
}

.card {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.06);
    padding: 15px;
}

.card h2 {
    font-size: 1.1rem;
    margin-top: 0;
}

.card .card-meta {
    font-size: 0.85rem;
    color: #6b7280;
}

/* =========================
   Footer
========================= */

.site-footer {
    background: #0a1933;
    color: #9ca3af;
}

.site-footer a {
    color: #e5e7eb;
}

/* =========================
   Responsive
========================= */

@media (max-width: 900px) {

    .nav-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .main-navigation {
        display: none;
        width: 100%;
    }

    .main-navigation.is-open {
        display: block;
    }

    .main-navigation ul.menu {
        justify-content: flex-start;
        flex-direction: column;
        gap: 10px;
        padding: 10px 0 6px;
    }

    .main-navigation ul.menu a {
        padding: 8px 0;
    }

    /* Stack hero on mobile */
    .home-hero-inner {
        flex-direction: column;
    }

    .home-hero-right {
        max-width: 100%;
    }
}
