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

:root {
    --green-primary: #00b890;
    --green-dark: #009974;
    --green-light: #e8f8f5;
    --purple-accent: #8b5cf6;
    --bg-main: #f5f5f5;
    --bg-card: #ffffff;
    --text-primary: #2d2d2d;
    --text-secondary: #666666;
    --border-color: #e0e0e0;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* Header */
.header {
    background-color: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
}

.logo {
    display: flex;
    align-items: center;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    cursor: pointer;
}

.logo-img {
    height: 40px;
    width: auto;
    display: block;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--green-primary);
}

.main-nav {
    display: flex;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s;
    padding: 0.5rem 0;
}

.nav-link:hover {
    color: var(--green-primary);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-primary);
    cursor: pointer;
}

/* Main Content */
.main-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 24px 20px;
}

/* Game Wrapper */
.game-wrapper {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 24px;
    margin-bottom: 40px;
}

/* Game Area */
.game-area {
    background-color: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.game-frame {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    background-color: #000;
}

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

.game-actions {
    display: flex;
    gap: 12px;
    padding: 16px 20px;
    border-top: 1px solid var(--border-color);
}

.action-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    background-color: var(--bg-main);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s;
}

.action-btn:hover {
    background-color: #e8e8e8;
    border-color: var(--green-primary);
}

.action-btn.fullscreen-btn:hover {
    background-color: var(--green-primary);
    color: white;
    border-color: var(--green-primary);
}

.action-btn.like-btn.liked {
    background-color: var(--purple-accent);
    color: white;
    border-color: var(--purple-accent);
}

.action-btn i {
    font-size: 1rem;
}

/* Sidebar */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.info-card {
    background-color: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-md);
}

.game-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.game-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.tag {
    display: inline-block;
    padding: 6px 14px;
    background-color: var(--green-light);
    color: var(--green-dark);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.game-description {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 0.95rem;
    margin: 0;
}

.controls-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.controls-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.controls-list li {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 0.95rem;
    padding-left: 20px;
    position: relative;
    margin-bottom: 10px;
}

.controls-list li:last-child {
    margin-bottom: 0;
}

.controls-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--green-primary);
    font-weight: bold;
    font-size: 1.2rem;
}

/* Content Sections */
.content-section {
    background-color: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 32px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-md);
}

.section-container {
    max-width: 900px;
}

.section-heading {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.content-block {
    color: var(--text-secondary);
    line-height: 1.8;
}

.content-block p {
    margin-bottom: 16px;
}

/* FAQ */
.faq-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    background-color: var(--bg-main);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all 0.2s;
}

.faq-item:hover {
    border-color: var(--green-primary);
}

.faq-item[open] {
    background-color: var(--green-light);
    border-color: var(--green-primary);
}

.faq-question {
    padding: 18px 20px;
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-primary);
    cursor: pointer;
    list-style: none;
    user-select: none;
}

.faq-question::-webkit-details-marker {
    display: none;
}

.faq-question::after {
    content: '+';
    float: right;
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--green-primary);
    transition: transform 0.2s;
}

.faq-item[open] .faq-question::after {
    content: '−';
}

.faq-answer {
    padding: 0 20px 18px;
    color: var(--text-secondary);
    line-height: 1.7;
}

.faq-answer p {
    margin: 0;
}

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

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

.footer-container p {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin: 0;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background-color: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 32px;
    max-width: 400px;
    width: 90%;
    position: relative;
    box-shadow: var(--shadow-lg);
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: color 0.2s;
}

.modal-close:hover {
    color: var(--text-primary);
}

.modal-content h3 {
    font-size: 1.5rem;
    margin-bottom: 24px;
    color: var(--text-primary);
}

.share-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.share-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 20px;
    background-color: var(--bg-main);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.2s;
}

.share-option:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.share-option i {
    font-size: 1.5rem;
}

.share-option.facebook {
    color: #1877f2;
}

.share-option.twitter {
    color: #1da1f2;
}

.share-option.whatsapp {
    color: #25d366;
}

.share-option.telegram {
    color: #0088cc;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
    .game-wrapper {
        grid-template-columns: 1fr;
    }

    .sidebar {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .main-nav {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .header-container {
        padding: 0 16px;
    }

    .main-content {
        padding: 16px;
    }

    .game-frame {
        padding-bottom: 75%;
    }

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

    .action-btn {
        width: 100%;
    }

    .content-section {
        padding: 24px 20px;
    }

    .section-heading {
        font-size: 1.5rem;
    }

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

    .share-options {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .logo-img {
        height: 32px;
    }

    .logo-text {
        font-size: 1.25rem;
    }

    .game-actions {
        padding: 12px;
    }

    .action-btn {
        padding: 10px 16px;
        font-size: 0.9rem;
    }

    .info-card {
        padding: 20px;
    }

    .content-section {
        padding: 20px 16px;
    }

    .modal-content {
        padding: 24px;
    }
}

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

/* Selection Color */
::selection {
    background-color: var(--green-primary);
    color: white;
}

/* Loading Animation */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

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