/* 
 * Islamic Game Platform - Design System 
 * Palette: Deep Green, Gold, Cream, Charcoal
 */

:root {
    /* Colors */
    --color-primary: #0F5132;
    /* Deep Emerald Green */
    --color-primary-dark: #093624;
    --color-secondary: #D4AF37;
    /* Gold */
    --color-secondary-light: #F4D03F;
    --color-bg: #F9F7F0;
    /* Warm Cream */
    --color-surface: #FFFFFF;
    /* White */
    --color-text-main: #2C3E50;
    /* Dark Blue-Grey */
    --color-text-light: #7F8C8D;
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 8px 15px rgba(0, 0, 0, 0.1);
    --border-radius: 12px;
    --font-heading: 'Amiri', serif;
    --font-body: 'Inter', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--color-bg);
    color: var(--color-text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--color-primary);
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    color: var(--color-secondary);
    box-shadow: 0 4px 15px rgba(15, 81, 50, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(15, 81, 50, 0.4);
}

.btn-home-icon {
    font-size: 2rem;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.2);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
    pointer-events: auto;
    color: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-home-icon:hover {
    transform: scale(1.1);
    background: rgba(255, 255, 255, 0.4);
}

/* Islamic Geometric Pattern Background */
.bg-pattern {
    background-color: var(--color-bg);
    background-image: radial-gradient(var(--color-secondary) 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0.1;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

/* Header */
header {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(15, 81, 50, 0.1);
    padding: 1rem 0;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-family: var(--font-heading);
    color: var(--color-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    font-weight: 500;
    color: var(--color-text-main);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--color-primary);
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 8rem 0;
    position: relative;
    overflow: hidden;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    color: var(--color-primary-dark);
}

.hero p {
    font-size: 1.25rem;
    color: var(--color-text-light);
    max-width: 600px;
    margin: 0 auto 3rem;
}

/* Game Grid */
.games-section {
    padding: 4rem 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--color-secondary);
    margin: 10px auto 0;
    border-radius: 2px;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.game-card {
    background: var(--color-surface);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.game-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-md);
}

.game-thumb {
    height: 200px;
    background-color: var(--color-primary-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-secondary);
    font-size: 4rem;
}

.game-info {
    padding: 1.5rem;
}

.game-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.game-desc {
    color: var(--color-text-light);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.game-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: var(--color-primary);
    font-weight: 600;
}

/* Footer */
footer {
    background: var(--color-primary-dark);
    color: var(--color-bg);
    padding: 4rem 0 2rem;
    text-align: center;
    margin-top: 4rem;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--color-secondary);
}