/* =========================================================
   BULGARIAN EMPIRE
   AION 2 — CLASSES PAGE
========================================================= */


/* =========================================================
   GLOBAL
========================================================= */

.classes-hero,
.class-details {
    position: relative;
    width: 100%;
}


/* =========================================================
   CLASSES HERO
========================================================= */

.classes-hero {

    position: relative;

    min-height: 900px;
    height: 100vh;

    max-height: 1100px;

    overflow: hidden;

    background:
        radial-gradient(
            circle at 50% 45%,
            rgba(18, 184, 237, 0.08),
            transparent 45%
        ),
        #05080f;

    isolation: isolate;
}


/* =========================================================
   HERO BACKGROUND LAYERS
========================================================= */

.classes-hero-background {

    position: absolute;
    inset: -4%;

    width: 108%;
    height: 108%;

    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;

    pointer-events: none;

    transform: scale(1.04);

    filter:
        brightness(0.82)
        saturate(1.08);

    transition:
        opacity 1.8s cubic-bezier(.22,.61,.36,1),
        transform 2.4s cubic-bezier(.22,.61,.36,1),
        filter 1.8s ease;

}


/* =========================================================
   CURRENT BACKGROUND
========================================================= */

.classes-hero-background.bg-current {

    opacity: 1;

    z-index: 0;

}


/* =========================================================
   NEXT BACKGROUND
========================================================= */

.classes-hero-background.bg-next {

    opacity: 0;

    z-index: 1;

    transform:
        scale(1.12)
        translateX(2%);

}


/* =========================================================
   ACTIVE TRANSITION
========================================================= */

.classes-hero.is-changing
.classes-hero-background.bg-current {

    opacity: 0;

    transform:
        scale(1.12)
        translateX(-2%);

    filter:
        brightness(0.65)
        saturate(1.25)
        blur(2px);

}


.classes-hero.is-changing
.classes-hero-background.bg-next {

    opacity: 1;

    transform:
        scale(1.04)
        translateX(0);

    filter:
        brightness(0.82)
        saturate(1.08)
        blur(0);

}

/* =========================================================
   CLASS TRANSITION WAVE
========================================================= */

.classes-wave {

    position: absolute;

    top: -20%;
    left: -15%;

    width: 130%;
    height: 140%;

    z-index: 4;

    pointer-events: none;

    opacity: 0;

    overflow: hidden;

    background:
        radial-gradient(
            ellipse at 50% 100%,
            rgba(40, 212, 255, 0.55) 0%,
            rgba(40, 212, 255, 0.22) 25%,
            rgba(40, 212, 255, 0.05) 48%,
            transparent 70%
        );

    filter: blur(18px);

    transform:
        translateY(110%)
        rotate(-4deg)
        scaleX(1.15);

}


/* =========================================================
   ACTIVE WAVE
========================================================= */

.classes-wave.wave-active {

    animation:
        classOceanWave
        1.8s
        cubic-bezier(.16,.84,.28,1)
        forwards;

}


/* =========================================================
   OCEAN / WATER FLOW
========================================================= */

@keyframes classOceanWave {

    0% {

        opacity: 0;

        transform:
            translateY(110%)
            rotate(-4deg)
            scaleX(1.15);

    }


    12% {

        opacity: 0.35;

    }


    30% {

        opacity: 0.65;

        transform:
            translateY(65%)
            rotate(-2deg)
            scaleX(1.25);

    }


    48% {

        opacity: 0.45;

        transform:
            translateY(25%)
            rotate(2deg)
            scaleX(1.1);

    }


    65% {

        opacity: 0.28;

        transform:
            translateY(-5%)
            rotate(-1deg)
            scaleX(1.18);

    }


    82% {

        opacity: 0.12;

        transform:
            translateY(-45%)
            rotate(2deg)
            scaleX(1.05);

    }


    100% {

        opacity: 0;

        transform:
            translateY(-115%)
            rotate(0deg)
            scaleX(1);

    }

}


/* =========================================================
   BACKGROUND ATMOSPHERE
========================================================= */

.classes-hero-background::before {

    content: "";

    position: absolute;

    inset: 0;

    background:
        radial-gradient(
            ellipse at 68% 48%,
            rgba(18, 184, 237, 0.18),
            transparent 40%
        );

    pointer-events: none;
}


.classes-hero-background::after {

    content: "";

    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            90deg,
            rgba(3, 7, 14, 0.95) 0%,
            rgba(3, 7, 14, 0.65) 28%,
            rgba(3, 7, 14, 0.20) 58%,
            rgba(3, 7, 14, 0.72) 100%
        );

    pointer-events: none;
}


/* =========================================================
   HERO OVERLAY
========================================================= */

.classes-hero-overlay {

    position: absolute;

    inset: 0;

    z-index: 2;

    pointer-events: none;

    background:

        linear-gradient(
            to bottom,
            rgba(3, 6, 12, 0.45) 0%,
            transparent 25%,
            transparent 65%,
            rgba(3, 6, 12, 0.95) 100%
        );

}


/* =========================================================
   HERO CONTENT
========================================================= */

.classes-hero-content {

    position: relative;

    z-index: 5;

    width: 100%;
    height: 100%;

    max-width: 1500px;

    margin: 0 auto;

    padding:
        140px
        70px
        220px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 40px;
}


/* =========================================================
   HERO TEXT
========================================================= */

.classes-hero-text {

    position: relative;

    z-index: 10;

    width: 48%;

    margin-top: -60px;
}


.classes-eyebrow {

    margin: 0 0 18px;

    color:
        rgba(18, 184, 237, 0.85);

    font-size: 14px;

    font-weight: 900;

    letter-spacing: 5px;

    text-transform: uppercase;

    text-shadow:
        0 0 15px rgba(18, 184, 237, 0.35);
}


