/* ════════════════════════════════════════════════════════
   AZ24SAAT.ORG — PREMIUM HOME STYLES  |  2025
   Mobile-first · Inter Font · Modern Design System
════════════════════════════════════════════════════════ */

/* ── Reset & Base ── */
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
body{font-family:'Inter',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;background:#f2f4f8;color:#1a1d27;-webkit-font-smoothing:antialiased}
a{text-decoration:none;color:inherit}
img{display:block;max-width:100%;height:auto}
h1,h2,h3,h4,h5,h6{font-weight:700;line-height:1.25}

/* ── Homepage Container ── */
.homepage{max-width:1280px;margin:0 auto;padding:20px 16px 56px;display:flex;flex-direction:column;gap:40px}

/* ════════════════════════════════════════════════════════
   SECTION HEADER (universal)
════════════════════════════════════════════════════════ */
.section-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:20px;gap:10px}
.section-header__left{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.section-title{font-size:clamp(1.1rem,2.4vw,1.5rem);font-weight:800;color:#0f1221;letter-spacing:-.3px}
.section-badge{display:inline-flex;align-items:center;background:linear-gradient(135deg,#e30613,#b7000f);color:#fff;font-size:.62rem;font-weight:700;letter-spacing:.8px;padding:3px 9px;border-radius:20px;white-space:nowrap}
.section-badge--purple{background:linear-gradient(135deg,#7c3aed,#5b21b6)}
.section-badge--red{background:linear-gradient(135deg,#e30613,#b7000f)}
.section-more{font-size:.82rem;font-weight:600;color:#6b7280;white-space:nowrap;transition:color .2s}
.section-more:hover{color:#e30613}

/* ════════════════════════════════════════════════════════
   RATES SECTION
════════════════════════════════════════════════════════ */
.live-indicator{display:flex;align-items:center;gap:6px;font-size:.78rem;font-weight:600;color:#10b981}
.live-dot{width:8px;height:8px;border-radius:50%;background:#10b981;animation:pulseDot 1.6s infinite}
@keyframes pulseDot{0%,100%{box-shadow:0 0 0 0 rgba(16,185,129,.45)}50%{box-shadow:0 0 0 7px rgba(16,185,129,0)}}

.rates-grid{display:grid;grid-template-columns:1fr;gap:16px}
@media(min-width:700px){.rates-grid{grid-template-columns:1fr 1fr}}

.rates-card{background:#fff;border-radius:18px;padding:22px;box-shadow:0 2px 16px rgba(0,0,0,.06);border:1px solid #e8eaf0;transition:box-shadow .25s}
.rates-card:hover{box-shadow:0 6px 32px rgba(0,0,0,.1)}
.rates-card--crypto{border-top:3px solid #f7931a}

.rates-card__header{display:flex;align-items:flex-start;gap:12px;margin-bottom:18px}
.rates-card__icon{width:44px;height:44px;border-radius:12px;display:flex;align-items:center;justify-content:center;flex-shrink:0;color:#fff}
.rates-card__icon--fx{background:linear-gradient(135deg,#1d4ed8,#1e40af)}
.rates-card__icon--crypto{background:linear-gradient(135deg,#f7931a,#e07b10)}
.rates-card__title{font-size:1rem;font-weight:700;color:#0f1221;line-height:1.2}
.rates-card__sub{font-size:.72rem;color:#9ca3af;margin-top:3px;line-height:1.4}

.rates-refresh-btn{margin-left:auto;background:#f3f4f6;border:none;border-radius:10px;width:36px;height:36px;cursor:pointer;display:flex;align-items:center;justify-content:center;color:#6b7280;transition:background .2s,color .2s;flex-shrink:0}
.rates-refresh-btn:hover{background:#e0e7ff;color:#4338ca}
.rates-refresh-btn.spinning svg{animation:spinIcon .7s linear infinite}
@keyframes spinIcon{to{transform:rotate(360deg)}}

.rates-list{display:flex;flex-direction:column;gap:8px}
.rate-row{display:flex;align-items:center;gap:10px;background:#f8f9fc;border-radius:12px;padding:11px 14px;transition:background .2s}
.rate-row:hover{background:#eef0f8}

.rate-flag{width:32px;height:32px;border-radius:8px;display:flex;align-items:center;justify-content:center;font-size:1.1rem;background:#fff;box-shadow:0 1px 4px rgba(0,0,0,.08);flex-shrink:0}
.rate-flag--crypto{background:linear-gradient(135deg,#f7931a,#e07b10);color:#fff;font-weight:800;font-size:.95rem}
.rate-flag--eth{background:linear-gradient(135deg,#627eea,#3c5fc7)}

.rate-info{display:flex;align-items:center;gap:5px;flex:1;min-width:0}
.rate-code{font-weight:700;font-size:.9rem;color:#1a1d27}
.rate-arrow{color:#d1d5db;font-size:.8rem}
.rate-base{font-size:.78rem;color:#9ca3af;font-weight:500}

.rate-value{font-weight:800;font-size:.95rem;color:#0f1221;opacity:.4;transition:opacity .5s;font-variant-numeric:tabular-nums}
.rate-value--loaded{opacity:1}
.rate-change{font-size:.72rem;font-weight:700;min-width:52px;text-align:right}
.rate-change--up{color:#10b981}
.rate-change--dn{color:#ef4444}
.rate-err{color:#ef4444;font-size:.78rem}

/* ════════════════════════════════════════════════════════
   LATEST POSTS CAROUSEL
════════════════════════════════════════════════════════ */
.swiper-nav-btns{display:flex;gap:8px}
.swiper-nav-btn{width:36px;height:36px;border-radius:50%;border:2px solid #e5e7eb;background:#fff;cursor:pointer;display:flex;align-items:center;justify-content:center;color:#374151;transition:all .2s}
.swiper-nav-btn:hover{background:#e30613;border-color:#e30613;color:#fff}

.latest-swiper{overflow:hidden;border-radius:4px}
.latest-slide{border-radius:14px;overflow:hidden}
.latest-slide__link{display:block;position:relative}
.latest-slide__img-wrap{position:relative;overflow:hidden;aspect-ratio:16/10}
.latest-slide__img-wrap img,.latest-slide__img-wrap picture{width:100%;height:100%;object-fit:cover;transition:transform .45s ease}
.latest-slide__link:hover .latest-slide__img-wrap img{transform:scale(1.06)}
.latest-slide__overlay{position:absolute;inset:0;background:linear-gradient(to top,rgba(0,0,0,.78) 0%,transparent 55%);pointer-events:none}
.latest-slide__caption{position:absolute;bottom:0;left:0;right:0;padding:14px 14px 16px}
.latest-slide__caption h4{color:#fff;font-size:.88rem;font-weight:600;line-height:1.35;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden}

/* ════════════════════════════════════════════════════════
   ZODIAC SIGNS GRID
════════════════════════════════════════════════════════ */
.signs-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}
@media(min-width:480px){.signs-grid{grid-template-columns:repeat(6,1fr)}}
@media(min-width:768px){.signs-grid{grid-template-columns:repeat(12,1fr)}}

.sign-card{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;padding:13px 5px 11px;border-radius:16px;background:#fff;border:1.5px solid transparent;transition:transform .25s,box-shadow .25s,border-color .25s;overflow:hidden;text-decoration:none;box-shadow:0 2px 10px rgba(0,0,0,.055)}
.sign-card:hover{transform:translateY(-5px);box-shadow:0 10px 28px rgba(124,58,237,.18);border-color:#7c3aed}
.sign-card__glow{position:absolute;inset:0;background:radial-gradient(circle at 50% 0%,rgba(124,58,237,.13) 0%,transparent 65%);opacity:0;transition:opacity .3s}
.sign-card:hover .sign-card__glow{opacity:1}
.sign-card__icon{width:44px;height:44px;border-radius:50%;background:linear-gradient(135deg,#7c3aed,#5b21b6);display:flex;align-items:center;justify-content:center;font-size:1.3rem;color:#fff;box-shadow:0 4px 12px rgba(124,58,237,.35);transition:transform .25s}
.sign-card:hover .sign-card__icon{transform:scale(1.1) rotate(-6deg)}
.sign-card__name{font-size:.65rem;font-weight:700;color:#374151;text-align:center;letter-spacing:.2px;line-height:1.2;transition:color .2s}
.sign-card:hover .sign-card__name{color:#7c3aed}

/* ════════════════════════════════════════════════════════
   HERO BLOCK (TOP STORIES)
════════════════════════════════════════════════════════ */
.hero-grid{display:grid;grid-template-columns:1fr;gap:14px}
@media(min-width:640px){.hero-grid{grid-template-columns:repeat(2,1fr);grid-template-rows:auto auto}.hero-feature{grid-column:1/3}}
@media(min-width:900px){.hero-grid{grid-template-columns:2fr repeat(2,1fr)}.hero-feature{grid-column:1;grid-row:1/3}}

.hero-feature .hero-post__img-wrap{aspect-ratio:4/3}
@media(min-width:900px){.hero-feature .hero-post__img-wrap{aspect-ratio:unset;height:100%;min-height:340px}}

.hero-post-link{display:flex;flex-direction:column;height:100%;border-radius:16px;overflow:hidden;background:#fff;box-shadow:0 2px 14px rgba(0,0,0,.07);transition:box-shadow .25s,transform .25s;border:1px solid #e8eaf0}
.hero-post-link:hover{box-shadow:0 8px 32px rgba(0,0,0,.12);transform:translateY(-3px)}

.hero-post__img-wrap{position:relative;overflow:hidden;aspect-ratio:16/9;flex-shrink:0}
.hero-post__img-wrap img,.hero-post__img-wrap picture{width:100%;height:100%;object-fit:cover;transition:transform .4s}
.hero-post-link:hover .hero-post__img-wrap img{transform:scale(1.05)}
.hero-post__overlay{position:absolute;inset:0;background:linear-gradient(to top,rgba(0,0,0,.35) 0%,transparent 50%);pointer-events:none}
.hero-post__badge{position:absolute;top:12px;left:12px;background:#e30613;color:#fff;font-size:.63rem;font-weight:700;letter-spacing:.5px;padding:4px 10px;border-radius:20px}

.hero-post__body{padding:14px 16px 16px;flex:1;display:flex;flex-direction:column;gap:8px}
.hero-feature .hero-post__body{padding:18px 20px 20px}
.hero-post__title{font-size:.93rem;font-weight:700;line-height:1.4;color:#0f1221;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden}
.hero-feature .hero-post__title{font-size:clamp(1.05rem,2.1vw,1.4rem);-webkit-line-clamp:4}
.hero-post__date{display:flex;align-items:center;gap:5px;font-size:.72rem;color:#9ca3af;font-weight:500;margin-top:auto}

/* ════════════════════════════════════════════════════════
   CATEGORY BLOCKS
════════════════════════════════════════════════════════ */
.cat-blocks{display:flex;flex-direction:column;gap:36px}

.cat-card{background:#fff;border-radius:20px;padding:22px 22px 24px;box-shadow:0 2px 16px rgba(0,0,0,.055);border:1px solid #e8eaf0}
.cat-card .section-header{border-bottom:2.5px solid #e30613;padding-bottom:12px;margin-bottom:18px}

.cat-grid{display:grid;grid-template-columns:1fr;gap:14px}
@media(min-width:540px){.cat-grid{grid-template-columns:repeat(2,1fr)}}
@media(min-width:900px){.cat-grid{grid-template-columns:repeat(4,1fr);grid-template-rows:repeat(2,auto)}.cat-feature{grid-column:1/3;grid-row:1/3}}

.cat-feature .cat-post__img-wrap{aspect-ratio:4/3}
@media(min-width:900px){.cat-feature .cat-post__img-wrap{aspect-ratio:unset;height:100%;min-height:300px}}

.cat-post-link{display:flex;flex-direction:column;height:100%;border-radius:14px;overflow:hidden;border:1px solid #f0f2f6;background:#f8f9fc;transition:box-shadow .22s,transform .22s}
.cat-post-link:hover{box-shadow:0 6px 28px rgba(0,0,0,.09);transform:translateY(-2px)}

.cat-post__img-wrap{position:relative;overflow:hidden;aspect-ratio:16/9;flex-shrink:0}
.cat-post__img-wrap img,.cat-post__img-wrap picture{width:100%;height:100%;object-fit:cover;transition:transform .4s}
.cat-post-link:hover .cat-post__img-wrap img{transform:scale(1.05)}
.cat-post__overlay{position:absolute;inset:0;background:linear-gradient(to top,rgba(0,0,0,.28) 0%,transparent 55%);pointer-events:none}

.cat-post__body{padding:12px 14px 14px;flex:1;display:flex;flex-direction:column;gap:6px}
.cat-feature .cat-post__body{padding:15px 17px 17px}
.cat-post__title{font-size:.87rem;font-weight:700;line-height:1.4;color:#0f1221;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden}
.cat-feature .cat-post__title{font-size:clamp(.98rem,1.7vw,1.2rem);-webkit-line-clamp:4}
.cat-post__date{display:flex;align-items:center;gap:4px;font-size:.7rem;color:#9ca3af;font-weight:500;margin-top:auto}

/* ════════════════════════════════════════════════════════
   Legacy classes (backward compat with old HTML)
════════════════════════════════════════════════════════ */
.category-title{display:flex;justify-content:space-between;align-items:center;border-bottom:2.5px solid #e30613;padding-bottom:10px;margin-bottom:18px}
.category-title h2{font-size:clamp(1.1rem,2.2vw,1.5rem);color:#0f1221;font-weight:800;letter-spacing:-.3px}
.category-title a{font-size:.82rem;font-weight:600;color:#6b7280;transition:color .2s}
.category-title a:hover{color:#e30613}
.category-grid{display:grid;grid-template-columns:repeat(4,1fr);grid-template-rows:repeat(2,auto);gap:18px}
.category-feature{grid-column:1/3;grid-row:1/3}
.category-feature img{width:100%;height:100%;object-fit:cover;border-radius:12px}
.category-item img{width:100%;aspect-ratio:16/9;object-fit:cover;border-radius:10px;margin-bottom:8px}
.category-item h4{font-size:.9rem;line-height:1.4;font-weight:600;color:#0f1221}
@media(max-width:900px){.category-grid{grid-template-columns:repeat(2,1fr)}.category-feature{grid-column:1/3;grid-row:auto}}
@media(max-width:540px){.category-grid{grid-template-columns:1fr}.category-feature{grid-column:auto}}

/* Footer */
.site-footer{background:#111827;color:#9ca3af;padding:40px 0;font-size:14px;line-height:1.6}
.site-footer .footer-container{max-width:1200px;margin:0 auto;padding:0 20px}
.site-footer .footer-widgets{margin-bottom:30px;padding-bottom:30px;border-bottom:1px solid #374151}
.site-footer .site-info{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:15px}
.site-footer .copyright{flex:1;text-align:left}
.site-footer .contact-info{flex:1;text-align:right;display:flex;flex-direction:column;align-items:flex-end;gap:5px}
.site-footer a{color:#fff;transition:color .2s}
.site-footer a:hover{color:#e30613}
@media(max-width:768px){.site-footer .site-info{flex-direction:column}.site-footer .copyright,.site-footer .contact-info{text-align:center;align-items:center}}

