/* Ana səhifə: animasiyalar və vizual təkmilləşdirmələr. Yalnız home.blade.php-də yüklənir. */
:root {
  --hp-teal: #0e7c86;
  --hp-teal-dark: #0b5f69;
  --hp-green: #3aa76d;
  --hp-gold: #e4b344;
  --hp-ink: #0f2a33;
  --hp-ease: cubic-bezier(.22, .8, .22, 1);
}

/* ---------- Hero ---------- */
.hp-home .eco-hero { position: relative; overflow: hidden; isolation: isolate; }
.hp-home .eco-hero::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(ellipse at 50% 120%, rgba(14, 124, 134, .55), transparent 60%),
    linear-gradient(180deg, rgba(4, 20, 26, .15) 0%, rgba(4, 20, 26, .05) 45%, rgba(4, 20, 26, .65) 100%);
}
.hp-home .eco-hero::after {
  content: ""; position: absolute; inset: -20% -60%; z-index: 1; pointer-events: none;
  background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, .07) 50%, transparent 60%);
  animation: hp-sweep 9s ease-in-out infinite;
}
.hp-home .eco-hero > .container { position: relative; z-index: 3; }
.hp-home .eco-home-hero-content h1 {
  text-shadow: 0 6px 30px rgba(0, 0, 0, .45);
  animation: hp-rise 1.1s var(--hp-ease) .2s both;
}
.hp-home .eco-home-hero-content h1::after {
  content: ""; display: block; width: 90px; height: 4px; margin: 18px auto 0; border-radius: 4px;
  background: linear-gradient(90deg, var(--hp-gold), var(--hp-green));
  transform-origin: center; animation: hp-grow 1s var(--hp-ease) .9s both;
}
.hp-home .eco-hero-more {
  position: relative; overflow: hidden;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  background: rgba(255, 255, 255, .12) !important;
  border-color: rgba(255, 255, 255, .7) !important;
  border-radius: 40px !important;
  padding-left: 30px !important; padding-right: 30px !important;
  transition: background .35s, transform .35s var(--hp-ease), box-shadow .35s;
  animation: hp-rise 1s var(--hp-ease) .55s both;
}
.hp-home .eco-hero-more::after {
  content: ""; position: absolute; top: 0; left: -120%; width: 60%; height: 100%;
  background: linear-gradient(110deg, transparent, rgba(255, 255, 255, .45), transparent);
  animation: hp-shine 3.6s ease-in-out 2s infinite;
}
.hp-home .eco-hero-more:hover {
  background: rgba(255, 255, 255, .95) !important; color: var(--hp-teal-dark) !important;
  transform: translateY(-3px); box-shadow: 0 14px 30px rgba(0, 0, 0, .3);
}

.hp-particles { position: absolute; inset: 0; z-index: 2; pointer-events: none; overflow: hidden; }
.hp-particles i {
  position: absolute; bottom: -30px; display: block; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, .9), rgba(170, 230, 200, .25) 60%, transparent 70%);
  animation: hp-float-up linear infinite; opacity: 0;
}

.hp-scroll-cue {
  position: absolute; left: 50%; bottom: 26px; z-index: 3; width: 26px; height: 42px; margin-left: -13px;
  border: 2px solid rgba(255, 255, 255, .75); border-radius: 14px; cursor: pointer;
  animation: hp-rise 1s var(--hp-ease) 1.4s both;
}
.hp-scroll-cue::before {
  content: ""; position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px;
  border-radius: 2px; background: #fff; animation: hp-wheel 1.8s ease-in-out infinite;
}

/* ---------- Bölmə başlıqları ---------- */
.hp-home .eco-section-title,
.hp-home .eco-news-subtitle,
.hp-home .eco-modern-heading h2,
.hp-home .eco-side-heading h2 { position: relative; }
.hp-home .eco-section-title::after,
.hp-home .eco-news-subtitle::after,
.hp-home .eco-modern-heading h2::after {
  content: ""; position: absolute; left: 0; bottom: -8px; height: 3px; width: 64px; border-radius: 3px;
  background: linear-gradient(90deg, var(--hp-teal), var(--hp-green), var(--hp-gold));
  background-size: 200% 100%;
  transform: scaleX(0); transform-origin: left; transition: transform .9s var(--hp-ease);
  animation: hp-gradient 4s linear infinite;
}
.hp-home .eco-section-title-center::after { left: 50%; margin-left: -32px; transform-origin: center; }
.hp-home .hp-in.eco-section-title::after,
.hp-home .hp-in.eco-news-subtitle::after,
.hp-home .hp-in h2::after,
.hp-home .eco-modern-heading.hp-in h2::after { transform: scaleX(1); }