.classes-hero-text h1 {

    margin: 0;

    color: #ffffff;

    font-size: clamp(
        64px,
        7vw,
        118px
    );

    font-weight: 900;

    line-height: 0.95;

    letter-spacing: 4px;

    text-transform: uppercase;

    text-shadow:

        0 2px 2px rgba(0, 0, 0, 0.7),

        0 0 20px rgba(18, 184, 237, 0.20),

        0 0 60px rgba(18, 184, 237, 0.10);
}


.classes-hero-description {

    max-width: 580px;

    margin:
        30px 0 0;

    color:
        rgba(235, 242, 248, 0.78);

    font-size: 18px;

    font-weight: 500;

    line-height: 1.8;

    letter-spacing: 0.4px;
}


/* =========================================================
   CHARACTER
========================================================= */

.classes-character {

    position: absolute;

    right: 2%;

    bottom: 150px;

    width: 58%;

    height: 78%;

    z-index: 4;

    display: flex;

    align-items: flex-end;

    justify-content: center;

    pointer-events: none;
}


.classes-character::before {

    content: "";

    position: absolute;

    width: 70%;

    height: 65%;

    right: 8%;

    bottom: 5%;

    background:
        radial-gradient(
            ellipse,
            rgba(18, 184, 237, 0.22),
            transparent 65%
        );

    filter:
        blur(35px);

    opacity: 0.8;
}


.classes-character img {

    position: relative;

    z-index: 2;

    width: 100%;

    height: 100%;

    object-fit: contain;

    object-position: center bottom;

    filter:

        brightness(0.98)
        contrast(1.06)
        saturate(0.95)

        drop-shadow(
            0 0 18px
            rgba(18, 184, 237, 0.12)
        );

    transform:
        translateY(10px)
        scale(1.03);

    transition:

        opacity 0.7s ease,

        transform 1s cubic-bezier(
            0.22,
            1,
            0.36,
            1
        ),

        filter 0.7s ease;
}


/* =========================================================
   CLASS BADGES CONTAINER
========================================================= */

.class-badges {

    position: absolute;

    z-index: 20;

    left: 50%;

    bottom: 58px;

    transform:
        translateX(-50%);

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 15px;

    padding: 12px 18px;

    background:
        linear-gradient(
            180deg,
            rgba(6, 13, 23, 0.72),
            rgba(3, 7, 13, 0.92)
        );

    border:
        1px solid
        rgba(18, 184, 237, 0.20);

    border-radius: 7px;

    box-shadow:

        0 15px 45px
        rgba(0, 0, 0, 0.55),

        0 0 30px
        rgba(18, 184, 237, 0.06);

    backdrop-filter:
        blur(14px);

    -webkit-backdrop-filter:
        blur(14px);
}


/* =========================================================
   BADGE
========================================================= */

.class-badge {

    position: relative;

    width: 68px;
    height: 68px;

    padding: 0;

    border: 1px solid
        rgba(255, 255, 255, 0.12);

    border-radius: 4px;

    overflow: hidden;

    background:
        rgba(5, 9, 16, 0.9);

    cursor: pointer;

    opacity: 0.52;

    transform:
        translateY(0)
        scale(1);

    transition:

        opacity 0.3s ease,

        transform 0.3s ease,

        border-color 0.3s ease,

        box-shadow 0.3s ease,

        filter 0.3s ease;
}


.class-badge img {

    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    filter:
        grayscale(25%)
        brightness(0.78)
        saturate(0.75);

    transition:
        filter 0.3s ease,
        transform 0.4s ease;
}


/* =========================================================
   BADGE HOVER
========================================================= */

.class-badge:hover {

    opacity: 1;

    transform:
        translateY(-7px)
        scale(1.08);

    border-color:
        rgba(18, 184, 237, 0.75);

    box-shadow:

        0 0 12px
        rgba(18, 184, 237, 0.45),

        0 0 28px
        rgba(18, 184, 237, 0.20);
}


.class-badge:hover img {

    filter:
        grayscale(0)
        brightness(1.05)
        saturate(1.05);

    transform:
        scale(1.08);
}


/* =========================================================
   ACTIVE BADGE
========================================================= */

.class-badge.active {

    opacity: 1;

    border-color:
        rgba(18, 184, 237, 0.95);

    box-shadow:

        0 0 10px
        rgba(18, 184, 237, 0.55),

        0 0 28px
        rgba(18, 184, 237, 0.28),

        inset 0 0 15px
        rgba(18, 184, 237, 0.12);
}


.class-badge.active img {

    filter:
        grayscale(0)
        brightness(1.08)
        saturate(1.1);
}


/* =========================================================
   ACTIVE BADGE ENERGY LINE
========================================================= */

.class-badge.active::after {

    content: "";

    position: absolute;

    left: 8px;
    right: 8px;

    bottom: 0;

    height: 2px;

    background:
        linear-gradient(
            90deg,
            transparent,
            #12b8ed,
            transparent
        );

    box-shadow:
        0 0 10px
        rgba(18, 184, 237, 0.8);
}


/* =========================================================
   AUTO INDICATOR
========================================================= */

.classes-auto-indicator {

    position: absolute;

    z-index: 20;

    right: 45px;

    bottom: 70px;

    display: flex;

    align-items: center;

    gap: 8px;

    color:
        rgba(255, 255, 255, 0.45);

    font-size: 10px;

    font-weight: 800;

    letter-spacing: 2px;
}


.classes-auto-dot {

    width: 7px;
    height: 7px;

    border-radius: 50%;

    background:
        #12b8ed;

    box-shadow:
        0 0 8px
        rgba(18, 184, 237, 0.9);

    animation:
        autoPulse 2s
        ease-in-out
        infinite;
}


