/* Plants vs Brainrots - Modern UI Stylesheet */

/* CSS Custom Properties for Modern Color Scheme */
:root {
    /* Primary Colors - Modern Green Palette */
    --primary-50: #f0fdf4;
    --primary-100: #dcfce7;
    --primary-200: #bbf7d0;
    --primary-300: #86efac;
    --primary-400: #4ade80;
    --primary-500: #22c55e;
    --primary-600: #16a34a;
    --primary-700: #15803d;
    --primary-800: #166534;
    --primary-900: #14532d;
    
    /* Accent Colors - Modern Orange/Coral */
    --accent-50: #fff7ed;
    --accent-100: #ffedd5;
    --accent-200: #fed7aa;
    --accent-300: #fdba74;
    --accent-400: #fb923c;
    --accent-500: #f97316;
    --accent-600: #ea580c;
    --accent-700: #c2410c;
    --accent-800: #9a3412;
    --accent-900: #7c2d12;
    
    /* Neutral Colors */
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    
    /* Semantic Colors */
    --success: var(--primary-500);
    --warning: #fbbf24;
    --error: #ef4444;
    --info: #3b82f6;
    
    /* Background & Surface */
    --bg-primary: #ffffff;
    --bg-secondary: var(--gray-50);
    --bg-tertiary: var(--gray-100);
    --surface: #ffffff;
    --surface-elevated: #ffffff;
    
    /* Text Colors */
    --text-primary: var(--gray-900);
    --text-secondary: var(--gray-600);
    --text-tertiary: var(--gray-500);
    --text-inverse: #ffffff;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
    
    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    
    /* Transitions */
    --transition-fast: 150ms ease-in-out;
    --transition-normal: 250ms ease-in-out;
    --transition-slow: 350ms ease-in-out;
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    :root {
        --bg-primary: var(--gray-900);
        --bg-secondary: var(--gray-800);
        --bg-tertiary: var(--gray-700);
        --surface: var(--gray-800);
        --surface-elevated: var(--gray-700);
        --text-primary: var(--gray-100);
        --text-secondary: var(--gray-300);
        --text-tertiary: var(--gray-400);
    }
}

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

*::before,
*::after {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11';
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scroll-behavior: smooth;
    padding-top: 80px; /* Add space for fixed header */
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Modern Layout Utilities */
.section {
    padding: 5rem 0;
}

.section-sm {
    padding: 3rem 0;
}

.section-lg {
    padding: 7rem 0;
}

/* Glass Morphism Effect */
.glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Modern Card Component */
.card {
    background: var(--surface);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-normal);
    border: 1px solid var(--gray-200);
}

.card:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-2px);
}

/* Gradient Backgrounds */
.gradient-primary {
    background: linear-gradient(135deg, var(--primary-500) 0%, var(--primary-600) 100%);
}

.gradient-accent {
    background: linear-gradient(135deg, var(--accent-500) 0%, var(--accent-600) 100%);
}

.gradient-mesh {
    background: 
        radial-gradient(at 40% 20%, var(--primary-500) 0px, transparent 50%),
        radial-gradient(at 80% 0%, var(--accent-500) 0px, transparent 50%),
        radial-gradient(at 0% 50%, var(--primary-400) 0px, transparent 50%),
        radial-gradient(at 80% 50%, var(--accent-400) 0px, transparent 50%),
        radial-gradient(at 0% 100%, var(--primary-300) 0px, transparent 50%),
        radial-gradient(at 80% 100%, var(--accent-300) 0px, transparent 50%),
        radial-gradient(at 0% 0%, var(--primary-200) 0px, transparent 50%);
}

/* Header Styles */
.header {
    background: var(--surface);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--gray-200);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
    transition: all var(--transition-normal);
}

.header.scrolled {
    box-shadow: var(--shadow-lg);
    background: rgba(255, 255, 255, 0.95);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    max-width: 1280px;
    margin: 0 auto;
    position: relative;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    z-index: 10;
}

.nav-brand .logo {
    height: 44px;
    width: auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
}

.nav-brand .logo:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-lg);
}

.nav-brand h1,
.nav-brand .brand-name {
    color: var(--text-primary);
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.025em;
    background: linear-gradient(135deg, var(--primary-600), var(--accent-500));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-lg);
    transition: all var(--transition-fast);
    position: relative;
    overflow: hidden;
}

.nav-links a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left var(--transition-slow);
}

.nav-links a:hover::before {
    left: 100%;
}

.nav-links a:hover {
    color: var(--primary-600);
    background: var(--primary-50);
    transform: translateY(-1px);
}

/* Dropdown Navigation Styles */
.nav-dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    border-radius: 0.5rem;
}

.dropdown-toggle:hover {
    color: var(--primary-600);
    background: var(--primary-50);
    transform: translateY(-1px);
}

.dropdown-arrow {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.nav-dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    min-width: 200px;
    border: 1px solid var(--gray-200);
}

.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu a {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border-bottom: 1px solid var(--gray-100);
}

.dropdown-menu a:last-child {
    border-bottom: none;
}

.dropdown-menu a:hover {
    background: var(--primary-50);
    color: var(--primary-600);
    transform: none;
}

.nav-links a:active {
    transform: translateY(0);
}

