/* =========================================
   NAPELEMEK – ANIMÁLT KATEGÓRIAFEJLÉC
   ========================================= */

.solar-category-hero {
    position: relative;
    width: 100%;
    max-width: none;
    height: clamp(620px, 72vh, 760px);
    margin: 0;

    overflow: hidden;
    isolation: isolate;

    border-radius: 0;

    background: #17283a;
    box-shadow: 0 32px 70px rgba(17, 33, 48, 0.18);
}


/* Háttérkép */

.solar-category-hero__image {
    position: absolute;
    z-index: -5;
    inset: 0;
}

.solar-category-hero__image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center top;
    filter:
        brightness(0.62)
        saturate(0.78)
        contrast(1.04);
    transform: scale(1.025);
}


/* Sötétítés a szöveg mögött */

.solar-category-hero__overlay {
    position: absolute;
    z-index: -2;
    inset: 0;
    background:
        linear-gradient(
            90deg,
            rgba(10, 25, 40, 0.88) 0%,
            rgba(10, 25, 40, 0.68) 34%,
            rgba(10, 25, 40, 0.12) 70%,
            rgba(10, 25, 40, 0.05) 100%
        ),
        linear-gradient(
            0deg,
            rgba(7, 22, 35, 0.48) 0%,
            transparent 55%
        );
}


/* =========================================
   FELKELŐ NAP
   ========================================= */

.solar-category-hero__sun {
    position: absolute;
    z-index: -3;
    top: 4%;
    right: 10%;
    width: clamp(100px, 11vw, 170px);
    aspect-ratio: 1;
    opacity: 0;
    transform: translateY(120px) scale(0.62);
}

.solar-category-hero__sun-glow,
.solar-category-hero__sun-core,
.solar-category-hero__sun-rays {
    position: absolute;
    border-radius: 50%;
}

.solar-category-hero__sun-glow {
    inset: -60%;
    background:
        radial-gradient(
            circle,
            rgba(255, 191, 74, 0.48) 0%,
            rgba(255, 183, 58, 0.17) 38%,
            transparent 68%
        );
    filter: blur(8px);
}

.solar-category-hero__sun-core {
    inset: 29%;
    background:
        radial-gradient(
            circle at 38% 35%,
            #fff9ce 0%,
            #ffd96a 34%,
            #ffab35 72%,
            #f47d20 100%
        );
    box-shadow:
        0 0 26px rgba(255, 189, 68, 0.9),
        0 0 80px rgba(255, 168, 45, 0.55);
}

.solar-category-hero__sun-rays {
    inset: 5%;
    background:
        repeating-conic-gradient(
            from 0deg,
            rgba(255, 193, 83, 0.9) 0deg 4deg,
            transparent 4deg 15deg
        );

    -webkit-mask:
        radial-gradient(
            circle,
            transparent 0 38%,
            #000 40% 57%,
            transparent 59%
        );

    mask:
        radial-gradient(
            circle,
            transparent 0 38%,
            #000 40% 57%,
            transparent 59%
        );
}


/* =========================================
   PANEL FÉNYE
   ========================================= */

.solar-category-hero__panel {
    position: absolute;
    z-index: -1;
    top: 20%;
    left: 14%;
    width: 74%;
    height: 57%;
    overflow: hidden;
    opacity: 0;
    clip-path:
        polygon(
            0 0,
            76% 15%,
            100% 100%,
            19% 84%
        );
    background:
        linear-gradient(
            135deg,
            rgba(28, 220, 231, 0.04),
            rgba(28, 220, 231, 0.18)
        );
    filter: drop-shadow(
        0 0 15px rgba(28, 215, 224, 0.45)
    );
}

.solar-category-hero__panel-light {
    position: absolute;
    inset: -25%;
    background:
        linear-gradient(
            105deg,
            transparent 34%,
            rgba(168, 249, 255, 0.06) 42%,
            rgba(207, 255, 255, 0.68) 50%,
            rgba(93, 231, 240, 0.13) 58%,
            transparent 66%
        );
    transform: translateX(-115%);
}


/* =========================================
   TARTALOMKÁRTYA
   ========================================= */

.solar-category-hero__container {
    position: relative;
    width: calc(100% - 48px);
    max-width: 1680px;
    height: 100%;
    margin-right: auto;
    margin-left: auto;
}
@media (max-width: 900px) {
    .solar-category-hero__container {
        width: 100%;
        max-width: none;
    }
}

