/**
 * Rikvip Theme Stylesheet
 *
 * @package Rikvip_Theme
 */

/* ========================================
   CSS Variables
   ======================================== */
:root {
    --primary-color: #d4a853;
    --primary-dark: #b8933f;
    --secondary-color: #1a1a2e;
    --accent-color: #e94560;
    --text-color: #333333;
    --text-light: #666666;
    --text-white: #ffffff;
    --bg-dark: #0f0f1a;
    --bg-card: #1a1a2e;
    --bg-light: #f5f5f5;
    --border-color: rgba(212, 168, 83, 0.3);
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    --shadow-hover: 0 8px 30px rgba(212, 168, 83, 0.2);
    --transition: all 0.3s ease;
    --container-width: 1200px;
    --header-height: 70px;
}

/* ========================================
   Reset & Base Styles
   ======================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-white);
    background-color: var(--bg-dark);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* ========================================
   Typography
   ======================================== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
    margin-bottom: 1rem;
}

/* ========================================
   Buttons
   ======================================== */
.btn {
    display: inline-block;
    padding: 12px 30px;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    text-transform: uppercase;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--text-white);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: var(--text-white);
}

.btn-large {
    padding: 15px 40px;
    font-size: 1.1rem;
}

.btn-login {
    background: transparent;
    color: var(--text-white);
    border: 1px solid var(--primary-color);
    padding: 8px 20px;
}

.btn-login:hover {
    background: var(--primary-color);
}

.btn-register {
    background: var(--accent-color);
    color: var(--text-white);
    padding: 8px 20px;
}

.btn-register:hover {
    background: #d63d54;
}

.btn-game {
    background: var(--primary-color);
    color: var(--secondary-color);
    padding: 10px 25px;
    font-size: 0.9rem;
}

.btn-game:hover {
    background: var(--primary-dark);
}

/* ========================================
   Header
   ======================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: rgba(15, 15, 26, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

/* Desktop Navigation */
.nav-desktop {
    display: flex;
    align-items: center;
    gap: 30px;
    width: 100%;
    justify-content: space-between;
}

.main-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.main-menu a {
    color: var(--text-white);
    font-weight: 500;
    padding: 5px 0;
    position: relative;
}

.main-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

.main-menu a:hover::after {
    width: 100%;
}

.main-menu a:hover {
    color: var(--primary-color);
}

.header-actions {
    display: flex;
    gap: 15px;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.menu-bar {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    transition: var(--transition);
}

/* Mobile Navigation */
.nav-mobile {
    display: none;
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--bg-card);
    padding: 20px;
    border-top: 1px solid var(--border-color);
}

.nav-mobile.active {
    display: block;
}

.mobile-menu {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.mobile-menu a {
    color: var(--text-white);
    font-size: 1.1rem;
    display: block;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}

.mobile-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
}

/* ========================================
   Main Content
   ======================================== */
.site-main {
    margin-top: var(--header-height);
    min-height: calc(100vh - var(--header-height) - 300px);
}

/* ========================================
   Hero Section
   ======================================== */
.hero-section {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--bg-dark) 0%, var(--secondary-color) 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(212, 168, 83, 0.1) 0%, transparent 70%);
}

.hero-content {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    text-align: left;
}

.hero-text {
    max-width: 600px;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

@media (max-width: 992px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-image {
        order: -1;
    }
    
    .hero-image img {
        max-width: 80%;
    }
}

.hero-title {
    font-size: 3rem;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--primary-color), #fff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 40px;
}

.hero-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ========================================
   Section Styles
   ======================================== */
section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.section-description {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 50px;
    color: rgba(255, 255, 255, 0.7);
}

/* ========================================
   Game Categories
   ======================================== */
.game-categories {
    background: var(--bg-dark);
}

.game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.game-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 0;
    text-align: center;
    transition: var(--transition);
    overflow: hidden;
}

.game-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-color);
}

.game-image-wrapper {
    width: 100%;
    height: 180px;
    overflow: hidden;
    position: relative;
}

.game-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.game-card:hover .game-image-wrapper img {
    transform: scale(1.05);
}

.game-title {
    color: var(--primary-color);
    margin-bottom: 10px;
    padding: 20px 20px 0;
}

.game-desc {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 20px;
    font-size: 0.95rem;
    padding: 0 20px;
}

.game-card .btn-game {
    margin-bottom: 20px;
}

.game-title {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.game-desc {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 20px;
    font-size: 0.95rem;
}

/* ========================================
   Featured Games
   ======================================== */
.featured-games {
    background: linear-gradient(180deg, var(--secondary-color) 0%, var(--bg-dark) 100%);
}

.featured-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.featured-item {
    background: rgba(26, 26, 46, 0.5);
    border-left: 3px solid var(--primary-color);
    padding: 25px;
    border-radius: 0 10px 10px 0;
}

.featured-item h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.featured-item p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
}

