/* 
 * Crazy Cattle 3D - Main Stylesheet
 * Version: 1.0
 * Website: https://crazycattle3d.games
 */

/* ===== BASE STYLES ===== */
:root {
    /* Color Palette */
    --primary-color: #6a1b9a;         /* Primary Purple */
    --primary-light: #9c4dcc;         /* Light Purple */
    --primary-dark: #38006b;          /* Dark Purple */
    --secondary-color: #4caf50;       /* Green */
    --secondary-light: #80e27e;       /* Light Green */
    --secondary-dark: #087f23;        /* Dark Green */
    --accent-color: #ffab00;          /* Amber Accent */
    --text-light: #ffffff;            /* White Text */
    --text-dark: #212121;             /* Dark Text */
    --background-light: #f5f5f5;      /* Light Background */
    --background-dark: #1a1a2e;       /* Dark Background */
    --background-gradient: linear-gradient(135deg, #1a1a2e 0%, #38006b 100%);
    
    /* Typography */
    --font-heading: 'Orbitron', sans-serif;
    --font-body: 'Roboto', sans-serif;
    
    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    
    /* Borders and Shadows */
    --border-radius-sm: 4px;
    --border-radius-md: 8px;
    --border-radius-lg: 12px;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.3);
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-medium: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500;700;900&family=Roboto:wght@300;400;500;700&display=swap');

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--background-light);
    overflow-x: hidden;
}

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

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

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: var(--spacing-md);
    color: var(--primary-dark);
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.25rem;
}

p {
    margin-bottom: var(--spacing-md);
}

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

section {
    padding: var(--spacing-xl) 0;
}

/* ===== UTILITY CLASSES ===== */
.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.d-flex {
    display: flex;
}

.flex-column {
    flex-direction: column;
}

.justify-between {
    justify-content: space-between;
}

.justify-center {
    justify-content: center;
}

.align-center {
    align-items: center;
}

.mt-1 { margin-top: var(--spacing-xs); }
.mt-2 { margin-top: var(--spacing-sm); }
.mt-3 { margin-top: var(--spacing-md); }
.mt-4 { margin-top: var(--spacing-lg); }
.mt-5 { margin-top: var(--spacing-xl); }

.mb-1 { margin-bottom: var(--spacing-xs); }
.mb-2 { margin-bottom: var(--spacing-sm); }
.mb-3 { margin-bottom: var(--spacing-md); }
.mb-4 { margin-bottom: var(--spacing-lg); }
.mb-5 { margin-bottom: var(--spacing-xl); }

/* ===== BUTTONS ===== */
.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border-radius: var(--border-radius-md);
    font-family: var(--font-heading);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all var(--transition-medium);
    cursor: pointer;
    border: none;
    text-align: center;
    box-shadow: var(--shadow-sm);
}

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

.btn-primary:hover {
    background-color: var(--secondary-dark);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
    color: var(--text-light);
}

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

.btn-secondary:hover {
    background-color: var(--primary-dark);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
    color: var(--text-light);
}

.btn-text {
    background: none;
    color: var(--primary-color);
    padding: 0.5rem;
    box-shadow: none;
    position: relative;
}

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

.btn-text:hover {
    color: var(--primary-dark);
    box-shadow: none;
    transform: none;
}

.btn-text:hover::after {
    width: 100%;
}

/* ===== HEADER ===== */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(26, 26, 46, 0.9);
    backdrop-filter: blur(10px);
    transition: all var(--transition-medium);
    box-shadow: var(--shadow-sm);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo svg {
    max-height: 50px;
    width: auto;
}

nav ul {
    display: flex;
}

nav ul li {
    margin-left: var(--spacing-md);
}

nav ul li a {
    color: var(--text-light);
    font-weight: 500;
    font-family: var(--font-heading);
    padding: 0.5rem;
    position: relative;
}

nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--secondary-color);
    transition: width var(--transition-medium);
}

nav ul li a:hover, nav ul li a.active {
    color: var(--secondary-light);
}