@keyframes autoPulse {

    0%,
    100% {
        opacity: 0.45;
        transform: scale(0.8);
    }

    50% {
        opacity: 1;
        transform: scale(1.15);
    }

}


/* =========================================================
   CLASS DETAILS
========================================================= */

.class-details {

    position: relative;

    background:
        #05080f;

    overflow: hidden;
}


/* =========================================================
   DETAIL ARTICLE
========================================================= */

.class-detail {

    position: relative;

    min-height: 850px;

    padding:
        130px 7%;

    display: flex;

    align-items: center;

    border-top:
        1px solid
        rgba(18, 184, 237, 0.08);

    background:

        radial-gradient(
            circle at 85% 50%,
            rgba(18, 184, 237, 0.055),
            transparent 35%
        ),

        linear-gradient(
            180deg,
            #060a12,
            #04070d
        );
}


/* alternating atmosphere */

.class-detail:nth-child(even) {

    background:

        radial-gradient(
            circle at 15% 50%,
            rgba(110, 82, 190, 0.05),
            transparent 35%
        ),

        linear-gradient(
            180deg,
            #050810,
            #03060b
        );
}


/* =========================================================
   DETAIL INNER
========================================================= */

.class-detail-inner {

    width: 100%;

    max-width: 1250px;

    margin: 0 auto;
}


/* =========================================================
   DETAIL TEXT
========================================================= */

.class-detail-eyebrow {

    margin: 0 0 15px;

    color:
        rgba(18, 184, 237, 0.75);

    font-size: 12px;

    font-weight: 900;

    letter-spacing: 4px;

    text-transform: uppercase;
}


.class-detail h2 {

    margin: 0;

    color: #ffffff;

    font-size: clamp(
        52px,
        6vw,
        90px
    );

    font-weight: 900;

    line-height: 1;

    letter-spacing: 2px;

    text-transform: uppercase;

    text-shadow:
        0 0 25px
        rgba(18, 184, 237, 0.12);
}


.class-detail-description {

    max-width: 750px;

    margin:
        28px 0 60px;

    color:
        rgba(230, 238, 245, 0.72);

    font-size: 18px;

    line-height: 1.8;
}


/* =========================================================
   DETAIL CONTENT GRID
========================================================= */

.class-detail-content {

    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 25px;
}


.class-detail-content > div {

    padding: 28px;

    min-height: 170px;

    background:
        linear-gradient(
            145deg,
            rgba(14, 24, 36, 0.72),
            rgba(5, 10, 18, 0.72)
        );

    border:
        1px solid
        rgba(18, 184, 237, 0.12);

    border-radius: 5px;

    transition:
        transform 0.3s ease,
        border-color 0.3s ease,
        box-shadow 0.3s ease;
}


.class-detail-content > div:hover {

    transform:
        translateY(-5px);

    border-color:
        rgba(18, 184, 237, 0.35);

    box-shadow:
        0 15px 35px
        rgba(0, 0, 0, 0.25),

        0 0 25px
        rgba(18, 184, 237, 0.06);
}


.class-detail-content h3 {

    margin:
        0 0 12px;

    color:
        #12b8ed;

    font-size: 13px;

    font-weight: 900;

    letter-spacing: 2px;

    text-transform: uppercase;
}


.class-detail-content p {

    margin: 0;

    color:
        rgba(235, 242, 248, 0.68);

    font-size: 15px;

    line-height: 1.7;
}


/* =========================================================
   RESPONSIVE — LARGE
========================================================= */

@media (max-width: 1400px) {

    .classes-hero-content {

        padding-left: 55px;
        padding-right: 55px;
    }


    .classes-character {

        right: -3%;

        width: 60%;
    }


    .class-badge {

        width: 62px;
        height: 62px;
    }

}


/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

    .classes-hero-background,
    .classes-character img,
    .class-badge,
    .class-badge img,
    .class-detail-content > div {

        transition: none !important;
    }


    .classes-auto-dot {

        animation: none;
    }

}

/* =========================================================
   FACTION COLORS
========================================================= */

/* BLUE — Templar / Gladiator */

.classes-hero.faction-blue
.classes-wave {

    background:
        radial-gradient(
            ellipse at 50% 100%,
            rgba(35, 150, 255, 0.65),
            rgba(25, 110, 255, 0.20) 35%,
            transparent 70%
        );

}


/* GREEN — Assassin / Ranger */

.classes-hero.faction-green
.classes-wave {

    background:
        radial-gradient(
            ellipse at 50% 100%,
            rgba(70, 255, 145, 0.60),
            rgba(35, 190, 105, 0.20) 35%,
            transparent 70%
        );

}


/* GOLD — Chanter / Cleric */

.classes-hero.faction-gold
.classes-wave {

    background:
        radial-gradient(
            ellipse at 50% 100%,
            rgba(255, 211, 105, 0.65),
            rgba(218, 166, 70, 0.22) 35%,
            transparent 70%
        );

}


/* VIOLET — Spiritmaster / Sorcerer */

.classes-hero.faction-violet
.classes-wave {

    background:
        radial-gradient(
            ellipse at 50% 100%,
            rgba(178, 95, 255, 0.70),
            rgba(115, 55, 210, 0.25) 35%,
            transparent 70%
        );

}

/* =========================================================
   CLASS BACK TO TOP
========================================================= */

.class-back-to-top {

    width: 100%;

    margin-top: 30px;

    text-align: left;

}


.class-back-to-top-button {

    display: inline-flex;

    align-items: center;

    gap: 8px;

    padding: 9px 16px;

    background: rgba(5, 12, 22, 0.75);

    border: 1px solid rgba(18, 184, 237, 0.30);

    color: #cfdce8;

    font-family: inherit;

    font-size: 11px;

    letter-spacing: 1px;

    cursor: pointer;

    transition:
        color 0.3s ease,
        border-color 0.3s ease,
        background 0.3s ease,
        box-shadow 0.3s ease;

}