/* Hero Section */
.hero {
    background: var(--gradient-mesh);
    color: var(--text-inverse);
    padding: 8rem 0 6rem;
    min-height: 80vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(34, 197, 94, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(249, 115, 22, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(34, 197, 94, 0.1) 0%, transparent 50%);
    z-index: 1;
    animation: heroGlow 8s ease-in-out infinite alternate;
}

@keyframes heroGlow {
    0% { opacity: 0.8; }
    100% { opacity: 1; }
}

.hero-container {
    position: relative;
    z-index: 2;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: #ffffff;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8), 1px 1px 4px rgba(0, 0, 0, 0.6);
    animation: fadeInUp 0.8s ease-out;
}

.hero-subtitle {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    margin-bottom: 2rem;
    color: #ffffff;
    font-weight: 600;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.7);
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-description {
    font-size: 1.125rem;
    margin-bottom: 3rem;
    line-height: 1.7;
    color: #ffffff;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.6);
    background: rgba(0, 0, 0, 0.4);
    padding: 2rem;
    border-radius: var(--radius-2xl);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

.btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: var(--radius-xl);
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all var(--transition-normal);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    letter-spacing: 0.025em;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left var(--transition-slow);
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-500), var(--accent-600));
    color: var(--text-inverse);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--accent-600);
}

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

.btn-primary:active {
    transform: translateY(0);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.95);
    color: var(--gray-800);
    border: 2px solid rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    font-weight: 600;
    text-shadow: none;
    box-shadow: var(--shadow-md);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 1);
    color: var(--gray-900);
    border-color: rgba(255, 255, 255, 1);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary:active {
    transform: translateY(0);
}

.btn-tertiary {
    background: linear-gradient(135deg, var(--info), #2563eb);
    color: var(--text-inverse);
    border: 2px solid #2563eb;
    box-shadow: var(--shadow-md);
}

.btn-tertiary:hover {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-tertiary:active {
    transform: translateY(0);
    box-shadow: var(--shadow-sm);
}

/* Button Variants */
.btn-outline {
    background: transparent;
    color: var(--primary-600);
    border: 2px solid var(--primary-600);
}

.btn-outline:hover {
    background: var(--primary-600);
    color: var(--text-inverse);
    transform: translateY(-2px);
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
    border: none;
}

.btn-ghost:hover {
    background: var(--gray-100);
    color: var(--text-primary);
}

/* Video Container */
.hero-video {
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeInUp 0.8s ease-out 0.8s both;
}

.video-container {
    width: 100%;
    max-width: 520px;
    aspect-ratio: 16/9;
    border-radius: var(--radius-2xl);
    overflow: hidden;
    box-shadow: var(--shadow-2xl);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all var(--transition-normal);
}

.video-container:hover {
    transform: scale(1.02);
    box-shadow: 0 30px 60px rgba(0,0,0,0.3);
}

.video-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: var(--radius-2xl);
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-2xl);
}

.hero-preview-image {
    max-width: 480px;
    width: 100%;
    height: auto;
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-2xl);
    transition: all var(--transition-normal);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-preview-image:hover {
    transform: scale(1.03) rotate(1deg);
    box-shadow: 0 30px 60px rgba(0,0,0,0.4);
}

/* Game Section */
.game-section {
    padding: 6rem 0;
    background: var(--bg-secondary);
}

.game-section h2 {
    text-align: center;
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 3rem;
    color: var(--text-primary);
    font-weight: 700;
    letter-spacing: -0.025em;
}

.game-embed {
    margin: 0 auto;
    border-radius: var(--radius-2xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--gray-200);
    background: var(--surface);
}

.game-embed iframe {
    width: 100%;
    height: 500px;
    border: none;
    border-radius: var(--radius-2xl);
}

/* Similar Games Section */
.similar-games {
    padding: 6rem 0;
    background: var(--bg-primary);
}

.similar-games h2 {
    text-align: center;
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 4rem;
    color: var(--text-primary);
    font-weight: 700;
    letter-spacing: -0.025em;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.game-card {
    background: var(--surface);
    border-radius: var(--radius-2xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid var(--gray-200);
    position: relative;
}

.game-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--primary-500) 0%, var(--accent-500) 100%);
    opacity: 0;
    transition: opacity var(--transition-normal);
    z-index: 1;
}

.game-card:hover::before {
    opacity: 0.03;
}

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

.game-card-link {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    flex-grow: 1;
    transition: all var(--transition-normal);
    position: relative;
    z-index: 2;
}

.game-card-link:hover {
    text-decoration: none;
    color: inherit;
}

.game-image {
    width: 100%;
    height: 240px;
    object-fit: contain;
    object-position: center;
    display: block;
    transition: all var(--transition-normal);
    background: var(--bg-secondary);
    padding: 1rem;
}

.game-card:hover .game-image {
    transform: scale(1.05);
    filter: brightness(1.1) saturate(1.1);
}

.game-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 2;
}

.game-content h3 {
    font-size: 1.375rem;
    color: var(--text-primary);
    margin: 0 0 0.75rem 0;
    font-weight: 600;
    letter-spacing: -0.025em;
    transition: all var(--transition-normal);
}

.game-card:hover .game-content h3 {
    color: var(--primary-600);
}

.game-content p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
    flex-grow: 1;
    font-size: 0.95rem;
}

.game-actions {
    padding: 0 1.5rem 1.5rem;
    position: relative;
    z-index: 2;
}

.game-actions .btn {
    width: 100%;
    text-align: center;
    font-size: 0.95rem;
    padding: 0.875rem 1.5rem;
    display: block;
}

/* Special Adventures */
.special-adventures {
    padding: 6rem 0;
    background: var(--bg-secondary);
}

.special-adventures h2 {
    text-align: center;
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    font-weight: 700;
    letter-spacing: -0.025em;
}

.special-adventures > .container > p {
    text-align: center;
    font-size: 1.25rem;
    margin-bottom: 4rem;
    color: var(--text-secondary);
    margin-left: auto;
    margin-right: auto;
}

.adventures-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
}

