/* === بنەڕەتی === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #1a1a2e;
    --secondary: #16213e;
    --accent: #0f3460;
    --gold: #e94560;
    --text: #ffffff;
    --card-bg: #16213e;
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    --border: 1px solid rgba(233, 69, 96, 0.2);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--text);
    min-height: 100vh;
    direction: rtl;
}

#app {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* === سەردێڵ === */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-bottom: 2px solid var(--gold);
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 15px;
}

.logo h1 {
    font-size: 2rem;
    color: var(--gold);
    text-shadow: 0 0 20px rgba(233, 69, 96, 0.3);
}

.logo p {
    color: #888;
    font-size: 0.9rem;
}

.lang-selector {
    display: flex;
    gap: 10px;
}

.lang-btn {
    padding: 10px 20px;
    border: var(--border);
    background: transparent;
    color: var(--text);
    border-radius: 25px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.lang-btn:hover, .lang-btn.active {
    background: var(--gold);
    border-color: var(--gold);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(233, 69, 96, 0.3);
}

/* === کارتەکان === */
#main-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.card {
    background: var(--card-bg);
    border: var(--border);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow);
    border-color: var(--gold);
}

.card-icon {
    font-size: 4rem;
    margin-bottom: 15px;
}

.card h2 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--gold);
}

.card p {
    color: #aaa;
    font-size: 0.95rem;
}

/* === ناوچەی ناوەڕۆک === */
#content-area {
    background: var(--card-bg);
    border: var(--border);
    border-radius: 20px;
    padding: 30px;
    min-height: 400px;
    backdrop-filter: blur(10px);
}

/* === دوگمەی گەڕانەوە === */
.back-btn {
    padding: 12px 25px;
    background: transparent;
    border: 2px solid var(--gold);
    color: var(--gold);
    border-radius: 25px;
    cursor: pointer;
    font-size: 1rem;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.back-btn:hover {
    background: var(--gold);
    color: white;
}

/* === یاریەکان === */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.game-card {
    background: linear-gradient(145deg, #1a1a2e, #0f3460);
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.game-card:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(233, 69, 96, 0.2);
}

.game-card h3 {
    margin: 10px 0;
    color: var(--gold);
}

/* === Snapchat Clone === */
.story-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin: 20px 0;
}

.story-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 1;
    background: linear-gradient(45deg, #ff006e, #ffbe0b);
}

.story-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.camera-view {
    width: 100%;
    max-width: 400px;
    margin: 20px auto;
    background: #000;
    border-radius: 20px;
    padding: 20px;
    text-align: center;
}

.camera-placeholder {
    width: 100%;
    height: 300px;
    background: linear-gradient(45deg, #667eea, #764ba2);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    margin-bottom: 15px;
}

.capture-btn {
    padding: 15px 40px;
    background: var(--gold);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.capture-btn:hover {
    transform: scale(1.1);
}

/* === TikTok Clone === */
.video-feed {
    max-width: 400px;
    margin: 0 auto;
}

.video-card {
    background: #000;
    border-radius: 15px;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
}

.video-placeholder {
    text-align: center;
    animation: pulse 2s infinite;
}

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

.video-actions {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 15px;
}

.action-btn {
    padding: 12px 25px;
    border: none;
    border-radius: 25px;
    background: var(--accent);
    color: white;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.action-btn:hover {
    background: var(--gold);
    transform: scale(1.1);
}

/* === ئاگادارکردنەوە === */
#notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--gold);
    color: white;
    padding: 15px 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(233, 69, 96, 0.4);
    transition: all 0.5s ease;
    z-index: 1000;
}

#notification.hidden {
    opacity: 0;
    transform: translateY(100px);
    pointer-events: none;
}

/* === ڕیسپانسیڤ === */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        text-align: center;
    }
    
    .story-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .card {
        padding: 20px;
    }
    
    .logo h1 {
        font-size: 1.5rem;
    }
}

/* === یاری تێکست === */
.game-container {
    max-width: 500px;
    margin: 0 auto;
}

.game-area {
    background: linear-gradient(145deg, #1a1a2e, #0f3460);
    border-radius: 15px;
    padding: 30px;
    margin: 20px 0;
}

.game-input {
    width: 100%;
    padding: 15px;
    border: 2px solid var(--accent);
    background: transparent;
    color: white;
    border-radius: 10px;
    font-size: 1rem;
    margin: 10px 0;
}

.game-btn {
    padding: 12px 30px;
    background: var(--gold);
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
    margin: 5px;
}

.game-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(233, 69, 96, 0.3);
}

/* === Memory Game === */
.memory-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin: 20px 0;
}

.memory-card {
    aspect-ratio: 1;
    background: var(--accent);
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    transition: all 0.3s ease;
}

.memory-card.flipped {
    background: var(--gold);
    transform: rotateY(180deg);
}

.memory-card.matched {
    background: #00b894;
    cursor: default;
}

/* === Tic Tac Toe === */
.ttt-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin: 20px auto;
    max-width: 300px;
}

.ttt-cell {
    aspect-ratio: 1;
    background: var(--accent);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 3rem;
    color: white;
    transition: all 0.3s ease;
}

.ttt-cell:hover {
    background: var(--secondary);
}

/* === Scoreboard === */
.scoreboard {
    display: flex;
    justify-content: space-around;
    margin: 20px 0;
    padding: 15px;
    background: rgba(233, 69, 96, 0.1);
    border-radius: 10px;
}

.score-item {
    text-align: center;
}

.score-item span {
    display: block;
    font-size: 2rem;
    color: var(--gold);
    font-weight: bold;
}