nav ul li a:hover::after, nav ul li a.active::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    cursor: pointer;
}

.mobile-menu-btn span {
    display: block;
    height: 2px;
    width: 100%;
    background-color: var(--text-light);
    transition: all var(--transition-medium);
}

/* ===== GAME SECTION ===== */
.game-section {
    padding-top: 120px;
    background: var(--background-gradient);
    color: var(--text-light);
    position: relative;
    overflow: hidden;
}

.game-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../images/game-bg-pattern.png');
    opacity: 0.1;
    z-index: 1;
}

.game-section .container {
    position: relative;
    z-index: 2;
}

.game-section h1 {
    color: var(--text-light);
    text-align: center;
    margin-bottom: var(--spacing-lg);
    text-shadow: 0 0 10px rgba(156, 77, 204, 0.5);
}

.game-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.game-window {
    width: 100%;
    max-width: 1020px;
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    margin-bottom: var(--spacing-md);
}

#game-iframe-container {
    width: 100%;
    position: relative;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    background-color: #000;
}

#game-iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    display: none;
}

.game-loading {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 10;
}

.loading-bar {
    width: 60%;
    height: 20px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    margin-top: var(--spacing-md);
}

.loading-progress {
    height: 100%;
    width: 0%;
    background-color: var(--secondary-color);
    border-radius: 10px;
    transition: width 0.5s ease;
}

.game-controls {
    background-color: rgba(0, 0, 0, 0.6);
    padding: var(--spacing-md);
    text-align: center;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.game-controls p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-light);
}

.game-actions {
    display: flex;
    gap: var(--spacing-md);
    margin-top: var(--spacing-md);
}

/* ===== INTRO SECTION ===== */
.intro-section {
    background-color: var(--background-light);
    position: relative;
}

.intro-section .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    align-items: center;
}

.intro-content h2 {
    color: var(--primary-dark);
}

.intro-buttons {
    display: flex;
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.intro-video {
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    position: relative;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
}

.intro-video iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* ===== FEATURES SECTION ===== */
.features-section {
    background-color: var(--background-dark);
    color: var(--text-light);
    text-align: center;
}

.features-section h2 {
    color: var(--text-light);
}

.section-subtitle {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto var(--spacing-xl);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
}

.feature-card {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-lg);
    transition: transform var(--transition-medium);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.feature-image {
    margin-bottom: var(--spacing-md);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    background-color: rgba(0, 0, 0, 0.2);
    height: 150px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.feature-image svg {
    max-width: 100%;
    height: auto;
    display: block;
}

.feature-card h3 {
    color: var(--secondary-light);
    margin-bottom: var(--spacing-sm);
}

.feature-card p {
    margin-bottom: var(--spacing-lg);
    flex-grow: 1;
}

/* ===== ENVIRONMENTS SECTION ===== */
.environments-section {
    background-color: var(--background-light);
    text-align: center;
}

.environments-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto auto;
    gap: var(--spacing-md);
    margin: var(--spacing-lg) 0;
}

.environment-card {
    position: relative;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-medium);
}

.environment-card:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-lg);
}

.environment-card.newzealand {
    grid-column: span 2;
}

.environment-image {
    width: 100%;
    height: 100%;
}

.environment-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.environment-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: var(--spacing-md);
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: var(--text-light);
    text-align: left;
}

.environment-info h3 {
    color: var(--text-light);
    margin-bottom: var(--spacing-xs);
}

.environments-note {
    margin-top: var(--spacing-lg);
}

/* ===== GUIDE SECTION ===== */
.guide-section {
    background-color: var(--background-dark);
    color: var(--text-light);
}

.guide-section h2 {
    color: var(--text-light);
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.guide-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
}

.guide-card {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-lg);
    height: 100%;
}

.guide-card h3 {
    color: var(--secondary-light);
    margin-bottom: var(--spacing-md);
}

.guide-list {
    margin-bottom: var(--spacing-lg);
}

.guide-list li {
    margin-bottom: var(--spacing-sm);
    position: relative;
    padding-left: var(--spacing-md);
}

