* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #2C3E3C 0%, #3A4A3E 25%, #4A423A 50%, #3E4A45 75%, #2C3E3C 100%);
    min-height: 100vh;
    overflow-x: hidden;
    color: #F5E6D3;
    position: relative;
    transition: background 0.5s ease, color 0.3s ease;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 50%, rgba(91, 154, 139, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(220, 140, 115, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(138, 154, 91, 0.12) 0%, transparent 50%);
    animation: bgShift 15s ease infinite;
    pointer-events: none;
    z-index: 0;
    transition: background 0.5s ease, opacity 0.5s ease;
}

@keyframes bgShift {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 0.8; }
}

/* Navbar */
.navbar {
    position: relative;
    top: 0;
    left: 0;
    right: 0;
    height: 70px;
    background: rgba(44, 62, 60, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(91, 154, 139, 0.3);
    display: flex;
    align-items: center;
    padding: 0 40px;
    z-index: 100;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.logo {
    display: flex;
    align-items: baseline;
    gap: 5px;
    font-size: 1.8rem;
    font-weight: bold;
    margin-right: 40px;
}

.logo-text {
    color: #DC8C73;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: 2px;
}

.logo-text-alt {
    color: #DC8C73;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: 2px;
}

.search-container {
    flex: 1;
    max-width: 600px;
    position: relative;
}

.search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(245, 230, 211, 0.6);
    pointer-events: none;
}

.search-input {
    width: 100%;
    padding: 12px 20px 12px 45px;
    background: rgba(58, 74, 62, 0.6);
    border: 1px solid rgba(91, 154, 139, 0.4);
    border-radius: 50px;
    color: #F5E6D3;
    font-size: 0.95rem;
    outline: none;
    transition: all 0.3s ease;
}

.search-input::placeholder {
    color: rgba(245, 230, 211, 0.5);
}

.search-input:focus {
    background: rgba(58, 74, 62, 0.8);
    border-color: #DC8C73;
    box-shadow: 0 2px 8px rgba(220, 140, 115, 0.2);
}

.theme-toggle-container {
    margin-left: 20px;
}

.theme-toggle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #5B9A8B 0%, #4A8B85 100%);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(91, 154, 139, 0.3);
}

.theme-toggle:hover {
    transform: scale(1.1) rotate(15deg);
    box-shadow: 0 4px 15px rgba(91, 154, 139, 0.4);
}

.theme-toggle .moon-icon {
    display: block;
    color: white;
}

.theme-toggle .sun-icon {
    display: none;
}

body.light-mode .theme-toggle .moon-icon {
    display: none;
}

body.light-mode .theme-toggle .sun-icon {
    display: block;
    color: white;
}