.adventure-card {
    position: relative;
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-xl);
    transition: all var(--transition-normal);
    overflow: hidden;
    min-height: 280px;
    display: flex;
    align-items: flex-end;
    border: 1px solid var(--gray-200);
}

.adventure-card[data-bg="plants-guide"] {
    background: 
        linear-gradient(135deg, rgba(34, 197, 94, 0.9) 0%, rgba(249, 115, 22, 0.9) 100%),
        url('../images/Plants vs Brainrots 5.webp') center/cover no-repeat;
}

.adventure-card[data-bg="boss-battles"] {
    background: 
        linear-gradient(135deg, rgba(249, 115, 22, 0.9) 0%, rgba(239, 68, 68, 0.9) 100%),
        url('../images/Plants vs Brainrots 6.webp') center/cover no-repeat;
}

.adventure-card[data-bg="codes-guide"] {
    background: 
        linear-gradient(135deg, rgba(59, 130, 246, 0.9) 0%, rgba(147, 51, 234, 0.9) 100%),
        url('../images/Plants vs Brainrots 2.webp') center/cover no-repeat;
}

.adventure-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.adventure-content {
    background: rgba(0, 0, 0, 0.7);
    color: var(--text-inverse);
    padding: 2rem;
    width: 100%;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.adventure-content h3 {
    font-size: 1.375rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
    letter-spacing: -0.025em;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
}

.adventure-content p {
    line-height: 1.6;
    opacity: 0.95;
    font-size: 0.95rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.6);
}

/* Game Introduction */
.game-intro {
    padding: 4rem 0;
    background: #f8f9fa;
}

.game-intro h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: #2c5530;
}

.game-intro p {
    font-size: 1.1rem;
    line-height: 1.8;
    text-align: center;
    margin: 0 auto;
    color: #555;
}

/* Code Guide Section */
.code-guide {
    padding: 4rem 0;
    background: white;
}

.code-guide h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #2c5530;
}

.code-guide > .container > p {
    text-align: center;
    font-size: 1.2rem;
    margin-bottom: 3rem;
    color: #666;
    margin-left: auto;
    margin-right: auto;
}

.code-steps {
    display: grid;
    gap: 3rem;
}

.code-step {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 2rem;
    align-items: center;
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.code-step:nth-child(even) {
    grid-template-columns: 300px 1fr;
}

.code-step:nth-child(even) .step-content {
    order: 2;
}

.code-step:nth-child(even) .step-image-container {
    order: 1;
}

.step-content {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.code-step .step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.step-info h3 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    color: #2c5530;
}

.step-info p {
    color: #666;
    line-height: 1.6;
}

.step-image-container {
    text-align: center;
}

.guide-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    border: 3px solid #4a7c59;
}

/* Working Codes Section */
.working-codes {
    padding: 4rem 0;
    background: #f8f9fa;
}

.working-codes h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #2c5530;
}

.working-codes > .container > p {
    text-align: center;
    font-size: 1.2rem;
    margin-bottom: 3rem;
    color: #666;
}

.codes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.code-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    text-align: center;
    border-left: 4px solid #4a7c59;
    transition: transform 0.3s ease;
}

.code-card:hover {
    transform: translateY(-5px);
}

.code-name {
    font-size: 1.8rem;
    font-weight: bold;
    color: #2c5530;
    margin-bottom: 1rem;
    font-family: 'Courier New', monospace;
    background: #f0f0f0;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    display: inline-block;
}

.code-reward {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 1rem;
}

.code-status {
    font-size: 1rem;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    display: inline-block;
}

.code-status.active {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.code-note {
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    color: white;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(255, 107, 53, 0.2);
}

.code-note p {
    margin: 0;
    font-size: 1.1rem;
    line-height: 1.6;
}

/* How to Play Section */
.how-to-play {
    padding: 4rem 0;
    background: white;
}

.how-to-play h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #2c5530;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.step {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.step:hover {
    transform: translateY(-5px);
}

.step-visual {
    position: relative;
    margin-bottom: 1.5rem;
}

.step-number {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #4a7c59, #6b8e23);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    font-weight: bold;
    margin: 0 auto 1rem;
    position: relative;
    z-index: 2;
    box-shadow: 0 4px 12px rgba(74, 124, 89, 0.3);
}

.step-image {
    width: 120px;
    height: 80px;
    background-size: cover;
    background-position: center;
    border-radius: 8px;
    margin: 0 auto;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    border: 3px solid #4a7c59;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.step-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 5px;
}

.step h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: #2c5530;
}

.step p {
    line-height: 1.6;
    color: #666;
}

/* Key Features */
.key-features {
    padding: 4rem 0;
    background: #f8f9fa;
}

.key-features h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #2c5530;
}

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

.feature {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.feature:hover {
    transform: translateY(-3px);
}

.feature h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: #2c5530;
}

.feature p {
    line-height: 1.6;
    color: #666;
}

/* Pro Tips */
.pro-tips {
    padding: 4rem 0;
    background: white;
}

.pro-tips h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #2c5530;
}

.pro-tips > .container > p {
    text-align: center;
    font-size: 1.2rem;
    margin-bottom: 3rem;
    color: #666;
}

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

.tip {
    background: linear-gradient(135deg, #2c5530 0%, #4a7c59 100%);
    color: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(44, 85, 48, 0.2);
    transition: transform 0.3s ease;
}

.tip:hover {
    transform: translateY(-3px);
}

.tip h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: #90ee90;
}

.tip p {
    line-height: 1.6;
    opacity: 0.95;
}

/* Game Details */
.game-details {
    padding: 4rem 0;
    background: #f8f9fa;
}

.game-details h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #2c5530;
}

