/* =====================================================
   Shah Matka - Modern Blue Theme
   Based on logo colors: Cyan/Blue (#00B4D8) on Dark Navy (#1a1a2e)
   ===================================================== */

/* =====================================================
   CSS Variables for easy customization
   ===================================================== */
:root {
    --primary-color: #00B4D8;
    --primary-dark: #0077B6;
    --primary-light: #48CAE4;
    --primary-gradient: linear-gradient(135deg, #00B4D8 0%, #0077B6 100%);
    --dark-bg: #1a1a2e;
    --dark-secondary: #16213e;
    --accent-glow: rgba(0, 180, 216, 0.3);
    --accent-glow-strong: rgba(0, 180, 216, 0.5);
    --text-light: #ffffff;
    --text-dark: #222222;
    --card-bg: #ffffff;
    --card-shadow: 0 10px 40px rgba(0, 180, 216, 0.15);
}

/* =====================================================
   Global Background & Body Styles
   ===================================================== */
body {
    background: linear-gradient(180deg, #f8fbfe 0%, #e8f4f8 100%);
}

/* Override yellow gradients with blue theme */
.bg-light-gray {
    background: linear-gradient(178deg, #ffffff, rgba(0, 180, 216, 0.08), #ffffff) !important;
}

/* =====================================================
   Primary Color Overrides
   ===================================================== */
.text-primary {
    color: var(--primary-color) !important;
}

a.text-primary:hover {
    color: var(--primary-dark) !important;
}

.bg-primary {
    background: var(--primary-gradient) !important;
}

.bg-primary-fill {
    background-color: var(--primary-color) !important;
}

/* Secondary colors */
.bg-secondary {
    background-color: var(--primary-light) !important;
}

.bg-tertiary {
    background-color: var(--primary-dark) !important;
}

/* =====================================================
   Button Styles - Modern Blue Theme
   ===================================================== */
.btn.btn-primary {
    background: var(--primary-gradient) !important;
    border: none !important;
    color: #ffffff !important;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 180, 216, 0.3);
}

.btn.btn-primary:hover,
.btn.btn-primary:active,
.btn.btn-primary:focus {
    background: linear-gradient(135deg, #0077B6 0%, #005A8D 100%) !important;
    box-shadow: 0 8px 25px rgba(0, 180, 216, 0.4) !important;
    transform: translateY(-2px);
}

.btn.btn-outline-primary {
    color: var(--primary-color) !important;
    border: 2px solid var(--primary-color) !important;
    background: transparent !important;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn.btn-outline-primary:hover,
.btn.btn-outline-primary:active,
.btn.btn-outline-primary:focus {
    color: #ffffff !important;
    background: var(--primary-gradient) !important;
    border-color: var(--primary-color) !important;
    box-shadow: 0 8px 25px rgba(0, 180, 216, 0.4) !important;
    transform: translateY(-2px);
}

.btn.btn-link:active,
.btn.btn-link:hover,
.btn.btn-link:focus {
    color: var(--primary-color) !important;
}

.btn.has-icon .icon {
    background-color: var(--primary-dark) !important;
}

/* =====================================================
   Download Button - Special Styling
   ===================================================== */
.download-block-div .btn-primary {
    background: linear-gradient(135deg, #00B4D8 0%, #0077B6 50%, #00B4D8 100%) !important;
    background-size: 200% 100%;
    animation: shimmer 3s linear infinite;
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

@keyframes shimmer {
    0% { background-position: 100% 0; }
    100% { background-position: -100% 0; }
}

/* =====================================================
   Navigation Styles
   ===================================================== */
.header-nav .nav-item:hover .nav-link,
.header-nav .nav-item.active .nav-link {
    color: var(--primary-color) !important;
}

.navbar-button .btn {
    background: var(--primary-gradient) !important;
    border: none !important;
    color: #ffffff !important;
}

/* Nav title gradient */
.navH1 {
    background: linear-gradient(to right, var(--dark-bg), var(--primary-color), var(--primary-light)) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
}

/* =====================================================
   Card Styles - Modern Look
   ===================================================== */
.border-card {
    border: 1px solid rgba(0, 180, 216, 0.2) !important;
    background: linear-gradient(145deg, #ffffff 0%, #f8fbfe 100%);
    transition: all 0.3s ease;
}

.border-card:hover {
    border-color: var(--primary-color) !important;
    box-shadow: 0 15px 40px rgba(0, 180, 216, 0.15);
    transform: translateY(-5px);
}

.card {
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 15px 35px rgba(0, 180, 216, 0.12);
}

/* =====================================================
   Game Rates Section
   ===================================================== */
.game-rates h1 {
    background: linear-gradient(135deg, var(--dark-bg) 0%, var(--primary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* =====================================================
   Section Backgrounds
   ===================================================== */
section[style*="linear-gradient"] {
    background: linear-gradient(178deg, #ffffff, rgba(0, 180, 216, 0.1), #ffffff) !important;
}

#rate {
    background: linear-gradient(178deg, #ffffff, rgba(0, 180, 216, 0.08), #ffffff) !important;
}

/* =====================================================
   Preloader
   ===================================================== */
.preloader {
    background: linear-gradient(135deg, var(--dark-bg) 0%, var(--dark-secondary) 100%) !important;
}

/* =====================================================
   Scrolling Cards (Winners Section)
   ===================================================== */
.scrolling-wrapper .card {
    background: linear-gradient(145deg, var(--dark-bg) 0%, var(--dark-secondary) 100%);
    border: 1px solid rgba(0, 180, 216, 0.3);
    color: #ffffff;
    transition: all 0.3s ease;
}

.scrolling-wrapper .card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 0 30px rgba(0, 180, 216, 0.3);
    transform: scale(1.02);
}

.scrolling-wrapper .card h3 {
    color: var(--primary-light) !important;
}

.scrolling-wrapper .card h1 {
    color: #ffffff !important;
    text-shadow: 0 0 20px rgba(0, 180, 216, 0.5);
}

/* =====================================================
   Timetable Cards
   ===================================================== */
.timetable {
    border: 1px solid rgba(0, 180, 216, 0.2) !important;
    transition: all 0.3s ease;
}

.timetable:hover {
    border-color: var(--primary-color) !important;
    box-shadow: 0 10px 30px rgba(0, 180, 216, 0.15);
}

.timetable a h3 {
    color: var(--primary-color) !important;
    transition: all 0.3s ease;
}

.timetable:hover a h3 {
    color: var(--primary-dark) !important;
}

/* =====================================================
   Chart Buttons
   ===================================================== */
.chart {
    border-color: var(--primary-color) !important;
    color: var(--primary-color) !important;
    transition: all 0.3s ease;
}

.chart:hover {
    background: var(--primary-gradient) !important;
    color: #ffffff !important;
    border-color: var(--primary-color) !important;
}

/* =====================================================
   Badges
   ===================================================== */
.badge.badge-depreciate {
    background-color: var(--primary-color) !important;
}

/* =====================================================
   Checkbox & Form Elements
   ===================================================== */
.custom-checkbox .custom-control-input:checked ~ .custom-control-label::before,
.custom-checkbox .custom-control-input:not(:disabled):active ~ .custom-control-label::before {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
}

.custom-checkbox .custom-control-input:focus:not(:checked) ~ .custom-control-label::before {
    border-color: var(--primary-color) !important;
}

/* =====================================================
   List Styles
   ===================================================== */
.bullet-list li::after {
    background-color: var(--primary-color) !important;
}

.check-list-primary li span svg {
    color: var(--primary-color) !important;
}

.check-list-primary li span::after {
    background-color: rgba(0, 180, 216, 0.15) !important;
}

/* =====================================================
   Tabs
   ===================================================== */
.tabs-navbar .nav-link.active,
.tabs-navbar .nav-link:hover {
    color: var(--primary-color) !important;
}

.tabs-navbar.nav-tabs .nav-link:hover,
.tabs-navbar.nav-tabs .active {
    border-bottom-color: var(--primary-color) !important;
}

/* =====================================================
   Link Hover Effects
   ===================================================== */
h1 a:hover, a.h1:hover,
h2 a:hover, a.h2:hover,
h3 a:hover, a.h3:hover,
h4 a:hover, a.h4:hover,
h5 a:hover, a.h5:hover,
h6 a:hover, a.h6:hover {
    color: var(--primary-color) !important;
}

a.text-black-200:hover,
a.text-black-300:hover,
a.text-black-400:hover {
    color: var(--primary-color) !important;
}

/* =====================================================
   Colored Icons
   ===================================================== */
.colored-icon.icon-1 {
    color: var(--primary-color) !important;
}

/* =====================================================
   Scroll to Top Button
   ===================================================== */
.scroll-to-top-btn {
    background: var(--primary-gradient) !important;
    border: none !important;
    box-shadow: 0 5px 20px rgba(0, 180, 216, 0.4);
    transition: all 0.3s ease;
}

.scroll-to-top-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 180, 216, 0.5);
}

/* =====================================================
   WhatsApp Button Enhancement
   ===================================================== */
#wLink .btn {
    background: linear-gradient(135deg, #25d366 0%, #128C7E 100%) !important;
    border: none !important;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
    transition: all 0.3s ease;
}

#wLink .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
}

/* =====================================================
   Decorative Shapes - Blue Theme
   ===================================================== */
.has-shapes .shape-xl,
.has-shapes .shape-lg,
.has-shapes .shape-md,
.has-shapes .shape-sm,
.has-shapes .shape-sm-2,
.has-shapes .shape-xs,
.has-shapes .shape-xs-2 {
    opacity: 0.6;
}

.shape-xl.bg-primary,
.shape-lg.bg-primary,
.shape-md.bg-primary,
.shape-sm.bg-primary {
    background: var(--primary-color) !important;
}

.shape-xl.bg-secondary,
.shape-lg.bg-secondary,
.shape-md.bg-secondary,
.shape-sm.bg-secondary {
    background: var(--primary-light) !important;
}

.shape-xl.bg-tertiary,
.shape-lg.bg-tertiary,
.shape-md.bg-tertiary,
.shape-sm.bg-tertiary {
    background: var(--primary-dark) !important;
}

/* =====================================================
   Animations - Modern Effects
   ===================================================== */

/* Pulse animation for important elements */
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(0, 180, 216, 0.4); }
    70% { box-shadow: 0 0 0 15px rgba(0, 180, 216, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 180, 216, 0); }
}

.download-block-div .btn-primary {
    animation: pulse 2s infinite, shimmer 3s linear infinite;
}

/* Floating animation for cards */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Glow animation */
@keyframes glow {
    0%, 100% { box-shadow: 0 0 20px rgba(0, 180, 216, 0.3); }
    50% { box-shadow: 0 0 40px rgba(0, 180, 216, 0.5); }
}

/* Info icon animation */
.time img {
    transition: all 0.3s ease;
}

.time:hover img {
    transform: scale(1.2);
    filter: drop-shadow(0 0 5px rgba(0, 180, 216, 0.5));
}

/* Card entrance animation */
.border-card {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Smooth hover transitions for all interactive elements */
a, button, .btn, .card, .border-card, .timetable {
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* =====================================================
   Banner Section Enhancement
   ===================================================== */
.banner {
    background: linear-gradient(182deg, rgba(0, 180, 216, 0.08), #ffffff) !important;
}

/* =====================================================
   Footer Enhancement
   ===================================================== */
.footer-bottom {
    background: linear-gradient(1deg, rgba(0, 180, 216, 0.08), #ffffff) !important;
}

/* =====================================================
   Border Colors
   ===================================================== */
.border-top {
    border-top-color: rgba(0, 180, 216, 0.2) !important;
}

.border-bottom {
    border-bottom-color: rgba(0, 180, 216, 0.2) !important;
}

.border-left {
    border-left-color: rgba(0, 180, 216, 0.2) !important;
}

.border-right {
    border-right-color: rgba(0, 180, 216, 0.2) !important;
}

/* =====================================================
   SVG Play Icon in Cards
   ===================================================== */
#video path[fill="#f4d348"] {
    fill: var(--primary-color) !important;
}

svg path[fill="#f4d348"] {
    fill: var(--primary-color) !important;
}

/* =====================================================
   Red Status Text - Keep as accent
   ===================================================== */
.red {
    color: #e74c3c !important;
}

/* =====================================================
   Media Queries for Responsive Design
   ===================================================== */
@media (max-width: 768px) {
    .download-block-div .btn-primary {
        font-size: 1.2rem !important;
    }
    
    .border-card:hover {
        transform: translateY(-3px);
    }
}

/* =====================================================
   Smooth Page Load Animation
   ===================================================== */
.header-nav,
.banner,
.section-padding {
    animation: fadeIn 0.8s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