.guide-list li::before {
    content: '▶';
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-size: 0.7rem;
}

.guide-note {
    text-align: center;
    margin-top: var(--spacing-lg);
}

/* ===== DOWNLOAD SECTION ===== */
.download-section {
    background-color: var(--background-light);
    text-align: center;
}

.download-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
    margin: var(--spacing-lg) 0;
}

.download-card {
    background-color: white;
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-medium);
}

.download-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.download-icon {
    margin: 0 auto var(--spacing-md);
    width: 64px;
    height: 64px;
}

.download-icon img {
    width: 100%;
    height: 100%;
}

.download-card h3 {
    margin-bottom: var(--spacing-xs);
}

.download-size {
    color: #666;
    margin-bottom: var(--spacing-md);
    font-size: 0.9rem;
}

.download-btn {
    width: 100%;
}

.download-note {
    margin-top: var(--spacing-lg);
    font-weight: 500;
}

/* ===== FAQ SECTION ===== */
.faq-section {
    background-color: var(--background-dark);
    color: var(--text-light);
}

.faq-section h2 {
    color: var(--text-light);
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.faq-list {
    max-width: 800px;
    margin: 0 auto var(--spacing-lg);
}

.faq-item {
    margin-bottom: var(--spacing-md);
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius-md);
    overflow: hidden;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-md);
    cursor: pointer;
    transition: background-color var(--transition-fast);
}

.faq-question:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.faq-question h3 {
    color: var(--text-light);
    margin: 0;
    font-size: 1.1rem;
}

.faq-toggle {
    font-size: 1.5rem;
    color: var(--secondary-color);
    transition: transform var(--transition-fast);
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 var(--spacing-md);
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-medium), padding var(--transition-medium);
}

.faq-item.active .faq-answer {
    padding: 0 var(--spacing-md) var(--spacing-md);
    max-height: 500px;
}

/* ===== COMMUNITY SECTION ===== */
.community-section {
    background-color: var(--background-light);
    text-align: center;
}

.community-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
    margin: var(--spacing-lg) 0;
}

.community-card {
    background-color: white;
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-medium);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.community-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.community-icon {
    margin: 0 auto var(--spacing-md);
    width: 48px;
    height: 48px;
}

.community-icon img {
    width: 100%;
    height: 100%;
}

.community-card h3 {
    margin-bottom: var(--spacing-sm);
}

.community-card p {
    margin-bottom: var(--spacing-lg);
    flex-grow: 1;
}

/* ===== FOOTER ===== */
footer {
    background-color: var(--background-dark);
    color: var(--text-light);
    padding: var(--spacing-xl) 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-lg);
}

.footer-logo svg {
    max-height: 50px;
    width: auto;
    margin-bottom: var(--spacing-md);
}

.footer-logo p {
    font-size: 0.9rem;
    opacity: 0.7;
}

.footer-links h4, .footer-social h4 {
    color: var(--text-light);
    margin-bottom: var(--spacing-md);
    font-size: 1.1rem;
}

.footer-links ul li {
    margin-bottom: var(--spacing-xs);
}

.footer-links ul li a {
    color: rgba(255, 255, 255, 0.7);
    transition: color var(--transition-fast);
}

.footer-links ul li a:hover {
    color: var(--secondary-light);
}

.social-icons {
    display: flex;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: background-color var(--transition-fast);
}

.social-icons a:hover {
    background-color: var(--primary-light);
}