.game-details > .container > p {
    text-align: center;
    font-size: 1.1rem;
    margin-bottom: 3rem;
    color: #666;
}

.table-container {
    overflow-x: auto;
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.details-table {
    width: 100%;
    border-collapse: collapse;
}

.details-table th,
.details-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.details-table th {
    background: #2c5530;
    color: white;
    font-weight: 600;
}

.details-table tr:hover {
    background: #f8f9fa;
}

.game-details em {
    display: block;
    text-align: center;
    margin-top: 2rem;
    color: #666;
    font-style: italic;
}

/* FAQ Section */
.faq {
    padding: 4rem 0;
    background: white;
}

.faq h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #2c5530;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
}

.faq-item {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 12px;
    border-left: 4px solid #4a7c59;
}

.faq-item h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #2c5530;
}

.faq-item p {
    line-height: 1.6;
    color: #666;
}

/* Footer */
.footer {
    background: #2c5530;
    color: white;
    padding: 3rem 0 1rem;
}

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

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    color: #90ee90;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #90ee90;
}

.footer-bottom {
    border-top: 1px solid #4a7c59;
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-badges {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1rem 0;
}

.footer-badges img {
    transition: transform 0.3s ease, opacity 0.3s ease;
    border-radius: 4px;
}

.footer-badges img:hover {
    transform: scale(1.05);
    opacity: 0.9;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #90ee90;
}

/* Image Optimization */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

.game-image {
    transition: transform 0.3s ease, filter 0.3s ease;
}

.game-image:hover {
    transform: scale(1.05);
    filter: brightness(1.1);
}

/* Loading States */
.step-image,
.adventure-card {
    background-color: #f0f0f0;
    transition: all 0.3s ease;
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mb-2 {
    margin-bottom: 2rem;
}

.mb-3 {
    margin-bottom: 3rem;
}

/* Modern Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.8;
    }
}

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

/* Removed flicker-causing animation classes */
.float {
    animation: float 3s ease-in-out infinite;
}

.pulse {
    animation: pulse 2s ease-in-out infinite;
}

/* Loading Shimmer Effect */
.shimmer {
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

/* Ripple Effect Animation */
@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Enhanced Hover States */
.interactive-hover {
    transition: all var(--transition-normal);
    cursor: pointer;
}

.interactive-hover:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

/* Focus States for Accessibility */
.btn:focus-visible,
.nav-links a:focus-visible {
    outline: 2px solid var(--primary-500);
    outline-offset: 2px;
}

/* Loading States */
.loading {
    position: relative;
    overflow: hidden;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    animation: shimmer 1.5s infinite;
}

/* Smooth Transitions for All Interactive Elements */
* {
    transition: color var(--transition-fast), 
                background-color var(--transition-fast),
                border-color var(--transition-fast),
                opacity var(--transition-fast);
}

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

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    :root {
        --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.3);
        --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.3), 0 2px 4px -2px rgb(0 0 0 / 0.3);
        --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.3), 0 4px 6px -4px rgb(0 0 0 / 0.3);
    }
    
    .btn {
        border: 2px solid currentColor;
    }
}

/* Performance Optimizations */
.game-card,
.adventure-card,
.btn {
    will-change: transform;
}

/* Smooth Animations - Reduced movement to prevent flicker */
.adventure-card:hover {
    transform: translateY(-2px);
}

.btn:hover {
    transform: translateY(-1px);
}

/* Optimize Repaints */
.hero::before,
.adventure-card::before {
    will-change: opacity;
}

/* Critical Resource Hints */
.game-image,
.hero-preview-image {
    content-visibility: auto;
    contain-intrinsic-size: 300px 200px;
}

/* Smooth Scrolling Performance */
html {
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

/* Container Queries Support (Future-proofing) */
@supports (container-type: inline-size) {
    .game-card {
        container-type: inline-size;
    }
    
    @container (max-width: 300px) {
        .game-content {
            padding: 1rem;
        }
    }
}

/* Badge Guide Styles */
.badge-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.badge-card {
    background: var(--surface);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-normal);
    border: 1px solid var(--gray-200);
    overflow: hidden;
}

.badge-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-200);
}

.badge-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, var(--primary-50), var(--accent-50));
    border-bottom: 1px solid var(--gray-200);
}

.badge-icon {
    font-size: 2.5rem;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
}