.solar-category-hero__content {
    position: absolute;
    z-index: 4;
    bottom: clamp(38px, 6vh, 68px);
    left: 0;
    width: min(650px, calc(100% - 32px));
    padding: clamp(28px, 4vw, 48px);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 26px;
    background:
        linear-gradient(
            135deg,
            rgba(18, 39, 56, 0.86),
            rgba(18, 39, 56, 0.64)
        );
    box-shadow: 0 24px 55px rgba(0, 0, 0, 0.24);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    opacity: 0;
    transform: translateY(28px);
}

.solar-category-hero__breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 26px;
    color: rgba(255, 255, 255, 0.58);
    font-size: 0.78rem;
}

.solar-category-hero__breadcrumb a {
    color: rgba(255, 255, 255, 0.72);
    text-decoration: none;
    transition: color 0.2s ease;
}

.solar-category-hero__breadcrumb a:hover {
    color: #ffffff;
}

.solar-category-hero__eyebrow {
    display: inline-flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 15px;
    color: #9ef2ee;
    font-size: 0.76rem;
    font-weight: 750;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.solar-category-hero__eyebrow > span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #32d7d1;
    box-shadow: 0 0 15px rgba(50, 215, 209, 0.75);
}

.solar-category-hero__content h1 {
    max-width: 590px;
    margin: 0 0 20px;
    color: #ffffff;
    font-size: clamp(2.35rem, 4.3vw, 4.35rem);
    font-weight: 650;
    line-height: 0.98;
    letter-spacing: -0.045em;
}

.solar-category-hero__content h1 span {
    display: block;
    margin-top: 10px;
    color: rgba(255, 255, 255, 0.67);
    font-size: 0.64em;
    font-weight: 450;
    line-height: 1.1;
    letter-spacing: -0.025em;
}

.solar-category-hero__content > p {
    max-width: 530px;
    margin: 0;
    color: rgba(255, 255, 255, 0.75);
    font-size: clamp(0.98rem, 1.25vw, 1.08rem);
    line-height: 1.7;
}


/* Gombok */

.solar-category-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 22px;
    align-items: center;
    margin-top: 28px;
}

.solar-category-hero .button--light {
    color: #14283a;
    background: #ffffff;
    border-color: #ffffff;
}

.solar-category-hero .button--light:hover {
    color: #ffffff;
    background: #1cb6b5;
    border-color: #1cb6b5;
}

.solar-category-hero__text-link {
    display: inline-flex;
    gap: 9px;
    align-items: center;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
}

.solar-category-hero__text-link span {
    transition: transform 0.2s ease;
}

.solar-category-hero__text-link:hover {
    color: #ffffff;
}

.solar-category-hero__text-link:hover span {
    transform: translateX(4px);
}


/* =========================================
   TERMELÉSI ÁLLAPOT
   ========================================= */

.solar-production {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 13px;
    align-items: center;
    margin-top: 30px;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.13);
}

.solar-production__icon {
    display: inline-flex;
    width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #8bf3ed;
    background: rgba(70, 223, 217, 0.12);
}

.solar-production__icon svg {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linejoin: round;
}