.social-icons a img {
    width: 20px;
    height: 20px;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.fade-in {
    animation: fadeIn 1s ease forwards;
}

.slide-in-up {
    animation: slideInUp 0.8s ease forwards;
}

.pulse {
    animation: pulse 2s infinite;
}

/* Apply animations to sections as they come into view */
.features-section, .environments-section, .guide-section,
.download-section, .faq-section, .community-section {
    opacity: 0;
    transition: opacity 1s ease, transform 1s ease;
    transform: translateY(20px);
}

.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== How to Play Section Styles ===== */
.how-to-play-section {
    background-color: #121212;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.how-to-play-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../images/pattern-bg.svg') repeat;
    opacity: 0.05;
    z-index: 0;
}

.how-to-play-section .container {
    position: relative;
    z-index: 1;
}

.how-to-play-section h2,
.about-section h2,
.testimonials-section h2 {
    color: #ffffff;
    text-align: center;
    margin-bottom: 15px;
    font-size: 2.5rem;
    font-weight: 700;
    position: relative;
    display: block;
    width: 100%;
    padding-bottom: 10px;
}

.how-to-play-section h2::after,
.about-section h2::after,
.testimonials-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #6a1b9a, #4caf50);
    border-radius: 3px;
}

.section-subtitle {
    text-align: center;
    color: #9e9e9e;
    font-size: 1.2rem;
    margin-bottom: 40px;
}

.how-to-play-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, auto);
    gap: 30px;
    margin-bottom: 40px;
}

.how-to-play-card {
    background-color: #1a1a2e;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.how-to-play-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.how-to-play-icon {
    margin-bottom: 20px;
    text-align: center;
}

.how-to-play-card h3 {
    color: #ffffff;
    font-size: 1.4rem;
    margin-bottom: 15px;
    position: relative;
    padding-bottom: 10px;
}

.how-to-play-card h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, #6a1b9a, #4caf50);
    border-radius: 3px;
}

.how-to-play-card ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.how-to-play-card ul li {
    color: #e0e0e0;
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
    line-height: 1.5;
}

.how-to-play-card ul li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #4caf50;
}

.pro-tip {
    background: linear-gradient(90deg, rgba(76, 175, 80, 0.1), rgba(255, 171, 0, 0.1));
    border-left: 4px solid #ffab00;
    padding: 20px;
    border-radius: 5px;
    margin-top: 30px;
}