.badge-info h3 {
    font-size: 1.375rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.badge-difficulty {
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge-difficulty.easy {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.badge-difficulty.medium {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.badge-difficulty.hard {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.badge-difficulty.expert {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.badge-difficulty.special {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
}

.badge-content {
    padding: 1.5rem;
}

.badge-content p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.badge-content p strong {
    color: var(--text-primary);
    font-weight: 600;
}

.badge-strategy {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    border-left: 4px solid var(--primary-500);
}

.badge-strategy h4 {
    color: var(--text-primary);
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.badge-strategy ol {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.badge-strategy li {
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.badge-tip {
    margin-top: 1rem;
    padding: 1rem;
    background: var(--accent-50);
    border-radius: var(--radius-md);
    border-left: 4px solid var(--accent-500);
}

.badge-tip strong {
    color: var(--accent-700);
}

.badge-tip a {
    color: var(--primary-600);
    text-decoration: none;
    font-weight: 500;
}

.badge-tip a:hover {
    text-decoration: underline;
}

/* Active navigation link */
.nav-links a.active {
    background: var(--primary-600);
    color: white;
    font-weight: 600;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

/* Active state for dropdown items */
.dropdown-menu a.active {
    background: var(--primary-100);
    color: var(--primary-700);
    font-weight: 600;
}

/* Floating Quick Navigation */
.floating-nav {
    position: fixed;
    bottom: 100px;
    right: 30px;
    z-index: 1001;
}

.floating-nav-toggle {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--accent-500), var(--accent-600));
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    position: relative;
}

.floating-nav-toggle:hover {
    background: linear-gradient(135deg, var(--accent-600), var(--accent-700));
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.2);
}

.floating-nav-toggle svg {
    transition: transform 0.3s ease;
}

.floating-nav.active .floating-nav-toggle svg {
    transform: rotate(45deg);
}

.floating-nav-menu {
    position: absolute;
    bottom: 60px;
    right: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.floating-nav.active .floating-nav-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.floating-nav-item {
    width: 45px;
    height: 45px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    border: 2px solid var(--primary-200);
}

.floating-nav-item:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-400);
}

.floating-nav-item .nav-emoji {
    font-size: 1.2rem;
}

/* Tooltip for floating nav */
.floating-nav-item::before {
    content: attr(data-tooltip);
    position: absolute;
    right: 55px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--gray-800);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
}

.floating-nav-item::after {
    content: '';
    position: absolute;
    right: 45px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid var(--gray-800);
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.floating-nav-item:hover::before,
.floating-nav-item:hover::after {
    opacity: 1;
    visibility: visible;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-600);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--primary-700);
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.2);
}

.back-to-top:active {
    transform: translateY(0);
}

.back-to-top svg {
    transition: transform 0.2s ease;
}

.back-to-top:hover svg {
    transform: translateY(-1px);
}

/* Mobile responsive */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
    
    /* Mobile Navigation */
    .nav-links {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .nav-dropdown {
        width: 100%;
    }
    
    .dropdown-toggle {
        justify-content: space-between;
        width: 100%;
    }
    
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        background: var(--bg-secondary);
        margin-top: 0.5rem;
        border-radius: 0.5rem;
    }
    
    .nav-dropdown:hover .dropdown-menu {
        display: block;
    }
    
    .rebirth-tips .container,
    .rebirth-intro .container,
    .rebirth-comparison .container,
    .rebirth-cards .container {
        padding: 0 1rem;
    }
    
    .floating-nav {
        bottom: 80px;
        right: 20px;
    }
    
    .floating-nav-toggle {
        width: 45px;
        height: 45px;
    }
    
    .floating-nav-item {
        width: 40px;
        height: 40px;
    }
    
    .floating-nav-item .nav-emoji {
        font-size: 1rem;
    }
    
    .floating-nav-item::before {
        right: 50px;
        font-size: 0.75rem;
        padding: 6px 10px;
    }
    
    .floating-nav-item::after {
        right: 40px;
        border-left-width: 5px;
        border-top-width: 5px;
        border-bottom-width: 5px;
    }
    
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
    
    .back-to-top svg {
        width: 20px;
        height: 20px;
    }
}

/* Guide Image Lightbox */
.clickable-guide-image {
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 8px;
    position: relative;
}

.clickable-guide-image:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.clickable-guide-image::after {
    content: '🔍';
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 8px;
    border-radius: 50%;
    font-size: 14px;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.clickable-guide-image:hover::after {
    opacity: 1;
}

.guide-lightbox {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    animation: fadeIn 0.3s ease;
}

.guide-lightbox.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    margin: auto;
    animation: zoomIn 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lightbox-close {
    position: absolute;
    top: -50px;
    right: 0;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10001;
    transition: all 0.3s ease;
    background: rgba(0, 0, 0, 0.5);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-close:hover {
    color: var(--primary-400);
    background: rgba(0, 0, 0, 0.8);
    transform: scale(1.1);
}

#lightboxImage {
    max-width: 100%;
    max-height: 70vh;
    width: auto;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    object-fit: contain;
}

.lightbox-caption {
    color: white;
    text-align: center;
    padding: 20px;
    font-size: 16px;
    background: rgba(0, 0, 0, 0.8);
    border-radius: 8px;
    margin-top: 15px;
    max-width: 600px;
    line-height: 1.5;
}

.lightbox-navigation {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
    color: white;
}

.lightbox-prev,
.lightbox-next {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: var(--primary-600);
    transform: scale(1.1);
}

.lightbox-prev:disabled,
.lightbox-next:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.lightbox-counter {
    font-size: 16px;
    font-weight: 500;
    padding: 10px 20px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 20px;
}

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

@keyframes zoomIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* Mobile lightbox */
@media (max-width: 768px) {
    .lightbox-content {
        max-width: 95%;
        max-height: 95%;
    }
    
    .lightbox-close {
        top: -40px;
        font-size: 30px;
        width: 40px;
        height: 40px;
    }
    
    .lightbox-caption {
        font-size: 14px;
        padding: 15px;
    }
    
    #lightboxImage {
        max-height: 60vh;
    }
    
    .lightbox-prev,
    .lightbox-next {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    
    .lightbox-navigation {
        gap: 15px;
        margin-top: 15px;
    }
    
    .lightbox-counter {
        font-size: 14px;
        padding: 8px 16px;
    }
    
    .clickable-guide-image::after {
        font-size: 12px;
        padding: 6px;
        top: 8px;
        right: 8px;
    }
}

/* ===== CARDS GUIDE PAGE STYLES ===== */

/* Cards Introduction Section */
.cards-intro {
    padding: 4rem 0;
    background: linear-gradient(135deg, var(--primary-50) 0%, var(--accent-50) 100%);
}

.cards-intro h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 2rem;
    text-align: center;
}

.cards-intro p {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--gray-700);
    margin-bottom: 1.5rem;
    margin-left: auto;
    margin-right: auto;
}

/* All Cards Section */
.all-cards {
    padding: 5rem 0;
    background: var(--bg-primary);
}

.all-cards h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 1.5rem;
    text-align: center;
}