/* ---------- Dekorativ fon ---------- */
/* Dekorativ dairələr səhifənin kənarından çıxıb üfüqi sürüşmə yaratmasın */
.hp-home .eco-main { overflow-x: hidden; overflow-x: clip; }
.hp-home .eco-news-weather { position: relative; }
.hp-home .eco-news-weather::before,
.hp-home .eco-activity-icons-section::before {
  content: ""; position: absolute; z-index: -1; pointer-events: none; border-radius: 50%;
  filter: blur(60px); opacity: .45; animation: hp-blob 14s ease-in-out infinite alternate;
}
.hp-home .eco-news-weather::before {
  width: 420px; height: 420px; right: -120px; top: 40px;
  background: radial-gradient(circle, rgba(58, 167, 109, .35), transparent 70%);
}
.hp-home .eco-activity-icons-section { position: relative; }
.hp-home .eco-activity-icons-section::before {
  width: 480px; height: 480px; left: -160px; top: -60px;
  background: radial-gradient(circle, rgba(14, 124, 134, .3), transparent 70%);
}

/* ---------- Top xəbər ---------- */
.hp-home .eco-top-news-main { overflow: hidden; border-radius: 14px; box-shadow: 0 18px 40px rgba(15, 42, 51, .18); transition: box-shadow .4s; }
.hp-home .eco-top-news-main:hover { box-shadow: 0 24px 50px rgba(15, 42, 51, .28); }
.hp-home .eco-top-news-photo { animation: hp-kenburns 18s ease-in-out infinite alternate; }
.hp-home .eco-top-news-label {
  background: linear-gradient(90deg, var(--hp-teal), var(--hp-green)) !important;
  box-shadow: 0 6px 16px rgba(14, 124, 134, .35);
}
.hp-home .eco-top-news-label::before {
  content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 7px; border-radius: 50%;
  background: #fff; vertical-align: middle; animation: hp-pulse 1.6s ease-in-out infinite;
}
.hp-home .eco-top-news-controls button { transition: transform .3s var(--hp-ease), background .3s; }
.hp-home .eco-top-news-controls button:hover { transform: scale(1.12); }

/* ---------- Hava ---------- */
.hp-home .eco-weather {
  border-radius: 14px; overflow: hidden;
  background: linear-gradient(160deg, #ffffff 0%, #eef8f6 100%) !important;
  box-shadow: 0 14px 34px rgba(15, 42, 51, .1);
  transition: transform .4s var(--hp-ease), box-shadow .4s;
}
.hp-home .eco-weather:hover { transform: translateY(-4px); box-shadow: 0 20px 40px rgba(15, 42, 51, .16); }
.hp-home .eco-weather-days i { display: inline-block; animation: hp-bob 4s ease-in-out infinite; }
.hp-home .eco-weather-days > div:nth-child(2) i { animation-delay: -2s; }

/* ---------- Gündəlik xəbərlər ---------- */
.hp-home .eco-news-row {
  border-radius: 14px; overflow: hidden; background: #fff;
  box-shadow: 0 6px 20px rgba(15, 42, 51, .07);
  transition: transform .45s var(--hp-ease), box-shadow .45s;
}
.hp-home .eco-news-row:hover { transform: translateY(-6px); box-shadow: 0 20px 40px rgba(15, 42, 51, .16); }
.hp-home .eco-news-thumb { overflow: hidden; }
.hp-home .eco-news-thumb img { transition: transform .9s var(--hp-ease), filter .6s; }
.hp-home .eco-news-row:hover .eco-news-thumb img { transform: scale(1.08); filter: saturate(1.15); }
.hp-home .eco-news-row h3 { transition: color .3s; }
.hp-home .eco-news-row:hover h3 { color: var(--hp-teal); }
.hp-home .eco-news-row .eco-date {
  display: inline-block; padding: 3px 10px; border-radius: 20px;
  background: #e9f4f4; color: var(--hp-teal-dark); font-weight: 600;
}
.hp-home .eco-more-link { position: relative; transition: letter-spacing .35s var(--hp-ease), color .3s; }
.hp-home .eco-more-link i { transition: transform .35s var(--hp-ease); }
.hp-home .eco-more-link:hover { letter-spacing: .06em; }
.hp-home .eco-more-link:hover i { transform: translateX(5px); }

/* ---------- Faydalı bölmələr ---------- */
.hp-home .eco-side-banners > a {
  position: relative; overflow: hidden; border-radius: 12px;
  transition: transform .45s var(--hp-ease), box-shadow .45s;
}
.hp-home .eco-side-banners > a::after {
  content: ""; position: absolute; top: 0; left: -130%; width: 70%; height: 100%; pointer-events: none;
  background: linear-gradient(110deg, transparent, rgba(255, 255, 255, .35), transparent);
  transition: left .8s var(--hp-ease);
}
.hp-home .eco-side-banners > a:hover { transform: translateY(-5px); box-shadow: 0 18px 34px rgba(11, 95, 105, .3); }
.hp-home .eco-side-banners > a:hover::after { left: 130%; }
.hp-home .eco-side-banners > a img { transition: transform .9s var(--hp-ease); }
.hp-home .eco-side-banners > a:hover img { transform: scale(1.07); }
.hp-home .eco-side-banners > a i { transition: transform .35s var(--hp-ease); }
.hp-home .eco-side-banners > a:hover i { transform: translateX(4px); }

/* ---------- Maraqlı məlumatlar ---------- */
.hp-home .eco-interest-row { border-radius: 12px; transition: transform .4s var(--hp-ease), box-shadow .4s; }
.hp-home .eco-interest-row:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(15, 42, 51, .13); }
.hp-home .eco-interest-row img { transition: transform .8s var(--hp-ease); }
.hp-home .eco-interest-row:hover img { transform: scale(1.08) rotate(-1deg); }