.class-back-to-top-button:hover {

    color: #ffffff;

    border-color: #12b8ed;

    background: rgba(18, 184, 237, 0.08);

    box-shadow:
        0 0 15px rgba(18, 184, 237, 0.15);

}
/* =========================================================
   BACK TO TOP — FINAL POSITIONING
========================================================= */

/* Бутоните между класовете */

.class-back-to-top {

    width: 100% !important;

    display: flex !important;

    justify-content: center !important;

    align-items: center !important;

    margin: 40px 0 0 0 !important;

    padding: 0 !important;

    position: relative;

    left: auto;

    right: auto;

}


/* Самият бутон */

.class-back-to-top-button {

    display: inline-flex !important;

    align-items: center;

    justify-content: center;

    margin: 0 auto !important;

}


/* =========================================================
   MAIN BACK TO TOP
========================================================= */

.back-to-top-wrapper {

    width: 100% !important;

    display: flex !important;

    justify-content: center !important;

    align-items: center !important;

    margin: 50px auto !important;

    padding: 0 !important;

    position: relative !important;

    left: auto !important;

    right: auto !important;

}


.back-to-top {

    margin: 0 auto !important;

    display: inline-flex !important;

    align-items: center;

    justify-content: center;

}


/* =========================================================
   CLASS SKILLS DATABASE
========================================================= */

.class-skills-database {

    width: min(1200px, 92%);

    margin: 80px auto 100px;

}


/* =========================================================
   DATABASE TITLE
========================================================= */

.class-skills-database-title {

    text-align: center;

    margin-bottom: 40px;

    color: #ffffff;

    letter-spacing: 3px;

}

.class-skills-database-title span {

    display: block;

    font-size: 12px;

    color: #888;

    margin-bottom: 8px;

}

.class-skills-database-title strong {

    font-size: 28px;

    color: #d8b45a;

}


/* =========================================================
   SECTION
========================================================= */

.skill-section {

    position: relative;

    margin-bottom: 30px;

    padding: 24px;

    border: 1px solid rgba(255,255,255,0.08);

    background: rgba(10,10,14,0.78);

    backdrop-filter: blur(8px);

}


/* =========================================================
   SECTION HEADER
========================================================= */

.skill-section-header {

    display: flex;

    align-items: center;

    justify-content: space-between;

    margin-bottom: 22px;

}


.skill-section-title {

    margin: 0;

    font-size: 18px;

    letter-spacing: 2px;

}


.skill-section-count {

    min-width: 30px;

    height: 30px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 50%;

    font-size: 12px;

    font-weight: bold;

}


/* =========================================================
   ACTIVE — GREEN
========================================================= */

.skill-section-active {

    border-color:
        rgba(85,200,120,0.35);

    box-shadow:
        inset 0 0 30px
        rgba(85,200,120,0.035);

}

.skill-section-active
.skill-section-title {

    color: #55c878;

}

.skill-section-active
.skill-section-count {

    color: #55c878;

    border: 1px solid
        rgba(85,200,120,0.45);

    background:
        rgba(85,200,120,0.08);

}


/* =========================================================
   PASSIVE — BLUE
========================================================= */

.skill-section-passive {

    border-color:
        rgba(91,156,255,0.35);

    box-shadow:
        inset 0 0 30px
        rgba(91,156,255,0.035);

}

.skill-section-passive
.skill-section-title {

    color: #5b9cff;

}

.skill-section-passive
.skill-section-count {

    color: #5b9cff;

    border: 1px solid
        rgba(91,156,255,0.45);

    background:
        rgba(91,156,255,0.08);

}


/* =========================================================
   STIGMA — GOLD
========================================================= */

.skill-section-stigma {

    border-color:
        rgba(216,180,90,0.4);

    box-shadow:
        inset 0 0 30px
        rgba(216,180,90,0.04);

}

.skill-section-stigma
.skill-section-title {

    color: #d8b45a;

}

.skill-section-stigma
.skill-section-count {

    color: #d8b45a;

    border: 1px solid
        rgba(216,180,90,0.5);

    background:
        rgba(216,180,90,0.08);

}


/* =========================================================
   SKILL GRID
========================================================= */

.skill-grid {

    display: grid;

    grid-template-columns:
        repeat(auto-fill, minmax(95px, 1fr));

    gap: 18px;

}


/* =========================================================
   SKILL CARD
========================================================= */

.skill-card {

    position: relative;

    min-height: 125px;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: flex-start;

    padding: 10px;

    background:
        rgba(255,255,255,0.025);

    border:
        1px solid rgba(255,255,255,0.06);

    transition:
        transform 0.25s ease,
        border-color 0.25s ease,
        background 0.25s ease;

}


/* =========================================================
   ICON
========================================================= */

.skill-icon-wrapper {

    width: 64px;

    height: 64px;

    margin-bottom: 8px;

    position: relative;

}


.skill-icon {

    width: 64px;

    height: 64px;

    display: block;

    object-fit: cover;

}


/* =========================================================
   LEVEL
========================================================= */

.skill-required-level {

    font-size: 10px;

    color: #aaa;

    margin-bottom: 5px;

}


/* =========================================================
   NAME
========================================================= */

.skill-name {

    width: 100%;

    text-align: center;

    font-size: 11px;

    color: #ddd;

    line-height: 1.3;

}


/* =========================================================
   BASIC HOVER
========================================================= */

.skill-card:hover {

    transform:
        translateY(-4px);

    background:
        rgba(255,255,255,0.06);

}