.all-cards > .container > p {
    font-size: 1.2rem;
    color: var(--gray-600);
    text-align: center;
    margin-bottom: 3rem;
    margin-left: auto;
    margin-right: auto;
}

/* Cards Table Styles */
.cards-table-container {
    background: white;
    border-radius: 1rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin: 2rem 0;
}

.cards-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.cards-table thead {
    background: linear-gradient(135deg, var(--primary-600) 0%, var(--primary-700) 100%);
    color: white;
}

.cards-table th {
    padding: 1.2rem 1rem;
    text-align: left;
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.5px;
}

.cards-table tbody tr {
    transition: all 0.2s ease;
    border-bottom: 1px solid var(--gray-200);
}

.cards-table tbody tr:hover {
    background: var(--gray-50);
    transform: scale(1.01);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.cards-table td {
    padding: 1rem;
    vertical-align: top;
    line-height: 1.6;
}

.cards-table td:first-child {
    font-weight: 600;
    color: var(--gray-900);
}

/* Card Rarity Colors */
.legendary-card {
    border-left: 4px solid #ff6b35;
    background: linear-gradient(90deg, rgba(255, 107, 53, 0.05) 0%, transparent 100%);
}

.epic-card {
    border-left: 4px solid #9c27b0;
    background: linear-gradient(90deg, rgba(156, 39, 176, 0.05) 0%, transparent 100%);
}

.rare-card {
    border-left: 4px solid #2196f3;
    background: linear-gradient(90deg, rgba(33, 150, 243, 0.05) 0%, transparent 100%);
}

.uncommon-card {
    border-left: 4px solid #4caf50;
    background: linear-gradient(90deg, rgba(76, 175, 80, 0.05) 0%, transparent 100%);
}

.common-card {
    border-left: 4px solid var(--gray-400);
    background: linear-gradient(90deg, rgba(156, 163, 175, 0.05) 0%, transparent 100%);
}

/* Get Cards Section */
.get-cards {
    padding: 5rem 0;
    background: var(--bg-secondary);
}

.get-cards h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 1.5rem;
    text-align: center;
}

.get-cards > .container > p {
    font-size: 1.2rem;
    color: var(--gray-600);
    text-align: center;
    margin-bottom: 3rem;
    margin-left: auto;
    margin-right: auto;
}

.get-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.get-card-method {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    text-align: center;
}

.get-card-method:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.method-image {
    margin-bottom: 1.5rem;
}

.method-img {
    width: 100%;
    max-width: 250px;
    height: 180px;
    object-fit: cover;
    border-radius: 0.75rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.get-card-method h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 1rem;
}

.get-card-method p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--gray-600);
}

/* Equip Cards Section */
.equip-cards {
    padding: 5rem 0;
    background: var(--bg-primary);
}

.equip-cards h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 1.5rem;
    text-align: center;
}

.equip-cards > .container > p {
    font-size: 1.2rem;
    color: var(--gray-600);
    text-align: center;
    margin-bottom: 3rem;
    margin-left: auto;
    margin-right: auto;
}

.equip-steps {
    display: grid;
    gap: 2rem;
    margin-top: 3rem;
}

.equip-step {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.equip-step:hover {
    transform: translateX(10px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.step-number {
    flex-shrink: 0;
    width: 3rem;
    height: 3rem;
    background: linear-gradient(135deg, var(--primary-500) 0%, var(--primary-600) 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
}

.step-content h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
}

.step-content p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--gray-600);
}

/* Merge Cards Section */
.merge-cards {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--accent-50) 0%, var(--primary-50) 100%);
}

.merge-cards h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 1.5rem;
    text-align: center;
}

.merge-cards > .container > p {
    font-size: 1.2rem;
    color: var(--gray-600);
    text-align: center;
    margin-bottom: 3rem;
    margin-left: auto;
    margin-right: auto;
}

.merge-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    margin-bottom: 3rem;
}

.merge-image {
    text-align: center;
}

.merge-gif {
    width: 100%;
    max-width: 400px;
    border-radius: 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.merge-steps h3 {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 1.5rem;
}

.merge-steps ol {
    list-style: none;
    counter-reset: step-counter;
}

.merge-steps li {
    counter-increment: step-counter;
    margin-bottom: 1rem;
    padding-left: 3rem;
    position: relative;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--gray-700);
}

.merge-steps li::before {
    content: counter(step-counter);
    position: absolute;
    left: 0;
    top: 0;
    width: 2rem;
    height: 2rem;
    background: var(--primary-500);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
}

.merge-tips {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.merge-tips h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 1rem;
}

.merge-tips ul {
    list-style: none;
}

.merge-tips li {
    margin-bottom: 0.8rem;
    padding-left: 2rem;
    position: relative;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--gray-700);
}

.merge-tips li::before {
    content: "💡";
    position: absolute;
    left: 0;
    top: 0;
}

/* Best Cards Section */
.best-cards {
    padding: 5rem 0;
    background: var(--bg-primary);
}

.best-cards h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 1.5rem;
    text-align: center;
}

.best-cards > .container > p {
    font-size: 1.2rem;
    color: var(--gray-600);
    text-align: center;
    margin-bottom: 3rem;
    margin-left: auto;
    margin-right: auto;
}

.best-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.best-card {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.best-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-400) 0%, var(--accent-400) 100%);
}

.best-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.card-rank {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 2.5rem;
    height: 2.5rem;
    background: linear-gradient(135deg, var(--accent-500) 0%, var(--accent-600) 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
}

.best-card h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 1rem;
    margin-top: 0.5rem;
}

