:root {
    --primary: #79b928;
    --primary-hover: #67a31f;
    --accent: #f97316;
    --bg-color: #f8fafc;
    --card-bg: #ffffff;
    --text-main: #1f2937;
    --text-muted: #6b7280;
    --border-color: #e5e7eb;
    --dark-hero-bg: #111827;
}

* { box-sizing: border-box; margin: 0; padding: 0; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; }

body { 
    background-color: var(--bg-color); 
    color: var(--text-main); 
    font-size: 16px; 
    line-height: 1.5; 
    padding-bottom: 70px; /* space for mobile nav */ 
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Animations Engine */
@keyframes fadeUp {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}
@keyframes pulseGlow {
    0% { box-shadow: 0 0 0 0 rgba(121, 185, 40, 0.4); }
    70% { box-shadow: 0 0 0 15px rgba(121, 185, 40, 0); }
    100% { box-shadow: 0 0 0 0 rgba(121, 185, 40, 0); }
}
@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

/* Utilities */
.container { max-width: 1200px; margin: 0 auto; padding: 0 15px; }
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.mt-4 { margin-top: 1rem; }
.mt-8 { margin-top: 2rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-8 { margin-bottom: 2rem; }
.text-center { text-align: center; }
.hidden { display: none; }

/* Header - Modern Glassmorphism */
.site-header { 
    background: rgba(121, 185, 40, 0.85); 
    padding: 10px 0; 
    color: white; 
    position: sticky; 
    top: 0; 
    z-index: 50; 
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.1); 
    border-bottom: 1px solid rgba(255,255,255,0.2);
}
.site-logo { font-size: 1.6rem; font-weight: 800; color: white; text-decoration: none; letter-spacing: -0.5px; }
.desktop-nav { display: none; }
.desktop-nav a { color: white; text-decoration: none; margin-left: 20px; font-weight: 600; text-transform: uppercase; font-size: 0.85rem; letter-spacing: 0.5px; transition: color 0.2s; }
.desktop-nav a:hover { color: #dcfce7; }
@media (min-width: 768px) { .desktop-nav { display: flex; } body { padding-bottom: 0; } }

/* Mobile Bottom Nav */
.mobile-bottom-nav { position: fixed; bottom: 0; left: 0; right: 0; background: rgba(255,255,255,0.95); backdrop-filter: blur(10px); border-top: 1px solid var(--border-color); display: flex; justify-content: space-around; padding: 10px 0; z-index: 40; box-shadow: 0 -4px 15px rgba(0,0,0,0.03); }
.mobile-bottom-nav a { display: flex; flex-direction: column; align-items: center; color: var(--text-muted); text-decoration: none; font-size: 0.75rem; font-weight: 600; transition: color 0.2s; }
.mobile-bottom-nav a svg { width: 24px; height: 24px; margin-bottom: 4px; fill: currentColor; transition: transform 0.2s; }
.mobile-bottom-nav a.active { color: var(--primary); }
.mobile-bottom-nav a:hover svg { transform: translateY(-2px); color: var(--primary); }
@media (min-width: 768px) { .mobile-bottom-nav { display: none; } }

/* App Cards Grid & Hover Physics */
.grid { display: grid; gap: 12px; grid-template-columns: repeat(1, 1fr); }
@media (min-width: 640px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid { grid-template-columns: repeat(3, 1fr); gap: 14px; } }

.app-card { 
    background: var(--card-bg); 
    border-radius: 14px; 
    padding: 12px; 
    display: flex; 
    align-items: center; 
    text-decoration: none; 
    color: inherit; 
    box-shadow: 0 2px 8px rgba(0,0,0,0.04); 
    border: 1px solid transparent;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    animation: fadeUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) backwards;
}

.app-card:hover { 
    transform: translateY(-6px) scale(1.02); 
    box-shadow: 0 15px 30px rgba(121, 185, 40, 0.15); 
    border: 1px solid rgba(121, 185, 40, 0.3);
    z-index: 10;
}
.app-card img { width: 58px; height: 58px; border-radius: 13px; margin-right: 12px; object-fit: cover; box-shadow: 0 3px 8px rgba(0,0,0,0.1); transition: transform 0.3s; }
.app-card:hover img { transform: scale(1.05); }

.app-card-content { flex: 1; overflow: hidden; }
.app-title { font-size: 0.95rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 3px; color: #111827; }
.app-meta { font-size: 0.8rem; color: var(--text-muted); display: flex; gap: 8px; font-weight: 500; }
.app-mod { color: var(--accent); font-weight: 700; font-size: 0.7rem; margin-top: 4px; display: inline-block; background: rgba(249, 115, 22, 0.1); padding: 2px 7px; border-radius: 6px; text-transform: uppercase; letter-spacing: 0.5px; }

/* Single App Page */
.single-hero { 
    background: linear-gradient(135deg, #111827 0%, #1f2937 100%); 
    color: white; 
    padding: 60px 0; 
    border-bottom-left-radius: 30px; 
    border-bottom-right-radius: 30px; 
    text-align: center; 
    position: relative;
    overflow: hidden;
}
/* Add abstract shape to hero bg */
.single-hero::after {
    content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%;
    background: radial-gradient(circle, rgba(121,185,40,0.1) 0%, rgba(0,0,0,0) 60%);
    pointer-events: none;
}
.single-hero img { width: 130px; height: 130px; border-radius: 28px; margin: 0 auto 20px; box-shadow: 0 10px 30px rgba(0,0,0,0.4); border: 2px solid rgba(255,255,255,0.1); position: relative; z-index: 2; }
.single-hero h1 { font-size: 1.7rem; font-weight: 800; margin-bottom: 20px; text-shadow: 0 2px 4px rgba(0,0,0,0.5); position: relative; z-index: 2; }

/* Animated Gradient Download Button */
.btn-download { 
    display: inline-block; 
    background: linear-gradient(90deg, #79b928, #5a8a1e, #79b928);
    background-size: 200% auto;
    color: white; 
    font-size: 1.15rem; 
    font-weight: 800; 
    padding: 16px 40px; 
    border-radius: 50px; 
    text-decoration: none; 
    box-shadow: 0 8px 20px rgba(121, 185, 40, 0.4);
    animation: shimmer 3s linear infinite, pulseGlow 2s infinite;
    transition: transform 0.2s;
    position: relative;
    z-index: 2;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.btn-download:hover { transform: translateY(-3px); box-shadow: 0 12px 25px rgba(121, 185, 40, 0.5); }

.app-info-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin: 40px 0; background: var(--card-bg); padding: 25px; border-radius: 16px; box-shadow: 0 4px 15px rgba(0,0,0,0.03); animation: fadeUp 0.8s backwards; }
@media (min-width: 768px) { .app-info-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .app-info-grid { grid-template-columns: repeat(5, 1fr); } }
.info-item { display: flex; flex-direction: column; align-items: center; text-align: center; }
.info-label { font-size: 0.75rem; color: var(--text-muted); text-transform: uppercase; font-weight: 800; letter-spacing: 1px; margin-bottom: 5px; }
.info-label svg { margin-right: 4px; color: var(--primary); }
.info-value { font-size: 1rem; font-weight: 700; color: #111827; }

.app-description { background: var(--card-bg); padding: 22px; border-radius: 14px; margin-bottom: 30px; box-shadow: 0 4px 15px rgba(0,0,0,0.03); animation: fadeUp 1s backwards; }
.app-description h2 { font-size: 1.25rem; font-weight: 800; margin-bottom: 15px; border-bottom: 2px solid var(--border-color); padding-bottom: 8px; }
.the-content { font-size: 0.92rem; line-height: 1.7; }
.mod-info-box { background: rgba(249, 115, 22, 0.05); border-left: 5px solid var(--accent); padding: 20px; border-radius: 12px; margin: 30px 0; }
.mod-info-box h3 { color: var(--accent); font-size: 1.2rem; font-weight: 800; margin-bottom: 8px; }

/* Timer Page */
.timer-container { max-width: 500px; margin: 60px auto; text-align: center; background: white; padding: 50px 30px; border-radius: 20px; box-shadow: 0 10px 40px rgba(0,0,0,0.08); animation: fadeUp 0.6s backwards; }
.timer-container h2 { font-weight: 800; font-size: 1.5rem; margin-bottom: 10px; color: #111827; }
.timer-circle { width: 120px; height: 120px; border-radius: 50%; border: 6px solid var(--primary); display: flex; align-items: center; justify-content: center; font-size: 2.5rem; font-weight: 800; margin: 0 auto 25px; color: var(--primary); position: relative; }
/* Pulsing ring */
.timer-circle::before { content: ''; position: absolute; top: -6px; left: -6px; right: -6px; bottom: -6px; border-radius: 50%; border: 2px solid var(--primary); opacity: 0; animation: pulseGlow 2s infinite; }
.timer-message { font-size: 1.15rem; font-weight: 500; margin-bottom: 25px; color: var(--text-muted); }
.final-download-btn { display: none; background: linear-gradient(90deg, #79b928, #5a8a1e); color: white; font-weight: 800; padding: 18px 30px; border-radius: 12px; text-decoration: none; font-size: 1.2rem; width: 100%; text-align: center; box-shadow: 0 8px 20px rgba(121, 185, 40, 0.3); transition: transform 0.2s; text-transform: uppercase; letter-spacing: 1px; }
.final-download-btn:hover { transform: translateY(-3px); box-shadow: 0 12px 25px rgba(121, 185, 40, 0.4); }

/* PC Software Specific Styles */
.sw-os-badge {
    transition: all 0.3s ease;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}
.sw-os-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.sw-type-badge {
    transition: all 0.3s ease;
}
.sw-type-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.sw-requirements-box {
    animation: fadeUp 1s backwards;
}

/* Software info grid - responsive override */
.single-pc_software .app-info-grid {
    grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 768px) {
    .single-pc_software .app-info-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Language Switcher Styling */
.lang-toggle-btn {
    color: white; 
    font-weight: 700; 
    text-decoration: none; 
    background: rgba(255, 255, 255, 0.15); 
    padding: 6px 14px; 
    border-radius: 50px; 
    font-size: 13px; 
    display: flex; 
    align-items: center; 
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,0.1);
}
.lang-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-1px);
}

/* Professional RTL Support Base */
[dir="rtl"] {
    text-align: right;
}
[dir="rtl"] .desktop-nav a {
    margin-left: 0;
    margin-right: 25px;
}
[dir="rtl"] .app-card img {
    margin-right: 0;
    margin-left: 12px;
}
[dir="rtl"] .info-label svg {
    margin-right: 0;
    margin-left: 5px;
}
[dir="rtl"] #mobile-menu-btn {
    margin-right: 0;
    margin-left: 15px;
}
[dir="rtl"] #mobile-sidebar {
    left: auto !important;
    right: -300px !important;
    box-shadow: -2px 0 15px rgba(0,0,0,0.5);
}
[dir="rtl"] #mobile-sidebar.sidebar-open {
    right: 0 !important;
    left: auto !important;
}
[dir="rtl"] .mod-info-box {
    border-left: none;
    border-right: 5px solid var(--accent);
}
[dir="rtl"] .search-form-container {
    margin-left: 0;
    margin-right: 15px;
}