.skill-section-active
.skill-card:hover {

    border-color:
        rgba(85,200,120,0.55);

}

.skill-section-passive
.skill-card:hover {

    border-color:
        rgba(91,156,255,0.55);

}

.skill-section-stigma
.skill-card:hover {

    border-color:
        rgba(216,180,90,0.6);

}

/* =========================================================
   SKILL TOOLTIP
========================================================= */

.skill-tooltip {
    position: fixed;

    width: 440px;
    max-width: calc(100vw - 30px);

    padding: 20px;

    background:
        linear-gradient(
            145deg,
            rgba(20, 23, 30, 0.98),
            rgba(8, 10, 15, 0.99)
        );

    border: 1px solid rgba(255,255,255,0.12);

    box-shadow:
        0 20px 60px rgba(0,0,0,0.65),
        0 0 30px rgba(0,0,0,0.35);

    color: #fff;

    z-index: 99999;

    opacity: 0;
    visibility: hidden;

    transform:
        translateY(8px)
        scale(0.96);

    transition:
        opacity 0.18s ease,
        transform 0.18s ease,
        border-color 0.18s ease;

    pointer-events: none;

    backdrop-filter: blur(12px);
}


/* =========================================================
   VISIBLE
========================================================= */

.skill-tooltip.visible {

    opacity: 1;

    visibility: visible;

    transform:
        translateY(0)
        scale(1);
}


/* =========================================================
   HEADER
========================================================= */

.skill-tooltip-header {

    display: flex;

    align-items: center;

    gap: 15px;
}


/* =========================================================
   LARGE ICON
========================================================= */

.skill-tooltip-icon {

    width: 110px;
    height: 110px;

    object-fit: cover;

    flex-shrink: 0;

    border-radius: 8px;

    border:
        1px solid
        rgba(255,255,255,0.2);

    box-shadow:
        0 6px 20px
        rgba(0,0,0,0.55);
}


/* =========================================================
   HEADING
========================================================= */

.skill-tooltip-heading {

    min-width: 0;
}


.skill-tooltip-type {

    margin-bottom: 5px;

    font-size: 10px;

    font-weight: 700;

    letter-spacing: 2px;
}


.skill-tooltip-name {

    font-size: 21px;

    font-weight: 700;

    color: #f2f2f2;

    line-height: 1.2;
}


/* =========================================================
   DIVIDER
========================================================= */

.skill-tooltip-divider {

    height: 1px;

    margin:
        18px 0;

    background:
        rgba(255,255,255,0.1);
}


/* =========================================================
   ENGLISH NAME
========================================================= */

.skill-tooltip-english {

    display: flex;

    justify-content: space-between;

    gap: 15px;

    margin-bottom: 12px;

    font-size: 12px;
}


.skill-tooltip-english span {

    color: #777;

    text-transform: uppercase;

    letter-spacing: 1px;
}


.skill-tooltip-english strong {

    color: #ddd;

    font-weight: 600;
}


/* =========================================================
   DESCRIPTION
========================================================= */

.skill-tooltip-description {

    color: #cfcfcf;

    font-size: 13px;

    line-height: 1.65;

    margin-bottom: 15px;
}


/* =========================================================
   REQUIRED LEVEL
========================================================= */

.skill-tooltip-level {

    display: inline-block;

    padding:
        5px 9px;

    margin-bottom: 18px;

    background:
        rgba(255,255,255,0.05);

    border:
        1px solid
        rgba(255,255,255,0.1);

    color: #aaa;

    font-size: 11px;

    border-radius: 4px;
}


/* =========================================================
   SPECIALIZATIONS
========================================================= */

.skill-tooltip-specializations {

    margin-top: 5px;
}


.skill-tooltip-specializations-title {

    margin-bottom: 10px;

    font-size: 11px;

    font-weight: 700;

    letter-spacing: 2px;

    color: #d8b45a;
}


.skill-tooltip-specialization {

    display: flex;

    align-items: flex-start;

    gap: 10px;

    padding:
        8px 0;

    border-top:
        1px solid
        rgba(255,255,255,0.06);
}


.skill-tooltip-specialization-level {

    flex-shrink: 0;

    min-width: 48px;

    color: #d8b45a;

    font-size: 13px;

    font-weight: 700;
}


.skill-tooltip-specialization-description {

    color: #bbb;

    font-size: 15px;

    line-height: 1.55;
}


/* =========================================================
   ACTIVE
========================================================= */

.skill-tooltip.tooltip-active {

    border-color:
        rgba(85,200,120,0.5);

    box-shadow:
        0 20px 60px rgba(0,0,0,0.65),
        0 0 30px rgba(85,200,120,0.12);
}


.skill-tooltip.tooltip-active
.skill-tooltip-type {

    color: #55c878;
}


/* =========================================================
   PASSIVE
========================================================= */

.skill-tooltip.tooltip-passive {

    border-color:
        rgba(91,156,255,0.5);

    box-shadow:
        0 20px 60px rgba(0,0,0,0.65),
        0 0 30px rgba(91,156,255,0.12);
}


.skill-tooltip.tooltip-passive
.skill-tooltip-type {

    color: #5b9cff;
}


/* =========================================================
   STIGMA
========================================================= */

.skill-tooltip.tooltip-stigma {

    border-color:
        rgba(216,180,90,0.55);

    box-shadow:
        0 20px 60px rgba(0,0,0,0.65),
        0 0 30px rgba(216,180,90,0.14);
}


.skill-tooltip.tooltip-stigma
.skill-tooltip-type {

    color: #d8b45a;
}

/* =========================================================
   TOOLTIP — ENGLISH NAME
========================================================= */

.skill-tooltip-english span {
    display: none;
}