.best-card p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--gray-600);
}

/* Card Combinations Section */
.card-combinations {
    padding: 5rem 0;
    background: var(--bg-secondary);
}

.card-combinations h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 1.5rem;
    text-align: center;
}

.card-combinations > .container > p {
    font-size: 1.2rem;
    color: var(--gray-600);
    text-align: center;
    margin-bottom: 3rem;
    margin-left: auto;
    margin-right: auto;
}

.combo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.combo-card {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    text-align: center;
}

.combo-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.combo-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 1.5rem;
}

.combo-cards {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.combo-item {
    background: linear-gradient(135deg, var(--primary-100) 0%, var(--primary-200) 100%);
    color: var(--primary-700);
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.9rem;
    font-weight: 500;
    white-space: nowrap;
}

.combo-plus {
    color: var(--gray-400);
    font-weight: 600;
    font-size: 1.2rem;
}

.combo-card p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--gray-600);
}

/* ===== REBIRTH GUIDE PAGE STYLES ===== */

/* Rebirth Introduction Section */
.rebirth-intro {
    padding: 4rem 0;
    background: linear-gradient(135deg, var(--primary-50) 0%, var(--accent-50) 100%);
}

.rebirth-intro .container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.rebirth-intro h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 2rem;
    text-align: center;
}

.rebirth-intro p {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--gray-700);
    margin-bottom: 1.5rem;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.rebirth-benefits {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin-top: 2rem;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.rebirth-benefits h3 {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 1rem;
}

.rebirth-benefits ul {
    list-style: none;
}

.rebirth-benefits li {
    margin-bottom: 0.8rem;
    padding-left: 2rem;
    position: relative;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--gray-700);
}

.rebirth-benefits li::before {
    content: "🌟";
    position: absolute;
    left: 0;
    top: 0;
}

/* Rebirth Levels Section */
.rebirth-levels {
    padding: 5rem 0;
    background: var(--bg-primary);
}

.rebirth-levels h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 1.5rem;
    text-align: center;
}

.rebirth-levels > .container > p {
    font-size: 1.2rem;
    color: var(--gray-600);
    text-align: center;
    margin-bottom: 3rem;
    margin-left: auto;
    margin-right: auto;
}

.rebirth-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.rebirth-card {
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: auto;
}

.rebirth-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.rebirth-card.max-rebirth {
    border: 3px solid var(--accent-400);
    background: linear-gradient(135deg, white 0%, var(--accent-50) 100%);
}

.rebirth-card.max-rebirth .rebirth-header {
    background: linear-gradient(135deg, var(--accent-500) 0%, var(--accent-600) 100%);
}

.rebirth-image {
    width: 100%;
    height: 180px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-100) 0%, var(--accent-100) 100%);
    position: relative;
    border-bottom: 1px solid var(--gray-200);
}

.rebirth-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, transparent 30%, rgba(255, 255, 255, 0.1) 100%);
    pointer-events: none;
}

.rebirth-img {
    width: 140px;
    height: 140px;
    object-fit: cover;
    border-radius: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    border: 3px solid white;
    cursor: pointer;
}

.rebirth-card:hover .rebirth-img {
    transform: scale(1.08) rotate(2deg);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
}

/* Image Lightbox */
.image-lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    cursor: pointer;
    animation: fadeIn 0.3s ease;
}

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

.lightbox-content {
    position: relative;
    max-width: 85%;
    max-height: 80%;
    animation: zoomIn 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.lightbox-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 1rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    flex-shrink: 1;
}

.lightbox-close {
    position: absolute;
    top: -50px;
    right: -10px;
    background: white;
    color: var(--gray-900);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.lightbox-close:hover {
    background: var(--gray-100);
    transform: scale(1.1);
}

.lightbox-info {
    text-align: center;
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    background: rgba(0, 0, 0, 0.7);
    padding: 0.75rem 1.5rem;
    border-radius: 2rem;
    max-width: 100%;
    word-wrap: break-word;
}

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

@keyframes zoomIn {
    from { 
        opacity: 0;
        transform: scale(0.8);
    }
    to { 
        opacity: 1;
        transform: scale(1);
    }
}

/* Rebirth Lightbox Mobile Responsive */
@media (max-width: 768px) {
    .lightbox-content {
        max-width: 95%;
        max-height: 85%;
        gap: 0.5rem;
    }
    
    .lightbox-info {
        font-size: 0.9rem;
        padding: 0.5rem 1rem;
    }
    
    .lightbox-close {
        top: -40px;
        right: -5px;
        width: 35px;
        height: 35px;
        font-size: 1.2rem;
    }
}

.rebirth-content {
    padding: 1.5rem;
    flex: 1;
}

.rebirth-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding: 1rem;
    background: linear-gradient(135deg, var(--primary-500) 0%, var(--primary-600) 100%);
    border-radius: 0.75rem;
    color: white;
}

.rebirth-header h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0;
}

.rebirth-cost {
    font-size: 1.1rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 2rem;
}

.rebirth-requirements,
.rebirth-rewards,
.rebirth-strategy {
    margin-bottom: 1rem;
}

.rebirth-requirements h4,
.rebirth-rewards h4,
.rebirth-strategy h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 0.8rem;
}

.rebirth-requirements p,
.rebirth-strategy p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--gray-700);
}

.rebirth-rewards ul {
    list-style: none;
}

.rebirth-rewards li {
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--gray-700);
}

.rebirth-rewards li::before {
    content: "🎁";
    position: absolute;
    left: 0;
    top: 0;
}

/* Rebirth Tips Section */
.rebirth-tips {
    padding: 5rem 0;
    background: var(--bg-secondary);
}