/* ========================================
   Live Casino Section
   ======================================== */
.live-casino-section {
    background: var(--bg-dark);
}

.live-games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.live-game-item {
    background: var(--bg-card);
    padding: 0;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    text-align: center;
    overflow: hidden;
    transition: var(--transition);
}

.live-game-item:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

.live-game-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
}

.live-game-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.live-game-item:hover .live-game-image img {
    transform: scale(1.05);
}

.live-game-item h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    padding: 20px 20px 0;
}

.live-game-item p {
    color: rgba(255, 255, 255, 0.7);
    padding: 0 20px 20px;
}

/* ========================================
   Jackpot Section
   ======================================== */
.jackpot-section {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #2d1b4e 100%);
}

.jackpot-games {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.jackpot-item {
    background: rgba(0, 0, 0, 0.3);
    padding: 0;
    border-radius: 10px;
    text-align: center;
    border: 2px solid var(--primary-color);
    overflow: hidden;
    transition: var(--transition);
}

.jackpot-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(212, 168, 83, 0.3);
}

.jackpot-image {
    width: 100%;
    height: 180px;
    overflow: hidden;
    position: relative;
}

.jackpot-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.jackpot-item:hover .jackpot-image img {
    transform: scale(1.05);
}

.jackpot-item h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    padding: 20px 20px 0;
}

.jackpot-item p {
    color: rgba(255, 255, 255, 0.8);
    padding: 0 20px 20px;
}

/* ========================================
   Why Choose Section
   ======================================== */
.why-choose-section {
    background: var(--bg-dark);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-item {
    text-align: center;
    padding: 30px;
}

.feature-item h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.feature-item p {
    color: rgba(255, 255, 255, 0.7);
}

/* ========================================
   CTA Section
   ======================================== */
.cta-section {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    text-align: center;
    padding: 80px 0;
}

.cta-title {
    color: var(--secondary-color);
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.cta-description {
    color: rgba(26, 26, 46, 0.8);
    max-width: 600px;
    margin: 0 auto 30px;
}

.cta-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-cta-primary {
    background: var(--secondary-color);
    color: var(--primary-color);
}

.btn-cta-primary:hover {
    background: var(--bg-dark);
}

.btn-cta-secondary {
    background: transparent;
    color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
}

.btn-cta-secondary:hover {
    background: var(--secondary-color);
    color: var(--primary-color);
}

/* ========================================
   Page Styles
   ======================================== */
.page-wrapper {
    grid-template-columns: 1fr 300px;
    gap: 40px;
    padding: 60px 0;
}

.page-content {
    background: var(--bg-card);
    padding: 40px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
}

.page-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--border-color);
}

.header-with-image {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    align-items: center;
}

.header-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.header-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.page-title {
    color: var(--primary-color);
    font-size: 2.2rem;
    margin-bottom: 15px;
}

.page-subtitle {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.1rem;
}

@media (max-width: 768px) {
    .header-with-image {
        grid-template-columns: 1fr;
    }
    
    .header-image {
        order: -1;
    }
    
    .header-image img {
        max-width: 80%;
    }
}

.page-body h2 {
    color: var(--primary-color);
    margin-top: 40px;
    margin-bottom: 20px;
}

.page-body h3 {
    color: var(--primary-color);
    margin-top: 30px;
    margin-bottom: 15px;
}

.page-body p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 20px;
}

/* Game Template Specific */
.game-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.game-detail-item {
    background: rgba(0, 0, 0, 0.2);
    padding: 0;
    border-radius: 8px;
    border-left: 3px solid var(--primary-color);
    overflow: hidden;
    transition: var(--transition);
}

.game-detail-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.game-detail-image {
    width: 100%;
    height: 160px;
    overflow: hidden;
    position: relative;
}

.game-detail-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.game-detail-item:hover .game-detail-image img {
    transform: scale(1.05);
}

.game-detail-item h3 {
    margin-top: 0;
    color: var(--primary-color);
    padding: 20px 20px 0;
}

.game-detail-item p {
    padding: 0 20px 20px;
    margin-bottom: 0;
}

/* Promotion Template Specific */
.promo-item {
    background: rgba(0, 0, 0, 0.2);
    padding: 0;
    border-radius: 10px;
    margin-bottom: 25px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: var(--transition);
}

.promo-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-color);
}

.promo-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
}

.promo-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.promo-item:hover .promo-image img {
    transform: scale(1.05);
}

.promo-item h3 {
    margin-top: 0;
    color: var(--primary-color);
    padding: 20px 20px 0;
}

