/* ============================================
   N8 Casino India - Main Stylesheet
   Responsive Design | Mobile-First Approach
   Indian Cultural Theme Colors
============================================ */

/* === CSS Variables - N8 Official Theme === */
:root {
    /* N8官网主色调 */
    --primary-purple: #190740;       /* N8官网深紫色 - 主背景 */
    --sky-blue: #00BFFF;            /* N8官网天蓝色 - CTA和链接 */
    --text-light: #6c757d;          /* 深灰色 - 提高可读性 */
    
    /* 印度主题色 */
    --primary-orange: #FF9933;      /* Saffron - Indian flag top */
    --primary-white: #FFFFFF;        /* White - Indian flag middle */
    --primary-green: #138808;        /* Green - Indian flag bottom */
    --navy-blue: #000080;            /* Ashoka Chakra blue */
    
    /* 辅助色 */
    --gold: #FFD700;                 /* Gold accent */
    --dark-bg: #190740;              /* 改为N8官网深紫色 */
    --light-bg: #f8f9fa;             /* Light sections */
    --text-dark: #2c3e50;            /* Primary text */
    --text-secondary: #5a6c7d;       /* 次要文字色 - 比text-light更深 */
    --border-color: #e0e0e0;
    --success: #28a745;
    --shadow: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 30px rgba(0,0,0,0.15);
}

/* === Reset & Base === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--light-bg);
    padding-top: 80px; /* 为固定Header预留空间 */
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

/* === Container === */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* === Header & Navigation - N8 Official Style === */
.header {
    background: var(--primary-purple);  /* N8官网深紫色 */
    padding: 15px 0;
    position: fixed; /* 改为fixed，确保全站手机端滑动时始终置顶 */
    width: 100%;
    top: 0;
    left: 0;
    z-index: 2000; /* 提高层级，确保在所有元素之上 */
    box-shadow: var(--shadow);
    backdrop-filter: blur(10px); /* 添加毛玻璃效果，更高端 */
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-white);
}

.logo .flag-icon {
    font-size: 2rem;
}

/* India Flag CSS */
.india-flag {
    display: inline-block;
    width: 50px;
    height: 34px;
    position: relative;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
    vertical-align: middle;
}

.india-flag-stripe {
    width: 100%;
    height: 33.33%;
}

.india-flag-orange {
    background: #FF9933;
}

.india-flag-white {
    background: #FFFFFF;
    position: relative;
}

.india-flag-green {
    background: #138808;
}

/* Ashoka Chakra (24-spoke wheel) */
.ashoka-chakra {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 16px;
    height: 16px;
    border: 1.5px solid #000080;
    border-radius: 50%;
}

.ashoka-chakra::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 2px;
    height: 2px;
    background: #000080;
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

/* 24 spokes using pseudo-elements and box-shadow */
.ashoka-chakra::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 1px;
    height: 6px;
    background: #000080;
    transform: translate(-50%, -50%);
    box-shadow: 
        0 0 0 0 #000080,
        4.5px -4.5px 0 0 #000080,
        6px 0 0 0 #000080,
        4.5px 4.5px 0 0 #000080,
        0 6px 0 0 #000080,
        -4.5px 4.5px 0 0 #000080,
        -6px 0 0 0 #000080,
        -4.5px -4.5px 0 0 #000080;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-menu a {
    color: var(--primary-white);
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 5px;
    transition: background 0.3s;
}

.nav-menu a:hover {
    background: rgba(255, 153, 51, 0.2);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--primary-white);
    border-radius: 3px;
    transition: 0.3s;
}

/* === Buttons - N8 Official Style === */
.btn {
    display: inline-block;
    padding: 14px 32px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 4px;  /* N8官网使用4px圆角 */
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    text-align: center;
}

.btn-primary {
    background: var(--sky-blue);  /* N8官网天蓝色CTA按钮 */
    color: var(--primary-white);
    box-shadow: var(--shadow);
}

.btn-primary:hover {
    background: #0099CC;  /* 深一点的天蓝色 */
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--primary-green) 0%, #0f6604 100%);
    color: var(--primary-white);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--sky-blue);
    color: var(--sky-blue);
}