.skill-tooltip-english-name {
    color: #f0d48a;
    font-size: 20px;
    font-weight: 700;
}
/* =========================================================
   TOOLTIP — ICON
========================================================= */

.skill-tooltip-icon {
    width: 96px;
    height: 96px;
    object-fit: cover;
    flex-shrink: 0;
    border-radius: 8px;
}


/* =========================================================
   TOOLTIP — DESCRIPTION
========================================================= */

.skill-tooltip-description {
    color: #e2e2e2;
    font-size: 17px;
    line-height: 1.7;
    margin-top: 18px;
    text-align: left;
}
/* =========================================================
   TOOLTIP — SKILL DETAILS
========================================================= */

.skill-tooltip-details {

    margin-top: 10px;

    padding-top: 12px;

    border-top:
        1px solid
        rgba(255,255,255,0.08);
}


.skill-tooltip-detail {

    display: flex;

    justify-content: space-between;

    align-items: center;

    gap: 20px;

    padding: 5px 0;

    font-size: 14px;

    line-height: 1.4;
}


.skill-tooltip-detail span {

    color: #888;

    font-weight: 600;
}


.skill-tooltip-detail strong {

    color: #e5d39a;

    font-weight: 700;

    text-align: right;
}
/* =========================================================
   TOOLTIP — SKILL STATS
========================================================= */

.skill-tooltip-stats {

    margin-top: 4px;

    padding-top: 12px;

    border-top:
        1px solid
        rgba(255,255,255,0.08);

    display: flex;

    flex-direction: column;

    gap: 8px;
}


/* =========================================================
   SINGLE STAT
========================================================= */

.skill-tooltip-stat {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;

    min-height: 22px;
}


/* =========================================================
   STAT LABEL
========================================================= */

.skill-tooltip-stat span {

    color: #888;

    font-size: 12px;

    font-weight: 600;

    letter-spacing: 1px;

    text-transform: uppercase;
}


/* =========================================================
   STAT VALUE
========================================================= */

.skill-tooltip-stat strong {

    color: #e8d18b;

    font-size: 14px;

    font-weight: 700;

    text-align: right;
}


/* =========================================================
   MP HIGHLIGHT
========================================================= */

.skill-tooltip-mp {

    color: #62b8ff !important;
}


/* =========================================================
   COOLDOWN HIGHLIGHT
========================================================= */

.skill-tooltip-cooldown {

    color: #d8b45a !important;
}
/* =========================================================
CASTING DURATION HIGHLIGHT
========================================================= */

.skill-tooltip-casting {

color: #c9a7ff !important;

}

/* =========================================================
   CLASS INFO TEXT - READ MORE
   ========================================================= */

.class-detail-content p.class-text-preview {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
    position: relative;
}


/* READ MORE BUTTON */

.class-read-more {
    display: none;
    margin-top: 10px;
    padding: 0;
    border: none;
    background: transparent;
    color: #19cfff;
    font-family: inherit;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    cursor: pointer;
    transition: color 0.2s ease;
}

.class-read-more:hover {
    color: #ffffff;
}


/* =========================================================
   CLASS TEXT MODAL
   ========================================================= */

.class-text-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 30px;

    background: rgba(0, 0, 0, 0.78);

    opacity: 0;
    visibility: hidden;

    transition:
        opacity 0.25s ease,
        visibility 0.25s ease;

    backdrop-filter: blur(6px);
}


/* OPEN */

.class-text-modal.active {
    opacity: 1;
    visibility: visible;
}


/* MODAL WINDOW */

.class-text-modal-content {
    position: relative;

    width: min(720px, 100%);
    max-height: min(75vh, 700px);

    overflow-y: auto;

    padding: 40px;

    background:
        linear-gradient(
            145deg,
            rgba(10, 22, 34, 0.98),
            rgba(4, 10, 17, 0.98)
        );

    border: 1px solid rgba(25, 207, 255, 0.25);

    box-shadow:
        0 25px 80px rgba(0, 0, 0, 0.65),
        0 0 35px rgba(0, 180, 255, 0.08);

    transform: translateY(20px) scale(0.98);

    transition:
        transform 0.25s ease;
}


.class-text-modal.active .class-text-modal-content {
    transform: translateY(0) scale(1);
}


/* MODAL TITLE */

.class-text-modal-title {
    margin: 0 45px 20px 0;

    color: #19cfff;

    font-family: inherit;
    font-size: 13px;
    font-weight: 700;

    letter-spacing: 2px;
    text-transform: uppercase;
}


/* MODAL TEXT */

.class-text-modal-body {
    margin: 0;

    color: #d7dde3;

    font-family: inherit;
    font-size: 20px;
    line-height: 1.9;
}


/* CLOSE BUTTON */

.class-text-modal-close {
    position: absolute;

    top: 15px;
    right: 18px;

    width: 35px;
    height: 35px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.03);

    color: #ffffff;

    font-size: 20px;
    line-height: 1;

    cursor: pointer;

    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease;
}


.class-text-modal-close:hover {
    background: rgba(25, 207, 255, 0.12);
    border-color: rgba(25, 207, 255, 0.4);
    color: #19cfff;
}

/* =========================================================
   CLASS COLOR THEMES
   ========================================================= */

.class-theme-blue {
    --class-color: #45c9ff;
    --class-glow: rgba(69, 201, 255, 0.55);
    --class-soft: rgba(69, 201, 255, 0.18);
}

.class-theme-green {
    --class-color: #68e6a0;
    --class-glow: rgba(104, 230, 160, 0.55);
    --class-soft: rgba(104, 230, 160, 0.18);
}

.class-theme-red {
    --class-color: #ff6878;
    --class-glow: rgba(255, 104, 120, 0.55);
    --class-soft: rgba(255, 104, 120, 0.18);
}