.promo-item p {
    padding: 0 20px;
}

.promo-item ul {
    margin-left: 20px;
    padding: 0 20px 20px;
}

.promo-item ul {
    margin-left: 20px;
    color: rgba(255, 255, 255, 0.8);
}

.promo-item li {
    margin-bottom: 8px;
}

.vip-levels,
.event-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.vip-item,
.event-item {
    background: rgba(0, 0, 0, 0.2);
    padding: 25px;
    border-radius: 8px;
    text-align: center;
}

.vip-item h3,
.event-item h3 {
    margin-top: 0;
    color: var(--primary-color);
}

/* About Template Specific */
.mission-points,
.features-detail,
.game-types {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.mission-item,
.feature-detail-item,
.game-type-item {
    background: rgba(0, 0, 0, 0.2);
    padding: 25px;
    border-radius: 8px;
}

.mission-item h3,
.feature-detail-item h3,
.game-type-item h3 {
    margin-top: 0;
    color: var(--primary-color);
}

.community-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 30px;
    margin-top: 40px;
    text-align: center;
}

.stat-item {
    background: rgba(212, 168, 83, 0.1);
    padding: 30px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.stat-label {
    color: rgba(255, 255, 255, 0.7);
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.contact-item {
    background: rgba(0, 0, 0, 0.2);
    padding: 25px;
    border-radius: 8px;
    text-align: center;
}

.contact-item h3 {
    margin-top: 0;
    color: var(--primary-color);
}

/* CTA Box */
.cta-box {
    background: linear-gradient(135deg, rgba(212, 168, 83, 0.2), rgba(212, 168, 83, 0.1));
    padding: 40px;
    border-radius: 10px;
    text-align: center;
    margin-top: 50px;
    border: 1px solid var(--border-color);
}

.cta-box h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

/* Default Page Content */
.default-page-content {
    line-height: 1.8;
}

.default-page-content h2 {
    color: var(--primary-color);
    margin-top: 30px;
}

.default-page-content h3 {
    color: var(--primary-color);
    margin-top: 25px;
}

/* ========================================
   Sidebar
   ======================================== */
.widget-area {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.widget {
    background: var(--bg-card);
    padding: 25px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
}

.widget-title {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

.widget-list {
    list-style: none;
}

.widget-list li {
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.widget-list a {
    color: rgba(255, 255, 255, 0.8);
    display: block;
}

.widget-list a:hover {
    color: var(--primary-color);
}

.promo-box {
    background: rgba(212, 168, 83, 0.1);
    padding: 20px;
    border-radius: 8px;
    text-align: center;
}

.promo-box p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 15px;
}

.btn-support {
    background: var(--accent-color);
    color: var(--text-white);
    width: 100%;
}

.btn-support:hover {
    background: #d63d54;
}

/* ========================================
   Footer
   ======================================== */
.site-footer {
    background: var(--bg-card);
    border-top: 1px solid var(--border-color);
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-title {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--primary-color);
}

.footer-social {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: var(--secondary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: 600;
    font-size: 0.85rem;
}

.footer-social a:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
    margin: 0;
}

/* ========================================
   Post Card (Index)
   ======================================== */
.content-wrapper {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
    padding: 60px 0;
}

.primary-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.post-card {
    background: var(--bg-card);
    padding: 30px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
}

.post-title {
    margin-bottom: 15px;
}

.post-title a {
    color: var(--primary-color);
}

.post-title a:hover {
    color: var(--primary-dark);
}

.post-excerpt {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 20px;
}

.read-more {
    display: inline-block;
    color: var(--primary-color);
    font-weight: 600;
}

.read-more:hover {
    color: var(--primary-dark);
}

/* Pagination */
.nav-links {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
}

.page-numbers {
    padding: 10px 15px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    color: var(--text-white);
}

.page-numbers.current {
    background: var(--primary-color);
    color: var(--secondary-color);
}

.page-numbers:hover {
    background: var(--primary-color);
    color: var(--secondary-color);
}

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 1024px) {
    .page-wrapper,
    .content-wrapper {
        grid-template-columns: 1fr;
    }
    
    .widget-area {
        order: 2;
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 60px;
    }
    
    .nav-desktop {
        display: none;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .game-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-actions,
    .cta-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-large {
        width: 100%;
        max-width: 300px;
    }
    
    .page-content {
        padding: 25px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-social {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.6rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .game-card,
    .featured-item,
    .live-game-item,
    .jackpot-item {
        padding: 20px;
    }
    
    .cta-box {
        padding: 25px;
    }
}

/* ========================================
   Accessibility
   ======================================== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus styles */
a:focus,
button:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

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

/* ========================================
   Jackpot Template Styles
   ======================================== */
.jackpot-template .jackpot-intro {
    margin-bottom: 40px;
}

.jackpot-games-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.jackpot-game-card {
    background: rgba(0, 0, 0, 0.2);
    padding: 0;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: var(--transition);
}

.jackpot-game-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-hover);
}

.jackpot-card-image {
    width: 100%;
    height: 180px;
    overflow: hidden;
    position: relative;
}

.jackpot-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.jackpot-game-card:hover .jackpot-card-image img {
    transform: scale(1.05);
}

.jackpot-game-card h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.3rem;
    padding: 20px 20px 0;
}

.jackpot-game-card p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 15px;
    padding: 0 20px;
}

.jackpot-game-card ul {
    list-style: none;
    padding: 0 20px 20px;
}

.jackpot-game-card li {
    padding: 8px 0;
    padding-left: 20px;
    position: relative;
    color: rgba(255, 255, 255, 0.7);
}

.jackpot-game-card li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

/* How to Play Steps */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.step-item {
    background: rgba(212, 168, 83, 0.1);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    border: 1px solid var(--border-color);
    position: relative;
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: var(--secondary-color);
    font-size: 1.5rem;
    font-weight: 700;
    border-radius: 50%;
    margin-bottom: 15px;
}

.step-item h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.step-item p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
}

/* Tips Section */
.tips-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.tip-item {
    background: rgba(0, 0, 0, 0.2);
    padding: 25px;
    border-radius: 8px;
    border-left: 3px solid var(--primary-color);
}

.tip-item h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.tip-item p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
}

