/*
Theme Name: 12BET - Nhà Cái Cá Cược
Theme URI: https://12bet.com
Author: 12BET Team
Author URI: https://12bet.com
Description: Chuyên trang nhà cái 12BET - Cá cược trực tuyến hàng đầu châu Á
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: nha-cai-12bet
Tags: casino, betting, sports, gaming

12BET Theme Stylesheet
*/

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #d32f2f;
    --secondary-color: #1a1a1a;
    --accent-color: #ff9800;
    --text-color: #333;
    --light-bg: #f5f5f5;
    --white: #ffffff;
    --border-color: #e0e0e0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
header {
    background: var(--secondary-color);
    color: var(--white);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-size: 28px;
    font-weight: bold;
    color: var(--white);
}

.logo a {
    text-decoration: none;
    color: var(--white);
}

/* Desktop Navigation */
.nav-desktop {
    display: flex;
    align-items: center;
}

.nav-desktop ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-desktop ul li {
    position: relative;
}

.nav-desktop ul li a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    padding: 10px 15px;
    transition: all 0.3s ease;
    border-radius: 4px;
}

.nav-desktop ul li a:hover,
.nav-desktop ul li a.active {
    background: var(--primary-color);
}

/* Auth Buttons */
.auth-buttons {
    display: flex;
    gap: 10px;
    margin-left: 30px;
}

.login-btn,
.register-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.login-btn {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.login-btn:hover {
    background: var(--white);
    color: var(--secondary-color);
}

.register-btn {
    background: var(--primary-color);
    color: var(--white);
    border: 2px solid var(--primary-color);
}

.register-btn:hover {
    background: #b71c1c;
    border-color: #b71c1c;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
}

.nav-mobile {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--secondary-color);
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.nav-mobile ul {
    list-style: none;
    flex-direction: column;
    gap: 15px;
}

.nav-mobile ul li a {
    color: var(--white);
    text-decoration: none;
    display: block;
    padding: 10px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.nav-mobile ul li a:hover {
    background: var(--primary-color);
}

.nav-mobile .auth-buttons {
    flex-direction: column;
    margin-left: 0;
    margin-top: 20px;
}

.nav-mobile .auth-buttons button {
    width: 100%;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-color), #b71c1c);
    color: var(--white);
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: pulse 4s ease-in-out infinite;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
    border-radius: 50%;
    animation: pulse 5s ease-in-out infinite reverse;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.8;
    }
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero p {
    font-size: 20px;
    max-width: 800px;
    margin: 0 auto 30px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-btn {
    padding: 15px 40px;
    font-size: 18px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
}

.hero-btn.primary {
    background: var(--accent-color);
    color: var(--secondary-color);
}

.hero-btn.secondary {
    background: var(--white);
    color: var(--primary-color);
}

.hero-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

/* Content Sections */
.content-section {
    padding: 60px 0;
}

.content-section h2 {
    font-size: 36px;
    color: var(--secondary-color);
    margin-bottom: 30px;
    text-align: center;
    position: relative;
}

.content-section h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--primary-color);
    margin: 15px auto 0;
}

.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.content-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 30px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.content-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    border-color: var(--primary-color);
}

.content-card h3 {
    color: var(--primary-color);
    font-size: 22px;
    margin-bottom: 15px;
}

.content-card p {
    color: var(--text-color);
    line-height: 1.8;
}

.content-card ul {
    margin-left: 20px;
    margin-top: 15px;
}

.content-card ul li {
    margin-bottom: 10px;
}

/* Image Styles */
.content-image {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 30px 0;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.content-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(211, 47, 47, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.content-image:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
}

.content-image:hover::after {
    opacity: 1;
}

/* Hero Image Enhancement */
.hero-image {
    max-width: 100%;
    height: auto;
    border-radius: 16px;
    margin: 40px auto 30px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    animation: heroImageFloat 3s ease-in-out infinite;
    border: 3px solid rgba(255,255,255,0.2);
    max-height: 500px;
    object-fit: cover;
}

@keyframes heroImageFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Feature Image Styles */
.feature-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 10px;
    margin: 20px 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.feature-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(211, 47, 47, 0.2), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
}

.feature-image:hover {
    transform: scale(1.05) rotate(1deg);
    box-shadow: 0 12px 35px rgba(0,0,0,0.2);
}

.feature-image:hover::before {
    opacity: 1;
}

/* Image Loading Effect */
.content-image,
.feature-image,
.hero-image {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

.content-image.loaded,
.feature-image.loaded,
.hero-image.loaded {
    background: none;
    animation: none;
}

/* Image Caption */
.content-image + em,
.feature-image + em {
    display: block;
    text-align: center;
    font-size: 14px;
    color: #666;
    margin-top: 10px;
    font-style: italic;
}

/* Responsive Image Container */
.image-container {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    margin: 30px 0;
}

.image-container img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.image-container:hover img {
    transform: scale(1.1);
}

/* Image Grid Gallery */
.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 40px 0;
}