.class-theme-gold {
    --class-color: #e8c77a;
    --class-glow: rgba(232, 199, 122, 0.55);
    --class-soft: rgba(232, 199, 122, 0.18);
}
/* =========================================================
   CLASS TITLE EFFECT
   ========================================================= */

.class-detail-inner h2 {
    position: relative;
    display: inline-block;

    color: var(--class-color);

    text-shadow:
        0 0 8px var(--class-soft),
        0 0 18px var(--class-glow),
        0 0 40px var(--class-soft);

    transition:
        color 0.35s ease,
        text-shadow 0.35s ease;
}
.class-detail-inner h2::after {
    content: "";

    display: block;

    width: 65%;
    height: 2px;

    margin-top: 10px;

    background:
        linear-gradient(
            90deg,
            var(--class-color),
            rgba(255, 255, 255, 0.15),
            transparent
        );

    box-shadow:
        0 0 8px var(--class-glow),
        0 0 18px var(--class-soft);

    opacity: 0.9;
}
.class-detail-eyebrow {
    color: var(--class-color);

    text-shadow:
        0 0 8px var(--class-soft);

    transition:
        color 0.35s ease,
        text-shadow 0.35s ease;
}
.class-detail-description {
    border-left: 2px solid var(--class-color);

    padding-left: 16px;

    transition:
        border-color 0.35s ease;
}
.class-detail-inner h2:hover {
    text-shadow:
        0 0 8px var(--class-color),
        0 0 20px var(--class-glow),
        0 0 45px var(--class-soft);
}
/* =========================================================
   PURPLE CLASS THEME
   ========================================================= */

.class-theme-purple .class-detail-eyebrow {
    color: #c77dff;
    text-shadow:
        0 0 8px rgba(199, 125, 255, 0.45),
        0 0 18px rgba(157, 78, 221, 0.25);
}

.class-theme-purple h2 {
    color: #e0aaff;
    text-shadow:
        0 0 10px rgba(224, 170, 255, 0.45),
        0 0 25px rgba(157, 78, 221, 0.25);
}

.class-theme-purple .class-detail-description {
    color: #d8c4e8;
}

.class-theme-purple .class-detail-content h3 {
    color: #c77dff;
}

.class-theme-purple .class-detail-content {
    border-color: rgba(199, 125, 255, 0.18);
}
.class-theme-purple h2::after {
    content: "";
    display: block;
    width: 80px;
    height: 2px;
    margin-top: 12px;

    background: linear-gradient(
        90deg,
        transparent,
        #c77dff,
        #e0aaff,
        transparent
    );

    box-shadow:
        0 0 8px #c77dff,
        0 0 18px rgba(157, 78, 221, 0.7);
}
/* =========================================================
   CLASS COLOR THEMES
   ========================================================= */

.class-theme-blue {
    --class-color: #45c9ff;
    --class-glow: rgba(69, 201, 255, 0.55);
    --class-soft: rgba(69, 201, 255, 0.18);
}

.class-theme-green {
    --class-color: #68e6a0;
    --class-glow: rgba(104, 230, 160, 0.55);
    --class-soft: rgba(104, 230, 160, 0.18);
}

.class-theme-red {
    --class-color: #ff6878;
    --class-glow: rgba(255, 104, 120, 0.55);
    --class-soft: rgba(255, 104, 120, 0.18);
}

.class-theme-gold {
    --class-color: #e8c77a;
    --class-glow: rgba(232, 199, 122, 0.55);
    --class-soft: rgba(232, 199, 122, 0.18);
}

.class-theme-purple {
    --class-color: #c77dff;
    --class-glow: rgba(199, 125, 255, 0.55);
    --class-soft: rgba(157, 78, 221, 0.25);
}


/* =========================================================
   CLASS TITLE & DETAILS EFFECTS
   ========================================================= */

.class-detail-inner h2 {
    position: relative;
    display: inline-block;
    color: var(--class-color);
    text-shadow: 0 0 8px var(--class-soft), 0 0 18px var(--class-glow), 0 0 40px var(--class-soft);
    transition: color 0.35s ease, text-shadow 0.35s ease;
}

.class-detail-inner h2::after {
    content: "";
    display: block;
    width: 65%;
    height: 2px;
    margin-top: 10px;
    background: linear-gradient(90deg, var(--class-color), rgba(255, 255, 255, 0.15), transparent);
    box-shadow: 0 0 8px var(--class-glow), 0 0 18px var(--class-soft);
    opacity: 0.9;
}

.class-detail-eyebrow {
    color: var(--class-color);
    text-shadow: 0 0 8px var(--class-soft);
    transition: color 0.35s ease, text-shadow 0.35s ease;
}

.class-detail-description {
    border-left: 2px solid var(--class-color);
    padding-left: 16px;
    transition: border-color 0.35s ease;
}

.class-detail-inner h2:hover {
    text-shadow: 0 0 8px var(--class-color), 0 0 20px var(--class-glow), 0 0 45px var(--class-soft);
}

.class-theme-purple .class-detail-content h3 {
    color: #c77dff;
}

.class-theme-purple .class-detail-content {
    border-color: rgba(199, 125, 255, 0.18);
}


/* =========================================================
   RESPONSIVE — LARGE (max-width: 1400px)
   ========================================================= */

@media (max-width: 1400px) {
    .classes-hero-content {
        padding-left: 55px;
        padding-right: 55px;
    }

    .classes-character {
        right: -3%;
        width: 60%;
    }

    .class-badge {
        width: 62px;
        height: 62px;
    }
}


/* =========================================================
   RESPONSIVE — LAPTOP (max-width: 1100px)
   ========================================================= */