/* ---------- Fəaliyyət istiqamətləri ---------- */
.hp-home .eco-activity-icon-card {
  position: relative; overflow: hidden; border-radius: 16px;
  transition: transform .45s var(--hp-ease), box-shadow .45s, border-color .45s;
}
.hp-home .eco-activity-icon-card::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px;
  background: linear-gradient(90deg, var(--hp-teal), var(--hp-green), var(--hp-gold));
  transform: scaleX(0); transform-origin: left; transition: transform .5s var(--hp-ease);
}
.hp-home .eco-activity-icon-card:hover { transform: translateY(-8px); box-shadow: 0 22px 40px rgba(15, 42, 51, .16); }
.hp-home .eco-activity-icon-card:hover::before { transform: scaleX(1); }
.hp-home .eco-activity-card-icon { position: relative; transition: transform .5s var(--hp-ease); }
.hp-home .eco-activity-card-icon::after {
  content: ""; position: absolute; inset: -6px; border-radius: 50%; pointer-events: none;
  border: 2px dashed rgba(14, 124, 134, .0); transition: border-color .4s;
  animation: hp-spin 12s linear infinite;
}
.hp-home .eco-activity-icon-card:hover .eco-activity-card-icon { transform: translateY(-4px) scale(1.06); }
.hp-home .eco-activity-icon-card:hover .eco-activity-card-icon::after { border-color: rgba(14, 124, 134, .45); }
.hp-home .eco-activity-icon-card strong { transition: color .3s; }
.hp-home .eco-activity-icon-card:hover strong { color: var(--hp-teal); }

/* ---------- Sürüşdürdükcə görünmə ---------- */
.hp-js .hp-reveal {
  opacity: 0; transform: translateY(34px);
  transition: opacity .8s var(--hp-ease), transform .8s var(--hp-ease);
  transition-delay: var(--hp-delay, 0s);
}
.hp-js .hp-reveal.hp-from-left { transform: translateX(-40px); }
.hp-js .hp-reveal.hp-from-right { transform: translateX(40px); }
.hp-js .hp-reveal.hp-zoom { transform: scale(.92); }
.hp-js .hp-reveal.hp-in { opacity: 1; transform: none; }

/* ---------- Keyframes ---------- */
@keyframes hp-rise { from { opacity: 0; transform: translateY(30px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes hp-grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes hp-sweep { 0%, 100% { transform: translateX(-30%); } 50% { transform: translateX(30%); } }
@keyframes hp-shine { 0% { left: -120%; } 35%, 100% { left: 140%; } }
@keyframes hp-float-up {
  0% { transform: translate(0, 0) scale(.6); opacity: 0; }
  10% { opacity: .8; }
  90% { opacity: .5; }
  100% { transform: translate(var(--hp-drift, 30px), -110vh) scale(1); opacity: 0; }
}
@keyframes hp-wheel { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(12px); opacity: 0; } 100% { opacity: 0; } }
@keyframes hp-gradient { to { background-position: -200% 0; } }
@keyframes hp-blob { from { transform: translate(0, 0) scale(1); } to { transform: translate(-40px, 30px) scale(1.15); } }
@keyframes hp-kenburns { from { transform: scale(1); } to { transform: scale(1.08) translate(-1%, -1%); } }
@keyframes hp-pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .35; transform: scale(.7); } }
@keyframes hp-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes hp-spin { to { transform: rotate(360deg); } }

/* Hərəkəti azaltmaq istəyən istifadəçilər üçün */
@media (prefers-reduced-motion: reduce) {
  .hp-home *, .hp-home *::before, .hp-home *::after { animation: none !important; transition: none !important; }
  .hp-js .hp-reveal { opacity: 1 !important; transform: none !important; }
  .hp-particles, .hp-scroll-cue { display: none; }
}
@media (max-width: 767px) {
  .hp-scroll-cue { display: none; }
  .hp-home .eco-news-weather::before, .hp-home .eco-activity-icons-section::before { display: none; }
}