.image-grid img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.image-grid img:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

/* Image with Overlay */
.image-overlay {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
}

.image-overlay img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.image-overlay::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.3);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.image-overlay:hover::after {
    opacity: 1;
}

.image-overlay:hover img {
    transform: scale(1.1);
}

/* Badge on Image */
.image-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--accent-color);
    color: var(--secondary-color);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    z-index: 2;
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(211, 47, 47, 0.4);
    z-index: 999;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    background: var(--accent-color);
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(255, 153, 0, 0.4);
}

/* Lightbox Styles */
.lightbox {
    animation: fadeIn 0.3s ease;
}

.lightbox-content {
    animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Image Loading Skeleton */
.image-skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: 8px;
}

@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Image Shadow Variants */
.shadow-sm {
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.shadow-md {
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.shadow-lg {
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.shadow-xl {
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
}

/* Image Border Variants */
.border-primary {
    border: 3px solid var(--primary-color);
}

.border-accent {
    border: 3px solid var(--accent-color);
}

.border-white {
    border: 3px solid var(--white);
}

/* Features Section */
.features {
    background: var(--light-bg);
    padding: 60px 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-item {
    text-align: center;
    padding: 30px;
    background: var(--white);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.feature-icon {
    font-size: 48px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.feature-item h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary-color), #b71c1c);
    color: var(--white);
    padding: 60px 0;
    text-align: center;
}

.cta-section h2 {
    font-size: 36px;
    margin-bottom: 20px;
    color: var(--white);
}

.cta-section h2::after {
    background: var(--white);
}

.cta-section p {
    font-size: 18px;
    max-width: 700px;
    margin: 0 auto 30px;
}

/* Footer */
footer {
    background: var(--secondary-color);
    color: var(--white);
    padding: 50px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-column h3 {
    font-size: 20px;
    margin-bottom: 20px;
    color: var(--accent-color);
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column ul li a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-column ul li a:hover {
    color: var(--accent-color);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    text-align: center;
    font-size: 14px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    line-height: 1.3;
    margin-bottom: 20px;
}

p {
    margin-bottom: 20px;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #b71c1c;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-desktop {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    .nav-mobile.active {
        display: block;
    }

    .hero h1 {
        font-size: 32px;
    }

    .hero p {
        font-size: 16px;
    }

    /* Mobile Hero Image */
    .hero-image {
        max-height: 300px;
        border-width: 2px;
    }

    /* Mobile Feature Images */
    .feature-image {
        height: 180px;
    }

    /* Mobile Content Images */
    .content-image {
        margin: 20px 0;
    }

    .content-section {
        padding: 40px 0;
    }

    .content-section h2 {
        font-size: 28px;
    }

    .content-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .feature-item {
        padding: 20px;
    }

    .feature-icon {
        font-size: 40px;
    }

    .cta-section {
        padding: 40px 0;
    }

    .cta-section h2 {
        font-size: 28px;
    }

    .hero-btn {
        padding: 12px 30px;
        font-size: 16px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .image-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 15px;
    }

    .image-grid img {
        height: 150px;
    }

    .header-wrapper {
        flex-wrap: wrap;
    }

    .auth-buttons {
        display: none;
    }

    .nav-mobile .auth-buttons {
        display: flex;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .hero-btn {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 60px 0;
    }

    .hero h1 {
        font-size: 26px;
    }

    .hero p {
        font-size: 14px;
    }

    .hero-image {
        max-height: 220px;
        border-radius: 12px;
    }

    .feature-image {
        height: 150px;
    }

    .content-card {
        padding: 20px;
    }

    .content-card h3 {
        font-size: 18px;
    }

    .features {
        padding: 40px 0;
    }

    .feature-item {
        padding: 25px 20px;
    }

    .feature-icon {
        font-size: 36px;
    }
}

/* Tablet Styles */
@media (min-width: 769px) and (max-width: 1024px) {
    .hero h1 {
        font-size: 38px;
    }

    .hero p {
        font-size: 18px;
    }

    .hero-image {
        max-height: 400px;
    }

    .content-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .feature-image {
        height: 200px;
    }
}

/* Large Screen Styles */
@media (min-width: 1200px) {
    .container {
        max-width: 1200px;
    }

    .hero h1 {
        font-size: 56px;
    }

    .hero p {
        font-size: 22px;
    }

    .hero-image {
        max-height: 600px;
    }

    .feature-image {
        height: 250px;
    }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}

.hidden {
    display: none;
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255,255,255,0.3);
    border-top-color: var(--white);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Print Styles */
@media print {
    header, footer, .nav-desktop, .auth-buttons {
        display: none;
    }

    body {
        background: white;
        color: black;
    }
}