@media (max-width: 1100px) {
    .classes-hero {
        min-height: 820px;
    }

    .classes-hero-content {
        padding: 130px 35px 210px;
    }

    .classes-hero-text {
        width: 55%;
    }

    .classes-character {
        right: -8%;
        width: 65%;
    }

    .class-badges {
        gap: 10px;
        padding: 10px 13px;
    }

    .class-badge {
        width: 56px;
        height: 56px;
    }

    .classes-auto-indicator {
        display: none;
    }

    .class-detail {
        padding: 100px 5%;
    }
}


/* =========================================================
   RESPONSIVE — TABLET (max-width: 768px)
   ========================================================= */

@media (max-width: 768px) {
    .classes-hero {
        min-height: 780px;
        height: 100svh;
    }

    .classes-hero-content {
        padding: 120px 25px 190px;
        align-items: flex-start;
    }

    .classes-hero-text {
        width: 100%;
        margin-top: 40px;
        text-align: center;
    }

    .classes-hero-text h1 {
        font-size: clamp(52px, 14vw, 82px);
    }

    .classes-hero-description {
        margin-left: auto;
        margin-right: auto;
        font-size: 15px;
    }

    .classes-character {
        right: -18%;
        bottom: 135px;
        width: 90%;
        height: 62%;
        opacity: 0.72;
    }

    .classes-hero-background {
        background-position: 58% center;
    }

    .classes-hero-background::after {
        background: linear-gradient(180deg, rgba(3, 7, 14, 0.55), rgba(3, 7, 14, 0.35) 35%, rgba(3, 7, 14, 0.88) 85%, #05080f 100%);
    }

    .class-badges {
        left: 50%;
        transform: translateX(-50%);
        bottom: 30px;
        width: calc(100% - 25px);
        max-width: 520px;
        overflow-x: auto;
        justify-content: flex-start;
        padding: 10px 12px;
        scrollbar-width: none;
    }

    .class-badges::-webkit-scrollbar {
        display: none;
    }

    .class-badge {
        flex: 0 0 auto;
        width: 54px;
        height: 54px;
    }

    .class-detail {
        min-height: auto;
        padding: 90px 25px;
    }

    .class-detail h2 {
        font-size: 55px;
    }

    .class-detail-description {
        font-size: 16px;
        margin-bottom: 40px;
    }

    .class-detail-content {
        grid-template-columns: 1fr;
    }
}


/* =========================================================
   RESPONSIVE — MOBILE & SKILLS (max-width: 700px)
   ========================================================= */

@media (max-width: 700px) {
    .class-skills-database {
        width: 94%;
        padding: 30px 20px;
        margin-top: 50px;
    }

    .class-skills-database-title {
        font-size: 21px;
        letter-spacing: 2px;
    }

    .skill-section {
        padding: 16px;
    }

    .skill-grid {
        grid-template-columns: repeat(auto-fill, minmax(75px, 1fr));
        gap: 10px;
    }

    .skill-icon-wrapper,
    .skill-icon {
        width: 52px;
        height: 52px;
    }

    .skill-card {
        width: 70px;
        min-height: 105px;
        padding: 7px;
    }

    .skill-name {
        font-size: 10px;
    }

    .skill-required-level {
        top: 48px;
        min-width: 21px;
        height: 21px;
    }

    .skill-tooltip {
        width: 310px;
        padding: 16px;
    }

    .skill-tooltip-icon {
        width: 70px;
        height: 70px;
    }

    .skill-tooltip-name {
        font-size: 18px;
    }

    .class-text-modal {
        padding: 15px;
    }

    .class-text-modal-content {
        padding: 30px 25px;
        max-height: 80vh;
    }

    .class-text-modal-body {
        font-size: 17px;
        line-height: 1.75;
    }
}


/* =========================================================
   RESPONSIVE — SMALL PHONES (max-width: 480px)
   ========================================================= */

@media (max-width: 480px) {
    .classes-hero {
        min-height: 720px;
    }

    .classes-eyebrow {
        font-size: 10px;
        letter-spacing: 3px;
    }

    .classes-hero-text h1 {
        font-size: 48px;
        letter-spacing: 2px;
    }

    .classes-hero-description {
        font-size: 14px;
        line-height: 1.6;
    }

    .classes-character {
        right: -30%;
        width: 115%;
        opacity: 0.62;
    }

    .class-badges {
        gap: 8px;
        bottom: 20px;
    }

    .class-badge {
        width: 48px;
        height: 48px;
    }

    .class-detail {
        padding: 75px 20px;
    }

    .class-detail h2 {
        font-size: 44px;
    }

    .class-detail-content > div {
        padding: 22px;
        min-height: auto;
    }
}
/* =========================================================
   МОБИЛЕН ФИКС ЗА ПОП-ЪПИ И СКИЛОВЕ (СТРАНИЦА CLASSES)
   ========================================================= */

@media (max-width: 900px) {
    /* Универсален селектор за поп-ъп прозорци със скилове/детайли */
    .skill-popup, .tooltip-popup, .class-popup, [id*="Popup"], .popup-container {
        position: fixed !important;
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) !important; /* Центрира го точно в средата на екрана */
        width: 90% !important;
        max-width: 400px !important;
        max-height: 85vh !important;
        overflow-y: auto !important;
        z-index: 99999 !important;
        box-sizing: border-box !important;
        margin: 0 !important;
    }
}
/* =========================================================
   ФИКС ЗА СКИЛ ТУЛТИПА И ПОП-ЪПИТЕ В СТРАНИЦАТА CLASSES
   ========================================================= */

@media (max-width: 768px) {
    .skill-tooltip {
        position: fixed !important;
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
        width: 88% !important;
        max-width: 340px !important;
        max-height: 80vh !important;
        overflow-y: auto !important;
        z-index: 999999 !important;
        box-sizing: border-box !important;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8) !important;
    }
}