/* ============================================================
   LifeStyleMod – Home Page (V2 – Banner Inspired)
   ============================================================ */

/* ---------- Hero ---------- */
.hero {
    padding: clamp(120px, 18vmin, 170px) 20px 100px;
    max-width: var(--container);
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}
.hero-glow {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: min(600px, 80vw); height: min(600px, 80vw);
    background: radial-gradient(circle, rgba(139,92,246,0.15) 0%, transparent 70%);
    pointer-events: none; animation: pulse 4s ease-in-out infinite;
    filter: blur(30px);
}
.hero-icon {
    font-size: clamp(60px, 12vw, 80px);
    animation: floatUpDown 5s ease-in-out infinite;
    display: inline-block; margin-bottom: 20px;
    filter: drop-shadow(0 0 40px rgba(245,158,11,0.6));
}
.hero h1 {
    font-size: clamp(32px, 8vw, 62px); font-weight: 900; line-height: 1.25; margin-bottom: 24px;
}
.hero h1 .gradient-text {
    background: linear-gradient(135deg, #fbbf24, #8b5cf6, #2dd4bf);
    background-size: 200% 200%;
    animation: gradientShift 4s ease infinite;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero p {
    font-size: clamp(15px, 2vw, 18px); color: var(--text-muted);
    margin-bottom: 40px; max-width: 650px; margin-inline: auto; line-height: 1.9;
}
.hero p a { color: #fbbf24; text-decoration: none; }
.btn-group { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ---------- Stats ---------- */
.stats-section { margin-bottom: 70px; padding: 0 20px; position: relative; z-index: 1; }
.stats-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap);
    max-width: var(--container); margin: 0 auto;
}
.stat-box {
    text-align: center; padding: clamp(30px, 5vw, 40px) 20px;
    position: relative; overflow: hidden; border-radius: var(--radius-lg);
}
.stat-icon { font-size: clamp(36px, 8vw, 48px); display: block; margin-bottom: 14px; position: relative; z-index: 1; animation: floatUpDown 4s ease-in-out infinite; }
.stat-number {
    font-size: clamp(38px, 8vw, 52px); font-weight: 900;
    background: linear-gradient(135deg, #fbbf24, #8b5cf6);
    background-size: 200% 200%; animation: gradientShift 4s ease infinite;
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    position: relative; z-index: 1;
}
.stat-label {
    color: var(--text-muted); font-size: clamp(10px, 2vw, 11px); margin-top: 10px;
    position: relative; z-index: 1; font-weight: 600; text-transform: uppercase; letter-spacing: 2px;
}

/* ---------- Sections ---------- */
.section { margin-bottom: 80px; padding: 0 20px; position: relative; z-index: 1; }
.section-header {
    display: flex; justify-content: space-between; align-items: center; margin-bottom: 32px;
    flex-wrap: wrap; gap: 15px; max-width: var(--container); margin-inline: auto;
}
.section-title { font-size: clamp(22px, 4vw, 28px); font-weight: 900; display: flex; align-items: center; gap: 12px; }
.section-title .gradient-text { background: linear-gradient(135deg, #fbbf24, #8b5cf6, #2dd4bf); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.section-title .gradient-warm { background: linear-gradient(135deg, #f59e0b, #ef4444); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.section-title .gradient-gold { background: linear-gradient(135deg, #f59e0b, #fbbf24, #8b5cf6); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.section-line { flex: 1; height: 1px; background: linear-gradient(90deg, rgba(245,158,11,0.2), transparent); }
.view-all {
    background: rgba(255,255,255,0.03); border: 1px solid rgba(245,158,11,0.2);
    padding: 10px 22px; border-radius: 30px; text-decoration: none;
    color: var(--text-muted); font-size: 13px; font-weight: 600; transition: all 0.3s; white-space: nowrap;
}
.view-all:hover { background: var(--primary); color: #fff; border-color: var(--primary); box-shadow: 0 8px 25px rgba(139,92,246,0.4); }

/* ---------- Latest Packs ---------- */
.latest-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: var(--gap); max-width: var(--container); margin: 0 auto;
}
.latest-card { overflow: hidden; text-decoration: none; color: inherit; border-radius: var(--radius-md); transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1); }
.latest-img-wrap { width: 100%; aspect-ratio: 16/9; overflow: hidden; position: relative; background: #0f172a; }
.latest-img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.latest-card:hover .latest-img { transform: scale(1.1); }
.latest-no-img { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: clamp(36px, 5vw, 48px); }
.latest-img-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.6), transparent 60%); opacity: 0; transition: opacity 0.4s; }
.latest-card:hover .latest-img-overlay { opacity: 1; }
.latest-body { padding: 18px; }
.latest-code { font-size: 10px; color: #a78bfa; background: rgba(139,92,246,0.15); padding: 3px 10px; border-radius: 10px; display: inline-block; margin-bottom: 8px; font-weight: 700; }
.latest-title { font-size: 15px; font-weight: 700; margin-bottom: 8px; }
.latest-stats { display: flex; gap: 14px; font-size: 11px; color: #64748b; }

/* ---------- Categories ---------- */
.categories-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--gap); max-width: var(--container); margin: 0 auto; }
.category-card { padding: clamp(30px, 5vw, 40px) 30px; text-align: center; text-decoration: none; border-radius: var(--radius-lg); transition: all 0.4s; }
.category-icon { font-size: clamp(48px, 10vw, 60px); margin-bottom: 16px; display: block; }
.category-card h2 { font-size: clamp(22px, 4vw, 28px); font-weight: 800; margin-bottom: 10px; }
.category-pc h2 { color: #8b5cf6; }
.category-android h2 { color: #2dd4bf; }
.category-card p { color: var(--text-muted); font-size: 13px; margin-bottom: 18px; }
.category-count { display: inline-block; background: rgba(139,92,246,0.15); border: 1px solid rgba(139,92,246,0.3); padding: 8px 22px; border-radius: 30px; font-size: 13px; font-weight: 700; color: #a78bfa; }

/* ---------- Top Creators ---------- */
.top-creators-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); max-width: var(--container); margin: 0 auto; }
.top-creator-card { padding: 35px 25px; text-align: center; text-decoration: none; color: inherit; border-radius: var(--radius-lg); transition: all 0.4s; position: relative; }
.top-creator-rank {
    position: absolute; top: 12px; right: 12px;
    background: linear-gradient(135deg, #f59e0b, #8b5cf6); color: #fff;
    width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: 14px;
}
.top-creator-avatar {
    width: 90px; height: 90px; background: linear-gradient(135deg, #1e293b, #0f172a);
    border-radius: 50%; margin: 0 auto 18px; display: flex; align-items: center; justify-content: center; font-size: 48px;
    border: 3px solid rgba(139,92,246,0.5); overflow: hidden; box-shadow: 0 0 35px rgba(139,92,246,0.3);
}
.top-creator-avatar img { width: 100%; height: 100%; object-fit: cover; }
.top-creator-name { font-size: 20px; font-weight: 800; margin-bottom: 6px; }
.top-creator-role { display: inline-block; padding: 5px 16px; border-radius: 20px; font-size: 11px; font-weight: 700; margin-bottom: 16px; }
.top-creator-stats { display: flex; justify-content: center; gap: 28px; margin-bottom: 18px; }
.top-creator-stat { text-align: center; }
.top-creator-stat .number { font-size: 22px; font-weight: 800; color: #a78bfa; }
.top-creator-stat .label { font-size: 10px; color: #64748b; text-transform: uppercase; letter-spacing: 1px; }
.view-profile-btn {
    background: rgba(139,92,246,0.15); border: 1px solid rgba(139,92,246,0.2);
    border-radius: 30px; padding: 9px 22px; font-size: 12px; font-weight: 700; color: #fff; text-decoration: none; display: inline-block; transition: 0.3s;
}
.view-profile-btn:hover { background: var(--primary); border-color: var(--primary); }

/* ---------- Premium Featured ---------- */
.premium-featured-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: var(--gap); max-width: var(--container); margin: 0 auto;
}
.premium-card {
    background: rgba(15,23,42,0.5); backdrop-filter: blur(12px) saturate(150%);
    border: 1px solid rgba(245,158,11,0.2); border-radius: var(--radius-lg);
    overflow: hidden; text-decoration: none; color: inherit;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 0 20px rgba(245,158,11,0.1); will-change: transform;
}
@media (hover: hover) and (pointer: fine) {
    .premium-card { animation: goldGlow 3s ease-in-out infinite; }
}
@keyframes goldGlow { 0%, 100% { box-shadow: 0 0 20px rgba(245,158,11,0.2); } 50% { box-shadow: 0 0 35px rgba(245,158,11,0.35); } }
.premium-card:hover { transform: translateY(-8px); border-color: rgba(245,158,11,0.5); box-shadow: 0 20px 50px rgba(245,158,11,0.15); }
.premium-img-wrap { width: 100%; aspect-ratio: 16/9; background: #0f172a; overflow: hidden; position: relative; }
.premium-img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.premium-card:hover .premium-img { transform: scale(1.1); }
.premium-badge-corner {
    position: absolute; top: 12px; right: 12px;
    background: linear-gradient(135deg, #f59e0b, #8b5cf6); color: #fff;
    font-weight: 800; font-size: 10px; padding: 4px 12px; border-radius: 20px;
}
.premium-body { padding: 16px; }
.premium-title { font-weight: 700; font-size: 15px; margin-bottom: 6px; }
.premium-seller { font-size: 11px; color: var(--text-muted); margin-bottom: 8px; }
.premium-price { font-size: 16px; font-weight: 900; background: linear-gradient(135deg, #fbbf24, #8b5cf6); -webkit-background-clip: text; -webkit-text-fill-color: transparent; margin-bottom: 10px; }
.premium-btn { display: block; text-align: center; background: rgba(245,158,11,0.15); border: 1px solid rgba(245,158,11,0.3); color: #fbbf24; padding: 8px; border-radius: 20px; font-weight: 600; font-size: 12px; transition: all 0.3s; }
.premium-btn:hover { background: #f59e0b; color: #000; }
.video-placeholder-premium { width: 100%; height: 100%; background: linear-gradient(135deg, #1e293b, #0f172a); display: flex; flex-direction: column; align-items: center; justify-content: center; color: #fbbf24; font-size: 2.8rem; gap: 6px; }
.video-placeholder-premium span { font-size: 0.75rem; color: var(--text-muted); font-weight: 600; }

/* ---------- Top Packs ---------- */
.top-packs-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 30px; max-width: var(--container); margin: 0 auto; }
.top-pack-card { display: flex; flex-direction: column; text-decoration: none; color: inherit; border-radius: var(--radius-xl); overflow: hidden; transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1); border: 1px solid rgba(245,158,11,0.2); background: rgba(15,23,42,0.5); backdrop-filter: blur(25px) saturate(150%); }
.top-pack-card:hover { transform: translateY(-8px); box-shadow: 0 30px 60px rgba(0,0,0,0.6), 0 0 40px rgba(139,92,246,0.3); border-color: rgba(139,92,246,0.5); }
.top-pack-img { width: 100%; aspect-ratio: 16/9; object-fit: cover; transition: transform 0.5s; }
.top-pack-card:hover .top-pack-img { transform: scale(1.05); }
.top-pack-no-img { width: 100%; aspect-ratio: 16/9; display: flex; align-items: center; justify-content: center; font-size: 72px; background: linear-gradient(135deg, #1e293b, #0f172a); }
.top-pack-badge { position: absolute; top: 15px; right: 15px; background: linear-gradient(135deg, #f59e0b, #8b5cf6); color: #fff; font-weight: 800; font-size: 11px; padding: 6px 16px; border-radius: 20px; backdrop-filter: blur(10px); box-shadow: 0 8px 20px rgba(0,0,0,0.3); }
.top-pack-body { padding: 20px; flex: 1; display: flex; flex-direction: column; gap: 12px; }
.top-pack-title { font-size: 18px; font-weight: 800; margin-bottom: 4px; }
.top-pack-creator { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.top-pack-creator-avatar { width: 40px; height: 40px; border-radius: 50%; background: rgba(139,92,246,0.2); border: 2px solid rgba(245,158,11,0.4); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.top-pack-creator-avatar img { width: 100%; height: 100%; object-fit: cover; }
.top-pack-creator-name { font-weight: 600; color: #e2e8f0; font-size: 14px; }
.top-pack-downloads { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-muted); }
.top-pack-downloads strong { color: #fbbf24; font-size: 16px; }
.top-pack-link { margin-top: auto; text-align: center; background: rgba(245,158,11,0.15); border: 1px solid rgba(245,158,11,0.3); color: #fbbf24; padding: 10px; border-radius: 30px; font-weight: 700; font-size: 13px; transition: all 0.3s; }
.top-pack-link:hover { background: #f59e0b; color: #000; }

/* ---------- Contact ---------- */
.contact-section { padding: 0 20px; margin-bottom: 80px; position: relative; z-index: 1; }
.contact-card { max-width: 850px; margin: 0 auto; background: linear-gradient(135deg, rgba(139,92,246,0.1), rgba(45,212,191,0.05), rgba(245,158,11,0.05)); border: 1px solid rgba(245,158,11,0.15); border-radius: var(--radius-xl); padding: clamp(40px, 8vw, 55px) clamp(25px, 5vw, 45px); text-align: center; backdrop-filter: blur(20px); position: relative; overflow: hidden; }
.contact-card h2 { font-size: clamp(24px, 5vw, 30px); font-weight: 800; margin-bottom: 14px; }
.contact-card p { color: var(--text-muted); margin-bottom: 28px; font-size: 15px; }
.btn-telegram { background: linear-gradient(135deg, #2dd4bf, #8b5cf6); color: #fff; text-decoration: none; padding: 14px 36px; border-radius: 50px; font-weight: 700; display: inline-flex; align-items: center; gap: 10px; transition: 0.3s; font-size: 15px; box-shadow: 0 8px 30px rgba(139,92,246,0.4); }
.btn-telegram:hover { transform: scale(1.06); box-shadow: 0 15px 40px rgba(139,92,246,0.6); }

/* ---------- ریسپانسیو ---------- */
@media (max-width: 1024px) {
    .top-creators-grid { grid-template-columns: repeat(2, 1fr); }
    .top-packs-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
    .hero { padding: 120px 20px 60px; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 15px; }
    .categories-grid { grid-template-columns: 1fr; }
    .top-creators-grid { grid-template-columns: 1fr; }
    .latest-grid { grid-template-columns: repeat(2, 1fr); }
    .premium-featured-grid { grid-template-columns: repeat(2, 1fr); }
    .top-packs-grid { grid-template-columns: 1fr; }
    .btn-group { flex-direction: column; align-items: center; }
    .btn-primary, .btn-secondary, .btn-explore { width: 100%; justify-content: center; }
    .premium-card { animation: none !important; box-shadow: 0 0 20px rgba(245,158,11,0.1); }
}
@media (max-width: 480px) {
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .stat-box { padding: 25px 10px; }
    .latest-grid { grid-template-columns: 1fr; }
    .premium-featured-grid { grid-template-columns: 1fr; }
    .top-creators-grid { grid-template-columns: 1fr; }
    .category-card { padding: 30px 20px; }
}