body.light-mode .theme-toggle {
    background: linear-gradient(135deg, #C9A961 0%, #B89968 100%);
    box-shadow: 0 3px 10px rgba(201, 169, 97, 0.3);
}

body.light-mode .theme-toggle:hover {
    box-shadow: 0 4px 15px rgba(201, 169, 97, 0.4);
}

/* Sidebar */
.sidebar {
    position: fixed;
    left: 0;
    top: 70px;
    bottom: 0;
    width: 80px;
    background: rgba(44, 62, 60, 0.9);
    backdrop-filter: blur(20px);
    border-right: 1px solid rgba(91, 154, 139, 0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 0;
    gap: 10px;
    z-index: 999;
    overflow-y: auto;
}

.sidebar-btn {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: rgba(58, 74, 62, 0.6);
    border: 1px solid rgba(91, 154, 139, 0.4);
    color: rgba(245, 230, 211, 0.7);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.sidebar-btn:hover {
    background: rgba(91, 154, 139, 0.3);
    color: #F5E6D3;
    transform: translateX(5px);
    box-shadow: 0 3px 10px rgba(91, 154, 139, 0.3);
}

.sidebar-btn.active {
    background: linear-gradient(135deg, #DC8C73 0%, #D17A5C 100%);
    color: white;
    border-color: rgba(220, 140, 115, 0.5);
    box-shadow: 0 3px 10px rgba(220, 140, 115, 0.4);
}

/* Main Content */
.main-content {
    margin-left: 0;
    margin-top: 0;
    padding: 40px;
    min-height: 100vh;
    position: relative;
    z-index: 1;
}

/* Hero Section */
.hero-section {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 20px;
}

/* Game Card */
.game-card {
    background: linear-gradient(135deg,
        rgba(58, 74, 62, 0.7) 0%,
        rgba(74, 66, 58, 0.8) 100%);
    backdrop-filter: blur(30px);
    border-radius: 32px;
    padding: 20px;
    box-shadow:
        0 6px 24px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(91, 154, 139, 0.2),
        inset 0 -1px 0 rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(91, 154, 139, 0.4);
    margin-bottom: 30px;
    transition: all 0.3s ease;
    overflow: hidden;
}

.game-card:hover {
    transform: translateY(-5px);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.25),
        inset 0 1px 0 rgba(220, 140, 115, 0.15);
}

.game-card-inner {
    display: flex;
    flex-direction: column;
    gap: 30px;
    align-items: center;
}

.game-info-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
    text-align: center;
    width: 100%;
    max-width: 800px;
}

.play-game-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 35px;
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    font-size: 1rem;
    font-weight: bold;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    width: fit-content;
}

.play-game-button:hover {
    background: linear-gradient(135deg, #374151 0%, #1f2937 100%);
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.play-game-button svg {
    filter: none;
}

.game-subtitle {
    font-size: 2.5rem;
    font-weight: bold;
    color: #F5E6D3;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.game-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #D4C5B9;
    margin: 0;
}

.game-preview-section {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.game-iframe-container {
    width: 90%;
    max-width: 90%;
    aspect-ratio: 16 / 9;
    border-radius: 20px;
    overflow: hidden;
    box-shadow:
        0 8px 24px rgba(0, 0, 0, 0.4),
        inset 0 0 20px rgba(0, 0, 0, 0.2);
    border: 3px solid rgba(91, 154, 139, 0.5);
    position: relative;
    background: #000;
    margin: 0 auto;
}

.hero-game-iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

.game-iframe-container::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #5B9A8B, #DC8C73, #8A9A5B, #DC8C73);
    background-size: 400% 400%;
    border-radius: 20px;
    z-index: -1;
    animation: gradientBorder 6s ease infinite;
    opacity: 0.6;
}

@keyframes gradientBorder {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Fullscreen styles for game iframe container */
.game-iframe-container:fullscreen {
    max-width: 100%;
    width: 100vw;
    height: 100vh;
    border-radius: 0;
}

.game-iframe-container:fullscreen .hero-game-iframe {
    width: 100%;
    height: 100%;
}

/* Game Title Container */
.game-title-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.game-title-main {
    font-size: 2rem;
    font-weight: bold;
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.game-actions {
    display: flex;
    gap: 10px;
}

.action-btn-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.action-btn-label {
    font-size: 12px;
    font-weight: 600;
    color: white;
    background: rgba(0, 0, 0, 0.8);
    padding: 6px 12px;
    border-radius: 20px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
}

.action-btn-wrapper:hover .action-btn-label {
    opacity: 1;
    visibility: visible;
}

.action-icon-btn {
    width: 45px;
    height: 45px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.action-icon-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Related Games Section */
.related-games {
    max-width: 1200px;
    margin: 40px auto 0;
}

.section-header {
    margin-bottom: 20px;
}

.badge {
    display: inline-block;
    padding: 8px 16px;
    background: linear-gradient(135deg, #5B9A8B 0%, #4A8B85 100%);
    color: white;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: bold;
    letter-spacing: 1px;
    box-shadow: 0 3px 10px rgba(91, 154, 139, 0.3);
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 15px;
    max-width: 100%;
}

.game-card-small {
    position: relative;
    background: transparent;
    border-radius: 10px;
    padding: 0;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    text-decoration: none;
}

.game-card-small:hover {
    transform: scale(1.05);
}

.hot-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    padding: 5px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: bold;
    z-index: 2;
    box-shadow: 0 2px 10px rgba(239, 68, 68, 0.5);
}

.hot-badge::before {
    content: '🔥';
    margin-right: 5px;
}

.game-thumbnail {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 10px;
    overflow: hidden;
    background: #1a1a2e;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.thumbnail-logo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.game-card-title {
    text-align: center;
    margin-top: 8px;
    color: #DC8C73;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* Game Container (Fullscreen) */
.game-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 2000;
    display: flex;
    flex-direction: column;
}

.game-container.hidden {
    display: none;
}

.game-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.back-button {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(91, 154, 139, 0.9);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    z-index: 2001;
    transition: all 0.3s ease;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

.back-button:hover {
    background: rgba(91, 154, 139, 1);
    transform: translateX(-5px);
    box-shadow: 0 3px 10px rgba(91, 154, 139, 0.4);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .game-card-inner {
        gap: 25px;
    }

    .game-iframe-container {
        max-width: 100%;
    }

    .main-content {
        padding: 30px 20px;
    }

    .game-subtitle {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 0 20px;
    }

    .logo {
        font-size: 1.4rem;
        margin-right: 20px;
    }

    .sidebar {
        width: 60px;
    }

    .sidebar-btn {
        width: 45px;
        height: 45px;
    }

    .main-content {
        margin-left: 60px;
        padding: 20px 15px;
    }

    .game-card {
        padding: 25px;
        border-radius: 24px;
    }

    .game-subtitle {
        font-size: 1.8rem;
    }

    .game-description {
        font-size: 1rem;
    }

    .game-title-main {
        font-size: 1.5rem;
    }

    .game-iframe-container {
        max-width: 100%;
    }

    .play-game-button {
        padding: 12px 28px;
        font-size: 0.9rem;
    }

    .game-card-inner {
        gap: 20px;
    }

    .games-grid {
        grid-template-columns: 1fr;
    }

    .search-container {
        max-width: 400px;
    }
}

@media (max-width: 480px) {
    .navbar {
        height: 60px;
        padding: 0 10px;
    }

    .logo {
        font-size: 1.1rem;
        margin-right: 10px;
    }

    .search-container {
        max-width: 200px;
    }

    .search-input {
        padding: 10px 15px 10px 40px;
        font-size: 0.85rem;
    }

    .theme-toggle {
        width: 40px;
        height: 40px;
    }

    .sidebar {
        width: 50px;
    }

    .sidebar-btn {
        width: 40px;
        height: 40px;
    }

    .main-content {
        margin-left: 50px;
        margin-top: 60px;
        padding: 15px 10px;
    }

    .game-card {
        padding: 20px;
    }

    .game-title-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-section {
    animation: fadeIn 0.6s ease;
}

.related-games {
    animation: fadeIn 0.8s ease 0.2s backwards;
}

/* Article Section */
.article-section {
    max-width: 1200px;
    margin: 60px auto 40px;
    background: linear-gradient(135deg,
        rgba(58, 74, 62, 0.7) 0%,
        rgba(74, 66, 58, 0.8) 100%);
    backdrop-filter: blur(30px);
    border-radius: 24px;
    padding: 50px;
    border: 1px solid rgba(91, 154, 139, 0.4);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.3);
    position: relative;
}

.article-visible {
    /* Always visible part of the article */
}

.article-content {
    max-height: 400px;
    overflow: hidden;
    transition: max-height 0.5s ease;
    position: relative;
}

.article-content.expanded {
    max-height: none;
}

.article-content.collapsed::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to bottom, transparent, rgba(58, 74, 62, 0.95));
    pointer-events: none;
}

.article-toggle-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    margin-top: 20px;
    padding: 15px;
    background: transparent;
    border: 2px solid #DC8C73;
    border-radius: 12px;
    color: #DC8C73;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.article-toggle-btn:hover {
    background: rgba(220, 140, 115, 0.1);
    transform: translateY(-2px);
}

.article-toggle-btn svg {
    transition: transform 0.3s ease;
}

.article-toggle-btn.expanded svg {
    transform: rotate(180deg);
}

/* Light mode article toggle button */
body.light-mode .article-toggle-btn {
    border-color: #DC8C73;
    color: #DC8C73;
}

body.light-mode .article-toggle-btn:hover {
    background: rgba(220, 140, 115, 0.15);
}

body.light-mode .article-content.collapsed::after {
    background: linear-gradient(to bottom, transparent, rgba(234, 216, 192, 0.95));
}

.article-section h1 {
    font-size: 2.8rem;
    font-weight: 800;
    color: #DC8C73;
    margin-bottom: 25px;
    line-height: 1.2;
}

.article-intro {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #F5E6D3;
    margin-bottom: 40px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.2);
    border-left: 4px solid #DC8C73;
    border-radius: 8px;
}

.article-section h2 {
    font-size: 1.5rem;
    font-weight: bold;
    color: #F5E6D3;
    margin-top: 40px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 15px;
}

.article-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #DC8C73 0%, #D17A5C 100%);
    border-radius: 2px;
}

.article-section h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #DC8C73;
    margin-top: 40px;
    margin-bottom: 20px;
}

.article-section p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #D4C5B9;
    margin-bottom: 20px;
}

