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

body {
    font-family: 'Tahoma', 'Arial', sans-serif;
    background-color: #0f0f23;
    color: #e4e4e7;
    line-height: 1.6;
    direction: rtl;
    text-align: right;
}

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

/* Header Styles */
.header {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-bottom: 3px solid #7c3aed;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

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

.logo h1 {
    font-size: 1.8rem;
    color: #fff;
    font-weight: bold;
}

.logo a {
    text-decoration: none;
    color: inherit;
}

.logo .ir {
    color: #7c3aed;
}

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

.nav-link {
    color: #e4e4e7;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    font-size: 1rem;
}

.nav-link:hover {
    color: #7c3aed;
}

/* Main Content */
.main-content {
    padding: 2rem 0;
    min-height: calc(100vh - 200px);
}

/* Game Header */
.game-header {
    margin-bottom: 1.5rem;
}

.game-title {
    font-size: 2rem;
    color: #fff;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.game-meta {
    display: flex;
    gap: 1.5rem;
    font-size: 0.95rem;
    color: #a1a1aa;
}

.game-category,
.game-rating {
    background: #1f1f35;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    border: 1px solid #333;
}

/* Game Container */
.game-container {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 2rem;
    margin-bottom: 3rem;
}

/* Game Player */
.game-player {
    background: #1a1a2e;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
    border: 2px solid #2a2a3e;
}

#game-iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    display: block;
    background: #000;
}

.game-controls {
    padding: 1rem;
    background: #16213e;
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.control-btn {
    background: #7c3aed;
    color: #fff;
    border: none;
    padding: 0.7rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: bold;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.control-btn:hover {
    background: #6d28d9;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.4);
}

/* Game Info */
.game-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.info-section {
    background: #1a1a2e;
    padding: 1.5rem;
    border-radius: 12px;
    border: 2px solid #2a2a3e;
}

.section-title {
    font-size: 1.3rem;
    color: #fff;
    margin-bottom: 1rem;
    border-right: 4px solid #7c3aed;
    padding-right: 0.8rem;
}

.game-description {
    color: #d4d4d8;
    line-height: 1.8;
    font-size: 0.95rem;
}

/* Controls List */
.controls-list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.control-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem;
    background: #16213e;
    border-radius: 8px;
    border: 1px solid #2a2a3e;
}

.control-key {
    background: #7c3aed;
    color: #fff;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-weight: bold;
    font-size: 0.85rem;
}

.control-action {
    color: #e4e4e7;
    font-size: 0.9rem;
}

/* Features List */
.features-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.features-list li {
    color: #d4d4d8;
    padding: 0.5rem;
    font-size: 0.95rem;
}

/* Tech Info */
.tech-info {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.tech-item {
    display: flex;
    justify-content: space-between;
    padding: 0.8rem;
    background: #16213e;
    border-radius: 8px;
    border: 1px solid #2a2a3e;
}

.tech-label {
    color: #a1a1aa;
    font-weight: bold;
}

.tech-value {
    color: #e4e4e7;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #16213e 0%, #1a1a2e 100%);
    border-top: 3px solid #7c3aed;
    padding: 3rem 0 1.5rem;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-title {
    font-size: 1.3rem;
    color: #7c3aed;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.footer-description,
.footer-text {
    color: #d4d4d8;
    line-height: 1.8;
    font-size: 0.95rem;
}

.footer-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.footer-list li {
    color: #d4d4d8;
    font-size: 0.95rem;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
}

.social-link {
    background: #7c3aed;
    color: #fff;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.social-link:hover {
    background: #6d28d9;
    transform: translateY(-2px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #2a2a3e;
    color: #a1a1aa;
}

.footer-note {
    font-size: 0.85rem;
    margin-top: 0.5rem;
    color: #71717a;
}

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

    .footer-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }

    .main-nav {
        gap: 1rem;
    }

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

    .game-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
}