/* Winners Table */
.winners-table {
    overflow-x: auto;
    margin-top: 30px;
}

.winners-table table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    overflow: hidden;
}

.winners-table th,
.winners-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.winners-table th {
    background: var(--primary-color);
    color: var(--secondary-color);
    font-weight: 600;
}

.winners-table td {
    color: rgba(255, 255, 255, 0.8);
}

.winners-table tr:last-child td {
    border-bottom: none;
}

.winners-table tr:hover td {
    background: rgba(212, 168, 83, 0.1);
}

/* FAQ Section */
.faq-list {
    margin-top: 30px;
}

.faq-item {
    background: rgba(0, 0, 0, 0.2);
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 15px;
}

.faq-item h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.faq-item p {
    color: rgba(255, 255, 255, 0.8);
}

/* ========================================
   Contact Template Styles
   ======================================== */
.contact-template .contact-intro {
    margin-bottom: 40px;
}

.contact-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.contact-card {
    background: rgba(0, 0, 0, 0.2);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.contact-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-hover);
}

.contact-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.contact-card h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.contact-card p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.contact-detail {
    margin-bottom: 10px;
    color: rgba(255, 255, 255, 0.8);
}

.contact-detail .label {
    color: var(--primary-color);
    font-weight: 600;
}

.btn-contact {
    background: var(--primary-color);
    color: var(--secondary-color);
    margin-top: 15px;
    width: 100%;
}

.btn-contact:hover {
    background: var(--primary-dark);
}

/* Contact Form */
.contact-form-wrapper {
    background: rgba(0, 0, 0, 0.2);
    padding: 40px;
    border-radius: 10px;
    margin-top: 30px;
}

.contact-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    color: var(--primary-color);
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group .required {
    color: var(--accent-color);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    color: var(--text-white);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.form-group select option {
    background: var(--bg-card);
    color: var(--text-white);
}

.form-submit {
    text-align: center;
    margin-top: 30px;
}

/* Working Hours Table */
.hours-table-wrapper {
    overflow-x: auto;
    margin-top: 30px;
}

.hours-table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    overflow: hidden;
}

.hours-table th,
.hours-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.hours-table th {
    background: var(--primary-color);
    color: var(--secondary-color);
    font-weight: 600;
}

.hours-table td {
    color: rgba(255, 255, 255, 0.8);
}

.hours-table tr:last-child td {
    border-bottom: none;
}

/* Social Links */
.social-contact {
    text-align: center;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.social-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 20px 30px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.social-link:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    background: rgba(212, 168, 83, 0.1);
}

.social-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: var(--secondary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: 700;
    font-size: 1.2rem;
}

.social-name {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

/* Responsive for new templates */
@media (max-width: 768px) {
    .contact-form .form-row {
        grid-template-columns: 1fr;
    }
    
    .contact-form-wrapper {
        padding: 25px;
    }
    
    .winners-table th,
    .winners-table td,
    .hours-table th,
    .hours-table td {
        padding: 10px;
        font-size: 0.9rem;
    }
    
    .jackpot-game-card,
    .contact-card {
        padding: 20px;
    }
}
