/*
Theme Name: BD Highflyer Championship
Theme URI: https://skyringbd.com
Author: Munna Tech
Description: (Requires the BD Highflyer Core plugin.) Professional WordPress theme for Bangladesh High Flying Pigeon Championship with full backend Admin Panel, interlinked pages, 30-day free trial, club approval, results archive, pedigree print/PDF, and live auction bidding.
Version: 4.2.1
Text Domain: bd-highflyer
*/

:root {
    --primary: #111827;
    --primary-soft: #1f2937;
    --accent: #006a4e;
    --accent-dark: #004d38;
    --danger: #dc2626;
    --warning: #d97706;
    --bg-page: #f8fafc;
    --bg-card: #ffffff;
    --border-color: #d1d5db;
    --border-dark: #374151;
    --text-main: #111827;
    --text-muted: #6b7280;
    --radius-card: 16px;
    --radius-pill: 999px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Hind Siliguri', 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text-main);
    background-color: var(--bg-page);
    line-height: 1.55;
    -webkit-tap-highlight-color: transparent;
}

a {
    color: inherit;
    text-decoration: none;
    transition: all 0.2s ease;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

/* Header & Navigation */
.site-header {
    background: #ffffff;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 200;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    padding: 10px 0;
    flex-wrap: wrap;
}

.brand-area {
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand-logo-box {
    width: 44px;
    height: 44px;
    border: 1.5px solid var(--primary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 21px;
    background: #fff;
    overflow: hidden;
    flex-shrink: 0;
}

.brand-logo-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.brand-text h1 {
    font-size: 17px;
    font-weight: 700;
    color: var(--primary);
    line-height: 1.2;
}

.brand-text span {
    font-size: 9.5px;
    letter-spacing: 0.7px;
    text-transform: uppercase;
    color: var(--text-muted);
    display: block;
    font-weight: 600;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    font-size: 13px;
    font-weight: 600;
}

.main-nav a {
    padding: 5px 8px;
    border-radius: 6px;
}

.main-nav a:hover,
.main-nav a.current-link {
    background: #f3f4f6;
    color: var(--accent);
}

.nav-auth-group {
    display: flex;
    align-items: center;
    gap: 10px;
    border-left: 1px solid var(--border-color);
    padding-left: 12px;
}

.lang-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid var(--border-color);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11.5px;
    font-weight: 600;
    background: #fff;
    cursor: pointer;
}

.bd-flag-icon {
    width: 18px;
    height: 12px;
    background: #006a4e;
    position: relative;
    display: inline-block;
    border-radius: 2px;
}

.bd-flag-icon::after {
    content: "";
    width: 7px;
    height: 7px;
    background: #f42a41;
    border-radius: 50%;
    position: absolute;
    top: 2.5px;
    left: 4.5px;
}

/* Site Owner Note Bar */
.owner-note-bar {
    background: #f1f5f9;
    border-bottom: 1px solid var(--border-color);
    padding: 7px 0;
    font-size: 12.5px;
}

.owner-note-inner {
    display: flex;
    align-items: center;
    gap: 10px;
}

.owner-note-label {
    font-weight: 700;
    color: var(--primary);
    white-space: nowrap;
}

/* Hero Section */
.hero-banner {
    background: linear-gradient(rgba(255, 255, 255, 0.55), rgba(241, 245, 249, 0.85)),
                url('https://images.unsplash.com/photo-1555169062-013468b47731?auto=format&fit=crop&w=1400&q=70') center/cover no-repeat;
    min-height: 340px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 48px 16px;
    border-bottom: 1px solid var(--border-color);
}

.hero-kicker {
    font-size: 11px;
    letter-spacing: 2.2px;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--accent-dark);
    margin-bottom: 8px;
}

.hero-title {
    font-family: 'Playfair Display', 'Hind Siliguri', serif;
    font-size: clamp(32px, 5.5vw, 56px);
    line-height: 1.1;
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 10px;
}

.hero-subtitle {
    font-family: 'Playfair Display', 'Hind Siliguri', serif;
    font-style: italic;
    font-size: 17px;
    color: #374151;
}

/* Weather Strip */
.weather-section {
    padding: 18px 0;
    border-bottom: 1px solid var(--border-color);
    background: #ffffff;
}

.weather-top-row {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    margin-bottom: 12px;
}

.weather-area-select {
    border: 1px solid var(--border-color);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12.5px;
    background: #fff;
}

.weather-grid {
    display: grid;
    grid-template-columns: 1.25fr 2fr;
    gap: 20px;
    align-items: center;
}

.weather-current {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-right: 16px;
    border-right: 1px solid var(--border-color);
}

.weather-temp-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
}

