:root {
    --bg-top: #1a253a;
    --bg-main: #0b101a;
    --text-primary: #FFFFFF;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --accent-gold: #FFD700;
    --accent-purple: #7B2CBF;
    --glass-bg: rgba(255, 255, 255, 0.08);
    --glass-border: rgba(255, 255, 255, 0.15);
    --separator-line: rgba(255, 255, 255, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Vazirmatn', sans-serif;
    -webkit-tap-highlight-color: transparent;
}

body {
    background: radial-gradient(circle at top center, var(--bg-top) 0%, var(--bg-main) 100%);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    direction: rtl;
}

.app-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* Header Section */
.header-section {
    height: 33vh;
    min-height: 250px;
    position: relative;
    display: flex;
    align-items: center;
    padding: 20px;
    overflow: hidden;
}

.header-content {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    z-index: 2;
    position: relative;
}

.mascot-container {
    flex-shrink: 0;
}

.mascot-image {
    width: 140px;
    height: auto;
    transform: rotate(-5deg);
    filter: drop-shadow(0 5px 15px rgba(255, 215, 0, 0.3));
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: rotate(-5deg) translateY(0); }
    50% { transform: rotate(-5deg) translateY(-10px); }
}

.brand-container {
    flex: 1;
    margin-right: 15px;
    text-align: right;
}

.brand-title {
    font-size: 1.8rem;
    font-weight: 900;
    margin-bottom: 8px;
    background: linear-gradient(135deg, var(--accent-gold) 0%, var(--text-primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.brand-subtitle {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 400;
    line-height: 1.4;
}

.header-blur-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(to bottom, transparent 0%, var(--bg-main) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1;
}

/* Navigation Section */
.navigation-section {
    margin-top: -20px;
    padding: 0 20px;
    position: relative;
    z-index: 10;
}

.nav-container {
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.nav-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    text-decoration: none;
    color: var(--text-primary);
    border-bottom: 1px solid var(--separator-line);
    transition: background-color 0.2s ease;
    -webkit-tap-highlight-color: rgba(255, 255, 255, 0.1);
}

.nav-item:last-child {
    border-bottom: none;
}

.nav-item:active {
    background-color: rgba(255, 255, 255, 0.1);
}

.nav-text {
    font-size: 1rem;
    font-weight: 600;
    flex: 1;
    text-align: right;
}

.nav-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    margin-right: 15px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.star-icon {
    color: var(--accent-gold);
}

.crown-icon {
    color: var(--accent-purple);
}

.list-icon,
.headset-icon,
.info-icon {
    color: var(--text-primary);
}

/* Blog Section */
.blog-section {
    flex: 1;
    padding: 30px 20px 40px;
    display: flex;
    flex-direction: column;
}

.blog-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 20px;
    text-align: right;
}

.blog-scroll-container {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 15px;
    padding-bottom: 10px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

.blog-scroll-container::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.blog-card {
    flex: 0 0 240px;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    scroll-snap-align: start;
    transition: transform 0.2s ease;
}

.blog-card:active {
    transform: scale(0.98);
}

.blog-banner {
    height: 130px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.blog-banner-content {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px;
}

.blog-banner-icon {
    width: 24px;
    height: 24px;
    stroke: white;
    fill: none;
    stroke-width: 1.5;
}

.blog-banner-text {
    color: white;
    font-size: 0.85rem;
    font-weight: 600;
}

.blog-banner-stars {
    font-size: 0.9rem;
}

.blog-content {
    padding: 15px;
}

.blog-card-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.blog-card-subtitle {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Responsive Adjustments */
@media (max-width: 375px) {
    .mascot-image {
        width: 120px;
    }
    
    .brand-title {
        font-size: 1.5rem;
    }
    
    .blog-card {
        flex: 0 0 220px;
    }
}

@media (min-width: 768px) {
    .app-container {
        max-width: 420px;
        margin: 0 auto;
    }
}