.btn-outline:hover {
    background: var(--sky-blue);
    color: var(--primary-white);
}

/* === Hero Section - N8 Official Style === */
.hero {
    background: var(--primary-purple);  /* N8官网深紫色背景 */
    color: var(--primary-white);
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120"><path fill="%23FF9933" fill-opacity="0.1" d="M0,64L48,69.3C96,75,192,85,288,80C384,75,480,53,576,48C672,43,768,53,864,58.7C960,64,1056,64,1152,58.7L1200,56L1200,120L0,120Z"></path></svg>') no-repeat bottom;
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero .subtitle {
    font-size: 1.3rem;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.9);
}

.hero .flag-banner {
    display: inline-block;
    padding: 5px 0;
    margin-bottom: 20px;
    border-top: 4px solid var(--primary-orange);
    border-bottom: 4px solid var(--primary-green);
}

/* === Section Styles === */
.section {
    padding: 60px 0;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 50px;
    color: var(--text-dark);
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-orange), var(--primary-green));
    margin: 15px auto 0;
    border-radius: 2px;
}

/* === Cards === */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.card {
    background: var(--primary-white);
    border-radius: 12px;
    padding: 30px;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.card-icon {
    margin-bottom: 20px;
    height: 80px; /* 固定高度 */
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.card-icon svg {
    height: 100%;
    width: auto;
    filter: drop-shadow(0 8px 12px rgba(0,0,0,0.2));
    transition: transform 0.3s ease;
}

.card:hover .card-icon svg {
    transform: translateY(-5px) scale(1.05);
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.card p {
    color: var(--text-light);
    line-height: 1.8;
}

/* === Tables === */
.table-container {
    overflow-x: auto;
    margin: 30px 0;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--primary-white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.data-table thead {
    background: linear-gradient(135deg, var(--primary-orange) 0%, #ff7b00 100%);
    color: var(--primary-white);
}

.data-table th,
.data-table td {
    padding: 15px;
    text-align: left;
}

.data-table tbody tr {
    border-bottom: 1px solid var(--border-color);
    transition: background 0.2s;
}

.data-table tbody tr:hover {
    background: rgba(255, 153, 51, 0.05);
}

/* === Steps Guide === */
.steps-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
    max-width: 800px;
    margin: 0 auto;
}

.step-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    background: var(--primary-white);
    padding: 25px;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.step-number {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-orange), var(--primary-green));
    color: var(--primary-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
}

.step-content h3 {
    margin-bottom: 10px;
    color: var(--text-dark);
}

.step-content p {
    color: var(--text-light);
}

/* === Footer === */
.footer {
    background: var(--dark-bg);
    color: var(--primary-white);
    padding: 40px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.footer-section h3 {
    margin-bottom: 20px;
    color: var(--primary-orange);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section a:hover {
    color: var(--primary-orange);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
}

/* === Utility Classes for Text Readability === */
.text-readable {
    color: #495057 !important;  /* 更深的灰色，确保在白色背景上清晰可读 */
}

.text-muted {
    color: #6c757d !important;  /* 中等灰色，次要信息 */
}

.text-strong {
    color: #2c3e50 !important;  /* 深色文字，主要内容 */
    font-weight: 600;
}

/* === Responsive Design === */
@media (max-width: 992px) {
    .responsive-grid-2 {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }
}

@media (max-width: 768px) {
    body {
        padding-top: 70px; /* 手机端Header稍矮 */
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        flex-direction: column;
        background: var(--dark-bg);
        width: 100%;
        padding: 30px;
        gap: 20px;
        transition: left 0.3s;
        z-index: 1999; /* 确保菜单在Header下方但在其他内容上方 */
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-toggle {
        display: flex;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero .subtitle {
        font-size: 1.1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .card-grid {
        grid-template-columns: 1fr;
    }

    .data-table {
        font-size: 0.9rem;
    }

    .data-table th,
    .data-table td {
        padding: 10px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero {
        padding: 50px 0;
    }

    .section {
        padding: 40px 0;
    }

    .btn {
        padding: 12px 24px;
        font-size: 0.95rem;
    }
}