.weather-temp {
    font-size: 38px;
    font-weight: 700;
    line-height: 1;
}

.weather-meta {
    font-size: 11.5px;
    color: var(--text-muted);
    line-height: 1.5;
}

.weather-forecast-strip {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 8px;
    text-align: center;
}

.forecast-item {
    background: var(--bg-page);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 7px 4px;
    font-size: 11.5px;
}

/* Sections & Cards */
.page-section {
    padding: 32px 0;
}

.section-heading {
    font-family: 'Playfair Display', 'Hind Siliguri', serif;
    font-size: 28px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 12px;
}

.table-sub-label {
    text-align: center;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.leaderboard-box {
    border: 1.5px solid var(--border-dark);
    border-radius: var(--radius-card);
    overflow-x: auto;
    background: #ffffff;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.03);
}

.leaderboard-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 720px;
}

.leaderboard-table th {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    padding: 13px 12px;
    border-bottom: 1px solid var(--border-color);
    text-align: center;
    background: #f9fafb;
}

.leaderboard-table td {
    padding: 11px 12px;
    border-bottom: 1px solid #eef2f7;
    text-align: center;
    font-size: 13px;
}

.leaderboard-table tr:last-child td {
    border-bottom: none;
}

.rank-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border: 1px solid #9ca3af;
    border-radius: 6px;
    font-weight: 700;
    font-size: 12px;
    background: #fff;
}

.view-all-row {
    text-align: right;
    margin-top: 8px;
    font-size: 12.5px;
    font-weight: 700;
}

.view-all-row a:hover {
    color: var(--accent);
}

/* Search & Random Cards */
.club-search-bar {
    max-width: 680px;
    margin-bottom: 24px;
    position: relative;
}

.club-search-bar input {
    width: 100%;
    padding: 10px 18px 10px 38px;
    border: 1.5px solid #9ca3af;
    border-radius: var(--radius-pill);
    font-size: 13px;
    outline: none;
    background: #fff;
}

.club-search-bar input:focus {
    border-color: var(--primary);
}

.club-search-bar span {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.random-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.random-card {
    border: 1.5px solid #6b7280;
    border-radius: 20px;
    padding: 20px;
    min-height: 220px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: #ffffff;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.03);
}

.random-card-tag {
    text-align: center;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.random-card-details p {
    font-size: 13px;
    color: #1f2937;
    margin-bottom: 5px;
}

/* Alerts & Badges */
.auth-alert-success {
    max-width: 780px;
    margin: 0 auto 18px;
    padding: 11px 16px;
    border-radius: 10px;
    background: #ecfdf5;
    border: 1px solid #10b981;
    color: #065f46;
    font-size: 13px;
    text-align: center;
}

.auth-alert-error {
    max-width: 780px;
    margin: 0 auto 18px;
    padding: 11px 16px;
    border-radius: 10px;
    background: #fef2f2;
    border: 1px solid #ef4444;
    color: #991b1b;
    font-size: 13px;
    text-align: center;
}

.btn-dark {
    display: inline-block;
    background: var(--primary);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 8px 16px;
    font-size: 12.5px;
    font-weight: 700;
    cursor: pointer;
}

.btn-dark:hover {
    background: var(--accent);
}

.btn-outline-sm {
    display: inline-block;
    background: #ffffff;
    color: var(--primary);
    border: 1.2px solid var(--border-dark);
    border-radius: 7px;
    padding: 5px 12px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}

.btn-outline-sm:hover {
    background: #f3f4f6;
}

/* Community CTA & Footer */
.community-cta {
    text-align: center;
    padding: 44px 16px 30px;
    border-top: 1px solid var(--border-color);
    background: #ffffff;
}

.cta-kicker {
    font-size: 10.5px;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 700;
}

.cta-title {
    font-family: 'Playfair Display', 'Hind Siliguri', serif;
    font-size: clamp(26px, 4.5vw, 42px);
    font-weight: 700;
    margin: 6px 0;
    color: var(--primary);
}

.cta-sub {
    font-size: 13.5px;
    color: var(--text-muted);
}

.site-footer {
    border-top: 1px solid #d1d5db;
    padding: 18px 0 28px;
    text-align: center;
    font-size: 12.5px;
    background: #ffffff;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 18px;
    flex-wrap: wrap;
    font-weight: 600;
    margin-bottom: 8px;
}

.footer-links a:hover {
    color: var(--accent);
}

/* Mobile WebView Bottom App Bar */
.bdhf-mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 58px;
    background: #ffffff;
    border-top: 1px solid #d1d5db;
    display: none;
    grid-template-columns: repeat(5, 1fr);
    z-index: 9999;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.06);
}