.rebirth-tips .container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.rebirth-tips h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 1.5rem;
    text-align: center;
}

.rebirth-tips > .container > p {
    font-size: 1.2rem;
    color: var(--gray-600);
    text-align: center;
    margin-bottom: 3rem;
    margin-left: auto;
    margin-right: auto;
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.tip-card {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    text-align: center;
}

.tip-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.tip-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.tip-card h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 1rem;
}

.tip-card p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--gray-600);
}

/* Rebirth Comparison Section */
.rebirth-comparison {
    padding: 5rem 0;
    background: var(--bg-primary);
}

.rebirth-comparison .container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.rebirth-comparison h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 1.5rem;
    text-align: center;
}

.rebirth-comparison > .container > p {
    font-size: 1.2rem;
    color: var(--gray-600);
    text-align: center;
    margin-bottom: 3rem;
    margin-left: auto;
    margin-right: auto;
}

.comparison-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 3rem;
}

.comparison-card {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.comparison-card.no-rebirth {
    border-left: 4px solid var(--error);
}

.comparison-card.with-rebirth {
    border-left: 4px solid var(--success);
    background: linear-gradient(135deg, var(--primary-50) 0%, white 100%);
}

.comparison-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 1.5rem;
    text-align: center;
}

.comparison-card ul {
    list-style: none;
}

.comparison-card li {
    margin-bottom: 0.8rem;
    padding-left: 2rem;
    position: relative;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--gray-700);
}

.comparison-card.no-rebirth li::before {
    content: "❌";
    position: absolute;
    left: 0;
    top: 0;
}

.comparison-card.with-rebirth li::before {
    content: "✅";
    position: absolute;
    left: 0;
    top: 0;
}

/* Rebirth Cards Section */
.rebirth-cards {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--accent-50) 0%, var(--primary-50) 100%);
}

.rebirth-cards .container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.rebirth-cards h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 1.5rem;
    text-align: center;
}

.rebirth-cards > .container > p {
    font-size: 1.2rem;
    color: var(--gray-600);
    text-align: center;
    margin-bottom: 3rem;
    margin-left: auto;
    margin-right: auto;
}

.rebirth-combos {
    display: grid;
    gap: 2rem;
    margin-top: 3rem;
}

.combo-level {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.combo-level:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.combo-level h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 1.5rem;
    text-align: center;
}

.combo-level p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--gray-600);
    text-align: center;
    margin-top: 1rem;
}

/* Quick Navigation Cards */
.quick-nav-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15) !important;
}

.quick-nav-card:hover .nav-icon {
    transform: scale(1.1);
}

.quick-nav-card .nav-icon {
    transition: transform 0.3s ease;
}

@media (max-width: 768px) {
    .quick-nav-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }
    
    .quick-nav-card {
        padding: 1rem !important;
    }
    
    .quick-nav-card .nav-icon {
        width: 40px !important;
        height: 40px !important;
        font-size: 1.5rem !important;
    }
}

/* Responsive Design for New Pages */
@media (max-width: 768px) {
    .merge-info {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .comparison-grid {
        grid-template-columns: 1fr;
    }
    
    .equip-step {
        flex-direction: column;
        text-align: center;
    }
    
    .combo-cards {
        flex-direction: column;
        align-items: center;
    }
    
    .rebirth-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .rebirth-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .rebirth-card {
        text-align: center;
    }
    
    .rebirth-image {
        height: 140px;
    }
    
    .rebirth-img {
        width: 100px;
        height: 100px;
    }
    
    .rebirth-content {
        padding: 1.5rem;
        padding-bottom: 1rem;
        order: 1;
    }
    
    .cards-table-container {
        overflow-x: auto;
    }
    
    .cards-table {
        min-width: 600px;
    }
    
    .cards-table th,
    .cards-table td {
        padding: 0.8rem 0.5rem;
        font-size: 0.9rem;
    }
    
    .get-cards-grid {
        grid-template-columns: 1fr;
    }
    
    .best-cards-grid {
        grid-template-columns: 1fr;
    }
    
    .combo-grid {
        grid-template-columns: 1fr;
    }
    
    .tips-grid {
        grid-template-columns: 1fr;
    }
    
    .rebirth-intro .container,
    .rebirth-tips .container,
    .rebirth-comparison .container,
    .rebirth-cards .container {
        padding: 0 1rem;
    }
}

/* Latest Codes Banner Styles */
.latest-code-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.2) !important;
}

.latest-codes-banner .btn:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3) !important;
}

/* Countdown Animation */
.countdown-box {
    animation: pulseCountdown 2s ease-in-out infinite;
}

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

/* Training Methods Database Styles */
.method-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.method-card {
    background: white;
    padding: 1.5rem;
    border-radius: 0.75rem;
    border-left: 4px solid #6366f1;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.method-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.method-card h4 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.method-card p {
    font-size: 0.95rem;
    color: #4b5563;
    line-height: 1.6;
}

.method-card strong {
    color: var(--text-primary);
}

/* Comparison Table Styles */
.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.comparison-table thead {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.comparison-table th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    font-size: 1rem;
}

.comparison-table td {
    padding: 1rem;
    border-bottom: 1px solid #e5e7eb;
    color: #4b5563;
}

.comparison-table tbody tr:hover {
    background: #f3f4f6;
}

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

/* Responsive adjustments for method cards */
@media (max-width: 768px) {
    .method-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .method-card {
        padding: 1.25rem;
    }
    
    .comparison-table {
        font-size: 0.9rem;
    }
    
    .comparison-table th,
    .comparison-table td {
        padding: 0.75rem 0.5rem;
    }
}