.pro-tip h3 {
    color: #ffab00;
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.pro-tip p {
    color: #e0e0e0;
    line-height: 1.6;
}

/* ===== About (What is) Section Styles ===== */
.about-section {
    background-color: #0a0a1a;
    padding: 80px 0;
    position: relative;
    text-align: center;
}

.about-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(to top, #121212, transparent);
    pointer-events: none;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    margin-top: 50px;
    align-items: start;
    text-align: left;
}

.about-text {
    color: #e0e0e0;
    line-height: 1.7;
}

.creator-note {
    margin-bottom: 20px;
}

.highlight {
    background: linear-gradient(90deg, #6a1b9a, #4caf50);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 600;
    font-size: 1.1rem;
}

.about-text h3 {
    color: #ffffff;
    font-size: 1.5rem;
    margin: 30px 0 15px;
    position: relative;
}

.about-text h3::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 0;
    width: 30px;
    height: 3px;
    background: #4caf50;
    border-radius: 3px;
}

.about-text p {
    margin-bottom: 15px;
}

.about-image {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

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

.about-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, rgba(106, 27, 154, 0.4), rgba(76, 175, 80, 0.4));
    z-index: 1;
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.about-image:hover::before {
    opacity: 0.7;
}

blockquote {
    border-left: 3px solid #4caf50;
    padding: 15px 0 15px 20px;
    margin: 30px 0;
    font-style: italic;
    color: #ffffff;
    background-color: rgba(76, 175, 80, 0.1);
    border-radius: 0 5px 5px 0;
}

.additional-features {
    margin-top: 60px;
}

.additional-features h3 {
    color: #ffffff;
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.additional-features > p {
    text-align: center;
    color: #9e9e9e;
    margin-bottom: 40px;
}

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

.feature-extra-card {
    background-color: #1a1a2e;
    border-radius: 10px;
    padding: 25px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-extra-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.feature-extra-card h4 {
    color: #ffffff;
    font-size: 1.3rem;
    margin-bottom: 15px;
    position: relative;
    padding-left: 20px;
}

.feature-extra-card h4::before {
    content: '★';
    position: absolute;
    left: 0;
    color: #ffab00;
}

.feature-extra-card p {
    color: #e0e0e0;
    line-height: 1.6;
}

/* ===== Testimonials Section Styles ===== */
.testimonials-section {
    background-color: #121212;
    padding: 80px 0;
    position: relative;
    text-align: center;
}

.testimonials-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../images/pattern-bg.svg') repeat;
    opacity: 0.05;
    z-index: 0;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    position: relative;
    z-index: 1;
}

.testimonial-card {
    background-color: rgba(26, 26, 46, 0.7);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.testimonial-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 20px;
    border: 3px solid #4caf50;
}

.testimonial-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonial-content h3 {
    color: #4caf50;
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.testimonial-content p {
    color: #e0e0e0;
    font-style: italic;
    position: relative;
}

.testimonial-content p::before {
    content: '"';
    color: #6a1b9a;
    font-size: 1.5rem;
    margin-right: 5px;
}

.testimonial-content p::after {
    content: '"';
    color: #4caf50;
    font-size: 1.5rem;
    margin-left: 5px;
}

.testimonial-cta {
    text-align: center;
    margin-top: 50px;
    padding: 30px;
    background-color: rgba(26, 26, 46, 0.5);
    border-radius: 10px;
}

.testimonial-cta p {
    color: #ffffff;
    font-size: 1.2rem;
    margin-bottom: 20px;
}

/* ===== Responsive Styles for New Sections ===== */
@media (max-width: 960px) {
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .about-image {
        order: -1;
        margin-bottom: 30px;
    }
}

@media (max-width: 768px) {
    .how-to-play-grid {
        grid-template-columns: 1fr;
    }
    
    .features-extra-grid {
        grid-template-columns: 1fr;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .pro-tip {
        padding: 15px;
    }
    
    .about-section h2,
    .how-to-play-section h2,
    .testimonials-section h2 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .section-subtitle {
        font-size: 1rem;
    }
    
    .how-to-play-card,
    .feature-extra-card,
    .testimonial-card {
        padding: 20px;
    }
    
    .testimonial-cta {
        padding: 20px;
    }
}

/* ===== Testimonials (Player Reactions) Section ===== */
.testimonials-section {
    background-color: #121212;
    padding: 80px 0;
    position: relative;
    text-align: center;
}

.testimonials-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../images/pattern-bg.svg') repeat;
    opacity: 0.05;
    z-index: 0;
}

/* 确保所有部分的标题样式一致 */
.how-to-play-section h2,
.about-section h2,
.testimonials-section h2 {
    color: #ffffff;
    text-align: center;
    margin-bottom: 15px;
    font-size: 2.5rem;
    font-weight: 700;
    position: relative;
    display: block;
    width: 100%;
    padding-bottom: 10px;
}

.how-to-play-section h2::after,
.about-section h2::after,
.testimonials-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #6a1b9a, #4caf50);
    border-radius: 3px;
}

/* Legal Pages (Privacy, Terms, Cookies) Styles */
.legal-section {
    padding-top: 120px; /* 增加顶部内边距，避免h1被header挡住 */
    padding-bottom: 60px;
}

.legal-section h1 {
    margin-bottom: 1.5rem;
}

.legal-section .section-subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 2.5rem;
}

.legal-content {
    max-width: 900px;
    margin: 0 auto;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 2rem;
}

.legal-section-block {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.legal-section-block:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.legal-section-block h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.legal-section-block h3 {
    color: var(--secondary-color);
    margin: 1.5rem 0 0.5rem;
}

.legal-list {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.legal-list li {
    margin-bottom: 0.5rem;
}

.cookie-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
}

.cookie-table th,
.cookie-table td {
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.75rem;
    text-align: left;
}

.cookie-table th {
    background-color: rgba(255, 255, 255, 0.05);
    font-weight: 600;
    color: var(--primary-light);
}

.cookie-table tr:nth-child(even) {
    background-color: rgba(255, 255, 255, 0.02);
}

.last-updated {
    margin-top: 3rem;
    text-align: center;
    font-style: italic;
    color: #666;
}

/* 悬浮在游戏区域右下角的全屏按钮样式 */
.floating-fullscreen-btn {
    position: relative;
    width: auto;
    height: 36px;
    border-radius: 6px;
    background-color: rgba(26, 26, 46, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0 10px;
}

.floating-fullscreen-btn:hover {
    background-color: rgba(76, 175, 80, 0.9);
    transform: scale(1.05);
}

.floating-fullscreen-btn svg {
    width: 20px;
    height: 20px;
    margin-right: 5px;
}

.floating-fullscreen-btn span {
    font-size: 0.9rem;
    font-weight: 500;
}

/* 确保游戏容器是相对定位，以便全屏按钮能够正确定位 */
#game-iframe-container {
    position: relative;
}

/* 游戏分享按钮样式 - 与游戏框架底部紧贴 */
.game-share {
    display: flex;
    justify-content: center;
    background-color: #f5f5f5;
    border-bottom-left-radius: var(--border-radius-lg);
    border-bottom-right-radius: var(--border-radius-lg);
    overflow: hidden;
    margin-top: -1px; /* 确保与游戏控制区域紧贴 */
}

.game-share-button {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    color: #fff;
    transition: all 0.3s ease;
    flex: 1;
    text-align: center;
}

.game-share-button svg {
    width: 20px;
    height: 20px;
    margin-right: 5px;
}

.game-share-button span {
    font-size: 0.9rem;
    font-weight: 500;
}

.game-share-button.facebook {
    background-color: #3b5998;
}

.game-share-button.twitter {
    background-color: #1da1f2;
}

.game-share-button.linkedin {
    background-color: #0077b5;
}

.game-share-button.whatsapp {
    background-color: #25d366;
}

.game-share-button.reddit {
    background-color: #ff4500;
}

.game-share-button:hover {
    opacity: 0.9;
    color: #fff;
}

/* 移动端响应式调整 */
@media (max-width: 768px) {
    .game-share {
        flex-wrap: wrap;
    }
    
    .game-share-button {
        flex: 1 0 33.333%;
    }
}

@media (max-width: 480px) {
    .game-share-button {
        flex: 1 0 50%;
    }
    
    .game-share-button span {
        display: none;
    }
    
    .game-share-button svg {
        margin-right: 0;
    }
}

/* ===== YOUTUBE FACADE STYLES ===== */
.youtube-facade {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
    overflow: hidden;
    border-radius: var(--border-radius-lg);
}

.youtube-thumbnail {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    background-color: #000;
}

.youtube-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    position: absolute;
    top: 0;
    left: 0;
}

.youtube-facade:hover .youtube-thumbnail img {
    transform: scale(1.05);
}

.youtube-play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: none;
    border: none;
    cursor: pointer;
    transition: transform 0.2s ease;
    width: 68px;
    height: 48px;
    opacity: 0.9;
}

.youtube-facade:hover .youtube-play-button {
    transform: translate(-50%, -50%) scale(1.1);
    opacity: 1;
}

.youtube-play-button svg {
    width: 100%;
    height: 100%;
}

.youtube-play-button .youtube-play-button-bg {
    transition: fill 0.3s ease;
}

.youtube-facade:hover .youtube-play-button .youtube-play-button-bg {
    fill: #ff0000;
}

.intro-video {
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    position: relative;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
}

.intro-video iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* ===== FEATURES SECTION ===== */
.features-section {
    background-color: var(--background-dark);
    color: var(--text-light);
    text-align: center;
}

.features-section h2 {
    color: var(--text-light);
}

.section-subtitle {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto var(--spacing-xl);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
}

.feature-card {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-lg);
    transition: transform var(--transition-medium);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.feature-image {
    margin-bottom: var(--spacing-md);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    background-color: rgba(0, 0, 0, 0.2);
    height: 150px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.feature-image svg {
    max-width: 100%;
    height: auto;
    display: block;
}

.feature-card h3 {
    color: var(--secondary-light);
    margin-bottom: var(--spacing-sm);
}

.feature-card p {
    margin-bottom: var(--spacing-lg);
    flex-grow: 1;
} 