/*
Theme Name: ComeWin VIP Discipline
Author: Roo
Description: VIP win discipline and high-stake fantasy cricket checks for ComeWin VIP.
Version: 1.1.4-comewin-vip-palette1
*/

/* ============================================================
   Base Styles
   ============================================================ */
html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ============================================================
   Hero Dot Background
   ============================================================ */
.hero-dot-bg {
    background-image: radial-gradient(circle, rgba(225, 0, 0, 0.12) 1px, transparent 1px);
    background-size: 52px 52px;
}

/* ============================================================
   Phone Mockup Styles
   ============================================================ */
.phone-shell {
    width: 350px;
    height: 720px;
    border-radius: 44px;
    padding: 10px;
    background: linear-gradient(145deg, #2b2b2f, #0c0d11);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.35);
    position: relative;
    overflow: hidden;
}

.phone-screen {
    height: 100%;
    border-radius: 34px;
    background: #f3f5f8;
    overflow: hidden;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.phone-notch {
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 24px;
    border-radius: 0 0 14px 14px;
    background: #111214;
    z-index: 9;
}

.mock-header {
    height: 120px;
    background: linear-gradient(180deg, #e23a2a, #d62a1b);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 26px 18px 12px;
    font-weight: 700;
    letter-spacing: 0.2px;
}

.mock-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    margin: 12px;
    padding: 10px 12px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.phone-wrap {
    min-height: 780px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.phone-back {
    position: absolute;
    left: 10px;
    transform: perspective(1200px) rotateY(18deg) rotateX(2deg);
    opacity: 0.95;
}

.phone-front {
    position: absolute;
    right: 10px;
    transform: perspective(1200px) rotateY(-6deg) rotateX(1deg);
    z-index: 5;
}

/* ============================================================
   Responsive Phone
   ============================================================ */
@media (max-width: 1280px) {
    .phone-shell {
        width: 310px;
        height: 650px;
    }
    .phone-wrap {
        min-height: 700px;
    }
}

@media (max-width: 1024px) {
    .phone-wrap {
        min-height: 620px;
    }
    .phone-back {
        left: 0;
    }
    .phone-front {
        right: 0;
    }
}

@media (max-width: 768px) {
    .phone-back {
        display: none;
    }
    .phone-front {
        position: relative;
        right: auto;
        transform: none;
    }
    .phone-shell {
        width: min(92vw, 350px);
        height: 620px;
    }
}

/* ============================================================
   Breadcrumb
   ============================================================ */
nav[aria-label="Breadcrumb"] ol {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* ============================================================
   FAQ Details/Summary
   ============================================================ */
details > summary {
    list-style: none;
}
details > summary::-webkit-details-marker {
    display: none;
}
details[open] > summary svg {
    transform: rotate(180deg);
}

/* ============================================================
   Line Clamp
   ============================================================ */
.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ============================================================
   Prose (for blog content)
   ============================================================ */
.prose h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: #111827;
}

.prose h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    color: #111827;
}

.prose p {
    margin-bottom: 1rem;
    line-height: 1.75;
    color: #4b5563;
}

.prose ul {
    list-style-type: disc;
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.prose ol {
    list-style-type: decimal;
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.prose li {
    margin-bottom: 0.5rem;
    color: #4b5563;
}

.prose a {
    color: #E10000;
    text-decoration: underline;
}

.prose a:hover {
    color: #B00000;
}

.prose blockquote {
    border-left: 4px solid #E10000;
    padding-left: 1rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: #6b7280;
}

.prose img {
    border-radius: 0.75rem;
    margin: 1.5rem 0;
}

/* ============================================================
   Pagination
   ============================================================ */
.pagination {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    border: 1px solid #e5e7eb;
    color: #374151;
    text-decoration: none;
    transition: all 0.2s;
}

.pagination a:hover {
    background-color: #f9fafb;
}

.pagination .current {
    background-color: #E10000;
    color: white;
    border-color: #E10000;
}

/* ============================================================
   Mobile Menu
   ============================================================ */
#mobile-nav {
    transition: all 0.3s ease;
}

/* ============================================================
   Accessibility
   ============================================================ */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Focus styles */
a:focus-visible,
button:focus-visible,
summary:focus-visible {
    outline: 2px solid #E10000;
    outline-offset: 2px;
}

/* ============================================================
   Print Styles
   ============================================================ */
@media print {
    header,
    footer,
    .phone-wrap,
    .pagination,
    #mobile-nav {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.5;
    }
    
    a {
        text-decoration: underline;
        color: #000;
    }
}

/* ============================================================
   Site palette override
   ============================================================ */
:root {
    --site-primary: #B91C1C;
    --site-primary-dark: #7F1D1D;
    --site-primary-soft: #FEF2F2;
    --site-primary-softer: #FECACA;
    --site-accent-text: #B91C1C;
}

.hero-dot-bg {
    background-image: radial-gradient(circle, color-mix(in srgb, var(--site-primary) 18%, transparent) 1px, transparent 1px);
}

.mock-header,
[class*="from-[#E10000]"][class*="to-[#B00000]"] {
    background: linear-gradient(135deg, var(--site-primary), var(--site-primary-dark)) !important;
}

[class*="bg-[#E10000]"],
[class*="bg-[#e10000]"],
[class*="hover:bg-[#B00000]"]:hover,
[class*="hover:bg-[#B00000]"]:focus-visible {
    background-color: var(--site-primary) !important;
}

[class*="bg-red-50"] {
    background-color: var(--site-primary-soft) !important;
}

[class*="bg-red-100"] {
    background-color: var(--site-primary-softer) !important;
}

[class*="text-[#E10000]"],
[class*="text-[#e10000]"],
[class*="text-[#C40000]"],
[class*="hover:text-[#E10000]"]:hover,
.prose a {
    color: var(--site-accent-text) !important;
}

[class*="border-[#E10000]"],
[class*="border-[#E10000]/"],
.prose blockquote {
    border-color: var(--site-primary) !important;
}

[class*="border-[#E10000]/20"],
[class*="border-[#E10000]/40"] {
    border-color: color-mix(in srgb, var(--site-primary) 34%, transparent) !important;
}

[class*="shadow-red"],
[class*="shadow-[#E10000]"] {
    box-shadow: 0 14px 32px color-mix(in srgb, var(--site-primary) 24%, transparent) !important;
}

.phone-shell {
    box-shadow: 0 30px 70px color-mix(in srgb, var(--site-primary-dark) 28%, rgba(0, 0, 0, 0.24));
}
/* End site palette override */
