/* AVIS Bahrain FIFA Knockout Prediction Campaign - Main Stylesheet */

:root {
    --avis-red: #d61f26;
    --avis-red-dark: #a8161c;
    --avis-black: #1a1a1a;
    --avis-grey: #f4f4f4;
    --avis-text: #2c2c2c;
    --white: #ffffff;
    --success: #1e8e3e;
    --radius: 10px;
    --shadow: 0 4px 16px rgba(0,0,0,0.08);
}

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

body {
    font-family: 'Segoe UI', Roboto, Arial, sans-serif;
    background: var(--avis-grey);
    color: var(--avis-text);
    line-height: 1.6;
}

a { color: var(--avis-red); text-decoration: none; }
img { max-width: 100%; display: block; }

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ---------- Header ---------- */
.site-header {
    background: var(--avis-black);
    padding: 14px 0;
}
.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}
.brand img { height: 40px; }
.brand-name {
    color: var(--white);
    font-weight: 700;
    font-size: 18px;
    letter-spacing: .5px;
}
.brand-tag { color: #bbb; font-size: 15px; }
.brand-name svg,.admin-sidebar svg {
    height: 38px;
    width: auto;
}
/* Facebook */
.social-links a:nth-child(1):hover {
    background: #1877F2;
    color: #fff;
}

/* Instagram */
.social-links a:nth-child(2):hover {
    background: linear-gradient(
        45deg,
        #F58529,
        #DD2A7B,
        #8134AF,
        #515BD4
    );
    color: #fff;
}

/* YouTube */
.social-links a:nth-child(3):hover {
    background: #FF0000;
    color: #fff;
}

/* WhatsApp */
.social-links a:nth-child(4):hover {
    background: #25D366;
    color: #fff;
}
/* ---------- Hero ---------- */
.hero {
    background: linear-gradient(135deg, var(--avis-red) 0%, var(--avis-red-dark) 100%);
    color: var(--white);
    padding: 60px 0 70px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.hero h1 {
    font-size: clamp(24px, 5vw, 42px);
    margin-bottom: 14px;
    font-weight: 800;
}
.hero p {
    font-size: clamp(15px, 2.5vw, 18px);
    max-width: 640px;
    margin: 0 auto 26px;
    opacity: .96;
}
.btn {
    display: inline-block;
    background: var(--white);
    color: var(--avis-red);
    font-weight: 700;
    padding: 14px 34px;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    font-size: 16px;
    transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(0,0,0,.18); }
.btn-primary { background: var(--avis-red); color: var(--white); }
.btn-block { width: 100%; }
.btn-secondary {
    background: transparent;
    border: 2px solid var(--white);
    color: var(--white);
}

/* ---------- Sections ---------- */
.section { padding: 50px 0; }
.section-title {
    text-align: center;
    font-size: clamp(20px, 4vw, 30px);
    margin-bottom: 10px;
    color: var(--avis-black);
    font-weight: 800;
}
.section-subtitle {
    text-align: center;
    color: #000;
    max-width: 600px;
    margin: 0 auto 36px;
}

.card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 28px;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

@media (max-width: 768px) {
	.dateblock{display:block;}
	.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-direction: column;
    gap: 20px;
    text-align: center;
}
.section-title {
    text-align: center;
    font-size: clamp(20px, 4vw, 30px);
    margin-bottom: 10px;
    color: var(--avis-black);
    font-weight: 800;
    text-align: center;
}
    .grid-2, .grid-3 { grid-template-columns: 1fr; }
}

/* ---------- Prize cards ---------- */
.prize-card {
    text-align: center;
    border-top: 4px solid var(--avis-red);
}
.prize-card .icon { font-size: 38px; margin-bottom: 12px; }
.prize-card h3 { margin-bottom: 8px; color: var(--avis-black); }
.prize-card p { color: #000; font-size: 15px; }

/* ---------- Forms ---------- */
.form-group { margin-bottom: 18px; }
.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    font-size: 15px;
    color: var(--avis-black);
}
.form-group .required { color: var(--avis-red); }
input[type="text"], input[type="email"], input[type="tel"], input[type="number"],
input[type="password"], input[type="date"], input[type="datetime-local"], select, textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid #ddd;
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    transition: border-color .15s ease;
    background: var(--white);
}
input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--avis-red);
}
.checkbox-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 15px;
}
.checkbox-row input { width: auto; margin-top: 3px; }
.captcha-box {
    background: var(--avis-grey);
    border-radius: 8px;
    padding: 14px;
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}
.captcha-question {
    font-weight: 700;
    font-size: 18px;
    color: var(--avis-black);
    background: var(--white);
    padding: 8px 16px;
    border-radius: 6px;
    border: 1px dashed #ccc;
}
.error-text { color: var(--avis-red); font-size: 15px; margin-top: 4px; }
.alert {
    padding: 14px 18px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 15px;
}
.alert-success { background: #e6f4ea; color: var(--success); border: 1px solid #b7e1c2; }
.alert-error { background: #fdecea; color: var(--avis-red); border: 1px solid #f5c2c0; }

/* ---------- Matches / Predictions ---------- */
.match-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 20px;
    margin-bottom: 16px;
}
.match-round {
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--avis-red);
    font-weight: 700;
    margin-bottom: 10px;
}
.match-teams {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}
.team-option {
    flex: 1;
    text-align: center;
    border: 2px solid #eee;
    border-radius: 8px;
    padding: 16px 10px;
    cursor: pointer;
    transition: all .15s ease;
    font-weight: 600;
}
.team-option:hover { border-color: var(--avis-red); }
.team-option.selected {
    border-color: var(--avis-red);
    background: #fdecea;
    color: var(--avis-red-dark);
}
.team-option input { display: none; }
.vs-label {
    font-weight: 800;
    color: #999;
    font-size: 15px;
}
.match-meta {
    margin-top: 10px;
	font-weight: 500;
    font-size: 15px;
    color: #000;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 6px;
}
.status-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
}
.status-upcoming { background: #e8f0fe; color: #1967d2; }
.status-locked { background: #fff4e5; color: #b06000; }
.status-completed { background: #e6f4ea; color: var(--success); }

/* ---------- Footer ---------- */
.site-footer {
    background: var(--avis-black);
    color: #bbb;
    padding: 30px 0;
    text-align: center;
    font-size: 15px;
}
.social-links { margin-top: 14px; display: flex; justify-content: center; gap: 16px; }
.social-links a {
    color: var(--white);
    background: rgba(255,255,255,.1);
    width: 38px; height: 38px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 16px;
}
.social-links a:hover { background: var(--avis-red); }

/* ---------- OTP code input ---------- */
input[type="text"]#otp_code {
    font-size: 28px;
    letter-spacing: 10px;
    text-align: center;
    font-weight: 700;
    font-family: monospace;
}

/* ---------- T&C box ---------- */
.tc-box {
    max-height: 220px;
    overflow-y: auto;
    background: var(--avis-grey);
    border-radius: 8px;
    padding: 16px;
    font-size: 15px;
    color: #000;
	text-align: center;
    border: 1px solid #e3e3e3;
}

/* ---------- Tables (admin) ---------- */
table.data-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}
table.data-table th, table.data-table td {
    padding: 12px 14px;
    text-align: left;
    border-bottom: 1px solid #eee;
    font-size: 15px;
}
table.data-table th {
    background: var(--avis-black);
    color: var(--white);
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: .5px;
}
table.data-table tr:hover { background: #fafafa; }
.table-wrap { overflow-x: auto; }

/* ---------- Admin layout ---------- */
.admin-wrap { display: flex; min-height: 100vh; }
.admin-sidebar {
    width: 230px;
    background: var(--avis-black);
    color: var(--white);
    flex-shrink: 0;
    padding: 20px 0;
}
.admin-sidebar a {
    display: block;
    color: #ccc;
    padding: 12px 24px;
    font-size: 15px;
    border-left: 3px solid transparent;
}
.admin-sidebar a:hover, .admin-sidebar a.active {
    background: rgba(255,255,255,.06);
    color: var(--white);
    border-left-color: var(--avis-red);
}
.admin-main { flex: 1; padding: 30px; max-width: 100%; overflow-x: hidden; }
.admin-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 10px;
}
.stat-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 28px; }
.stat-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 20px;
    border-left: 4px solid var(--avis-red);
}
.stat-card .num { font-size: 28px; font-weight: 800; color: var(--avis-black); }
.stat-card .label { font-size: 15px; color: #777; }

@media (max-width: 900px) {
    .admin-wrap { flex-direction: column; }
    .admin-sidebar { width: 100%; display: flex; overflow-x: auto; padding: 10px; }
    .admin-sidebar a { white-space: nowrap; border-left: none; border-bottom: 3px solid transparent; }
    .admin-sidebar a.active, .admin-sidebar a:hover { border-bottom-color: var(--avis-red); }
    .stat-cards { grid-template-columns: repeat(2, 1fr); }
}

/* QR code box */
.qr-box {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 20px;
    text-align: center;
    max-width: 220px;
    margin: 0 auto;
}