.article-section strong {
    color: #F5E6D3;
    font-weight: 600;
}

.article-section ul {
    list-style: none;
    padding-left: 0;
    margin: 20px 0;
}

.article-section ul li {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #D4C5B9;
    margin-bottom: 12px;
    padding-left: 30px;
    position: relative;
}

.article-section ul li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: #DC8C73;
    font-size: 1.3rem;
    font-weight: bold;
}

.article-section hr {
    border: none;
    height: 2px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(91, 154, 139, 0.5) 50%,
        transparent 100%);
    margin: 40px 0;
}

.article-section code,
.article-section .code-inline {
    background: rgba(91, 154, 139, 0.2);
    color: #DC8C73;
    padding: 2px 8px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.95em;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

::-webkit-scrollbar-thumb {
    background: rgba(91, 154, 139, 0.5);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(91, 154, 139, 0.7);
}

/* Light Mode Styles */
body.light-mode {
    background: linear-gradient(135deg, #FAF3E0 0%, #EAD8C0 25%, #F5E6D3 50%, #EDD5BA 75%, #FAF3E0 100%);
}

body.light-mode::before {
    background:
        radial-gradient(circle at 20% 50%, rgba(91, 154, 139, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(220, 140, 115, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(138, 154, 91, 0.08) 0%, transparent 50%);
}

/* Light Mode Navbar */
body.light-mode .navbar {
    background: rgba(250, 243, 224, 0.95);
    border-bottom: 1px solid rgba(91, 154, 139, 0.3);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

body.light-mode .logo-text,
body.light-mode .logo-text-alt {
    color: #5B9A8B;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.15);
}

body.light-mode .search-input {
    background: rgba(234, 216, 192, 0.6);
    border: 1px solid rgba(91, 154, 139, 0.4);
    color: #2C3E3C;
}

body.light-mode .search-input::placeholder {
    color: rgba(44, 62, 60, 0.5);
}

body.light-mode .search-input:focus {
    background: rgba(234, 216, 192, 0.8);
    border-color: #5B9A8B;
}

body.light-mode .search-icon {
    color: rgba(44, 62, 60, 0.5);
}

/* Light Mode Sidebar */
body.light-mode .sidebar {
    background: rgba(250, 243, 224, 0.95);
    border-right: 1px solid rgba(91, 154, 139, 0.3);
}

body.light-mode .sidebar-btn {
    background: rgba(234, 216, 192, 0.6);
    border: 1px solid rgba(91, 154, 139, 0.4);
    color: rgba(44, 62, 60, 0.7);
}

body.light-mode .sidebar-btn:hover {
    background: rgba(91, 154, 139, 0.15);
    color: #2C3E3C;
}

body.light-mode .sidebar-btn.active {
    background: linear-gradient(135deg, #5B9A8B 0%, #4A8B85 100%);
    color: white;
}

/* Light Mode Game Card */
body.light-mode .game-card {
    background: linear-gradient(135deg,
        rgba(250, 243, 224, 0.9) 0%,
        rgba(234, 216, 192, 0.9) 100%);
    border: 1px solid rgba(91, 154, 139, 0.4);
    box-shadow:
        0 6px 24px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

body.light-mode .game-card:hover {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

body.light-mode .game-subtitle {
    color: #2C3E3C;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

body.light-mode .game-description {
    color: #4A5654;
}

body.light-mode .game-title-main {
    color: #2C3E3C;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

body.light-mode .play-game-button {
    background: linear-gradient(135deg, #5B9A8B 0%, #4A8B85 100%);
    border-color: rgba(91, 154, 139, 0.4);
}

body.light-mode .play-game-button:hover {
    background: linear-gradient(135deg, #6BAA9B 0%, #5B9A8B 100%);
}

body.light-mode .action-icon-btn {
    background: rgba(234, 216, 192, 0.6);
    border: 1px solid rgba(91, 154, 139, 0.4);
    color: #2C3E3C;
}

body.light-mode .action-icon-btn:hover {
    background: rgba(91, 154, 139, 0.15);
}

/* Light Mode Related Games */
body.light-mode .badge {
    background: linear-gradient(135deg, #5B9A8B 0%, #4A8B85 100%);
}

body.light-mode .game-card-small {
    background: linear-gradient(135deg,
        rgba(250, 243, 224, 0.9) 0%,
        rgba(234, 216, 192, 0.9) 100%);
    border: 1px solid rgba(91, 154, 139, 0.4);
}

body.light-mode .game-card-small:hover {
    box-shadow: 0 8px 20px rgba(91, 154, 139, 0.25);
    border-color: #DC8C73;
}

/* Light Mode Article */
body.light-mode .article-section {
    background: linear-gradient(135deg,
        rgba(250, 243, 224, 0.9) 0%,
        rgba(234, 216, 192, 0.9) 100%);
    border: 1px solid rgba(91, 154, 139, 0.4);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.1);
}

body.light-mode .article-section h1 {
    color: #DC8C73;
}

body.light-mode .article-intro {
    background: rgba(220, 140, 115, 0.1);
    border-left-color: #DC8C73;
    color: #2C3E3C;
}

body.light-mode .article-section h2 {
    color: #2C3E3C;
}

body.light-mode .article-section h3 {
    color: #5B9A8B;
}

body.light-mode .article-section p {
    color: #4A5654;
}

body.light-mode .article-section strong {
    color: #2C3E3C;
}

body.light-mode .article-section ul li {
    color: #4A5654;
}

body.light-mode .article-section ul li::before {
    color: #DC8C73;
}

body.light-mode .article-section code,
body.light-mode .article-section .code-inline {
    background: rgba(91, 154, 139, 0.15);
    color: #5B9A8B;
}

/* Light Mode Scrollbar */
body.light-mode ::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
}

body.light-mode ::-webkit-scrollbar-thumb {
    background: rgba(91, 154, 139, 0.4);
}

body.light-mode ::-webkit-scrollbar-thumb:hover {
    background: rgba(91, 154, 139, 0.6);
}

/* Footer */
.footer {
    background: rgba(44, 62, 60, 0.9);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(91, 154, 139, 0.3);
    padding: 30px 40px;
    margin-top: 60px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}

.footer-link {
    color: #B8A990;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.footer-link:hover {
    color: #DC8C73;
}

.footer-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #DC8C73;
    transition: width 0.3s ease;
}

.footer-link:hover::after {
    width: 100%;
}

/* Light mode footer */
body.light-mode .footer {
    background: rgba(250, 243, 224, 0.9);
    border-top: 1px solid rgba(91, 154, 139, 0.3);
}

body.light-mode .footer-link {
    color: #4A5654;
}

body.light-mode .footer-link:hover {
    color: #DC8C73;
}

/* Responsive footer */
@media (max-width: 768px) {
    .footer-content {
        gap: 20px;
        padding: 10px;
    }

    .footer-link {
        font-size: 14px;
    }
}

/* Share Modal */
.share-modal {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100vh;
    background: white;
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.3);
    z-index: 999999;
    transition: right 0.4s ease;
    display: flex;
    flex-direction: column;
}

.share-modal.active {
    right: 0;
}

.share-modal-content {
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 25px;
    color: #333;
}

.share-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 35px;
    height: 35px;
    border: none;
    background: transparent;
    font-size: 24px;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.share-modal-close:hover {
    background: rgba(0, 0, 0, 0.1);
    color: #333;
}

.share-modal-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 20px;
}

.share-modal-header svg {
    flex-shrink: 0;
}

.share-modal-header h3 {
    font-size: 14px;
    font-weight: 600;
    color: #666;
    letter-spacing: 0.5px;
}

.share-game-title {
    font-size: 28px;
    font-weight: 800;
    color: #6B4CE6;
    margin: 0;
    line-height: 1.2;
}

.share-url-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.share-url-input {
    width: 100%;
    padding: 15px;
    border: 2px solid #E5E5E5;
    border-radius: 12px;
    font-size: 14px;
    color: #333;
    background: #F8F8F8;
    outline: none;
    transition: all 0.3s ease;
}

.share-url-input:focus {
    border-color: #6B4CE6;
    background: white;
}

.copy-link-btn {
    padding: 15px 25px;
    background: #6B4CE6;
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    align-self: flex-end;
}

.copy-link-btn:hover {
    background: #5A3DD1;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(107, 76, 230, 0.3);
}

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

/* Dark mode share modal */
body:not(.light-mode) .share-modal {
    background: linear-gradient(135deg, #2C3E3C 0%, #3A4A3E 100%);
}

body:not(.light-mode) .share-modal-content {
    color: #F5E6D3;
}

body:not(.light-mode) .share-modal-close {
    color: #F5E6D3;
}

body:not(.light-mode) .share-modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

body:not(.light-mode) .share-modal-header h3 {
    color: #B8A990;
}

body:not(.light-mode) .share-modal-header svg {
    stroke: #B8A990;
}

body:not(.light-mode) .share-game-title {
    color: #DC8C73;
}

body:not(.light-mode) .share-url-input {
    background: rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.2);
    color: #F5E6D3;
}

body:not(.light-mode) .share-url-input:focus {
    border-color: #5B9A8B;
    background: rgba(0, 0, 0, 0.4);
}

body:not(.light-mode) .copy-link-btn {
    background: #5B9A8B;
}

body:not(.light-mode) .copy-link-btn:hover {
    background: #4A8977;
    box-shadow: 0 5px 15px rgba(91, 154, 139, 0.3);
}