.bdhf-mob-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 600;
    color: #4b5563;
    gap: 2px;
}

.bdhf-mob-item.active,
.bdhf-mob-item:hover {
    color: var(--accent);
    font-weight: 700;
}

.bdhf-mob-icon {
    font-size: 17px;
    line-height: 1;
}

@media (max-width: 820px) {
    body {
        padding-bottom: 66px;
    }
    .nav-auth-group {
        border-left: none;
        padding-left: 0;
    }
    .weather-grid {
        grid-template-columns: 1fr;
    }
    .weather-current {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        padding-bottom: 12px;
    }
    .weather-forecast-strip {
        grid-template-columns: repeat(4, 1fr);
    }
    .random-cards-grid {
        grid-template-columns: 1fr;
    }
    .bdhf-mobile-bottom-nav {
        display: grid;
    }
}


/* ===== v4.1: মোবাইলে থ্রি-ডট মেনু, ভাষা বোতাম, এক লাইনের চলন্ত নোট ===== */
.header-inner { position: relative; }
.nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid var(--border-color);
    border-radius: 50%;
    background: #fff;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--primary);
}
.lang-switch {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid var(--border-color);
    padding: 3px 6px;
    border-radius: 6px;
    background: #fff;
}
.lang-switch button {
    border: 0;
    background: none;
    font: inherit;
    font-size: 11.5px;
    font-weight: 600;
    padding: 3px 7px;
    border-radius: 5px;
    cursor: pointer;
    color: #4b5563;
}
.lang-switch button.active { background: var(--primary); color: #fff; }

.owner-note-inner { overflow: hidden; }
.owner-note-label { flex: 0 0 auto; }
.owner-note-text { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; }
.owner-note-text > span {
    display: inline-block;
    padding-left: 100%;
    animation: bdhf-marquee 20s linear infinite;
}
.owner-note-text:hover > span { animation-play-state: paused; }
@keyframes bdhf-marquee {
    from { transform: translateX(0); }
    to   { transform: translateX(-100%); }
}
@media (prefers-reduced-motion: reduce) {
    .owner-note-text > span { animation: none; padding-left: 0; }
    .owner-note-text { text-overflow: ellipsis; }
}

@media (max-width: 820px) {
    .header-inner { flex-wrap: nowrap; }
    .brand-area { min-width: 0; flex: 1; }
    .brand-text { min-width: 0; }
    .brand-text span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .nav-toggle { display: inline-flex; }
    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        right: 0;
        width: min(290px, 92vw);
        flex-direction: column;
        align-items: stretch;
        gap: 2px;
        background: #fff;
        border: 1px solid var(--border-color);
        border-radius: 14px;
        box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
        padding: 10px;
        margin-top: 6px;
        z-index: 300;
    }
    .main-nav.open { display: flex; }
    .main-nav a { padding: 10px 12px; font-size: 14px; }
    .nav-auth-group {
        flex-direction: column;
        align-items: stretch;
        gap: 2px;
        border-top: 1px solid var(--border-color);
        margin-top: 6px;
        padding-top: 8px;
    }
    .lang-switch { justify-content: center; margin-top: 8px; }
}