.solar-production__text {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.solar-production__text small {
    color: rgba(255, 255, 255, 0.52);
    font-size: 0.7rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.solar-production__text strong {
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 700;
}

.solar-production__bars {
    display: flex;
    gap: 4px;
    height: 28px;
    align-items: end;
}

.solar-production__bars i {
    width: 4px;
    height: 26%;
    border-radius: 4px;
    background: #5ee6df;
    opacity: 0.28;
}


/* Görgetésjelző */

.solar-category-hero__scroll {
    position: absolute;
    z-index: 5;
    right: 30px;
    bottom: 32px;
    display: flex;
    gap: 12px;
    align-items: center;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-decoration: none;
    text-transform: uppercase;
}

.solar-category-hero__scroll i {
    position: relative;
    width: 28px;
    height: 44px;
    border: 1px solid rgba(255, 255, 255, 0.37);
    border-radius: 999px;
}

.solar-category-hero__scroll i::after {
    position: absolute;
    top: 8px;
    left: 50%;
    width: 4px;
    height: 7px;
    border-radius: 999px;
    content: "";
    background: #ffffff;
    transform: translateX(-50%);
}


/* =========================================
   ANIMÁCIÓK INDÍTÁSA
   ========================================= */

.solar-category-hero.is-active
.solar-category-hero__image img {
    animation:
        solar-daybreak 2.6s ease-out forwards;
}

.solar-category-hero.is-active
.solar-category-hero__sun {
    animation:
        solar-rise 1.9s cubic-bezier(0.22, 1, 0.36, 1)
        0.15s forwards;
}

.solar-category-hero.is-active
.solar-category-hero__sun-rays {
    animation:
        solar-rays 14s linear 1.7s infinite;
}

.solar-category-hero.is-active
.solar-category-hero__content {
    animation:
        solar-content-in 0.85s ease-out 0.35s forwards;
}

.solar-category-hero.is-active
.solar-category-hero__panel {
    animation:
        solar-panel-on 1s ease-out 1.65s forwards;
}

.solar-category-hero.is-active
.solar-category-hero__panel-light {
    animation:
        solar-panel-scan 1.8s ease-in-out 1.85s forwards;
}

.solar-category-hero.is-producing
.solar-production__bars i {
    opacity: 1;
    animation:
        solar-production-bar 1.15s ease-in-out infinite;
}

.solar-category-hero.is-producing
.solar-production__bars i:nth-child(2) {
    animation-delay: 0.14s;
}

.solar-category-hero.is-producing
.solar-production__bars i:nth-child(3) {
    animation-delay: 0.28s;
}

.solar-category-hero.is-producing
.solar-production__bars i:nth-child(4) {
    animation-delay: 0.42s;
}


@keyframes solar-daybreak {
    from {
        filter:
            brightness(0.62)
            saturate(0.78)
            contrast(1.04);
        transform: scale(1.025);
    }

    to {
        filter:
            brightness(0.94)
            saturate(1.03)
            contrast(1.02);
        transform: scale(1);
    }
}

@keyframes solar-rise {
    from {
        opacity: 0;
        transform: translateY(120px) scale(0.62);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes solar-rays {
    to {
        transform: rotate(360deg);
    }
}

@keyframes solar-content-in {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes solar-panel-on {
    from {
        opacity: 0;
    }

    to {
        opacity: 0.82;
    }
}

@keyframes solar-panel-scan {
    from {
        transform: translateX(-115%);
    }

    to {
        transform: translateX(115%);
    }
}

@keyframes solar-production-bar {
    0%,
    100% {
        height: 25%;
        opacity: 0.45;
    }

    50% {
        height: 100%;
        opacity: 1;
    }
}


/* =========================================
   MOBIL
   ========================================= */

@media (max-width: 900px) {
    .solar-category-hero {
        height: 690px;
        border-radius: 0 0 26px 26px;
    }

    .solar-category-hero__image img {
        object-position: 54% top;
    }

    .solar-category-hero__content {
        left: 20px;
        bottom: 24px;
        width: calc(100% - 40px);
    }

    .solar-category-hero__panel {
        display: none;
    }

    .solar-category-hero__sun {
        top: 5%;
        right: 7%;
    }

    .solar-category-hero__scroll {
        display: none;
    }
}

@media (max-width: 600px) {
    .solar-category-hero {
        height: 720px;
    }

    .solar-category-hero__content {
        padding: 25px 22px;
        border-radius: 21px;
    }

    .solar-category-hero__breadcrumb {
        margin-bottom: 20px;
    }

    .solar-category-hero__actions {
        gap: 16px;
        align-items: stretch;
    }

    .solar-category-hero__actions .button {
        width: 100%;
        justify-content: center;
    }

    .solar-category-hero__text-link {
        justify-content: center;
    }
}


/* Mozgáscsökkentési beállítás */

@media (prefers-reduced-motion: reduce) {
    .solar-category-hero__image img,
    .solar-category-hero__sun,
    .solar-category-hero__content,
    .solar-category-hero__panel,
    .solar-category-hero__panel-light,
    .solar-production__bars i {
        animation: none !important;
        transition: none !important;
    }

    .solar-category-hero__image img {
        filter:
            brightness(0.94)
            saturate(1.03);
        transform: none;
    }

    .solar-category-hero__sun,
    .solar-category-hero__content,
    .solar-category-hero__panel {
        opacity: 1;
        transform: none;
    }
}

/* A pontatlan panel-overlay kikapcsolása */
.solar-category-hero__panel {
    display: none;
}


