/* --- CLASS PAGE STYLES --- */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;700;900&family=Montserrat:wght@300;400;500;600;700&display=swap');

/* Variabilele cheie pentru designul tăiat */
:root {
    --offset: 6px; 
    --complex-clip: polygon(
        var(--offset) var(--offset),
        var(--offset) calc(50% - var(--offset) * 2),
        calc(var(--offset) * 3) 50%,
        var(--offset) calc(50% + var(--offset) * 2),
        var(--offset) calc(100% - var(--offset)),
        calc(100% - var(--offset)) calc(100% - var(--offset)),
        calc(100% - var(--offset)) calc(50% + var(--offset) * 2),
        calc(100% - var(--offset) * 3) 50%,
        calc(100% - var(--offset)) calc(50% - var(--offset) * 2),
        calc(100% - var(--offset)) var(--offset)
    );
    --simple-clip: polygon(5px 0, 100% 0, 100% calc(100% - 5px), calc(100% - 5px) 100%, 0 100%, 0 5px);

    /* Culori */
    --gold-primary: var(--gold-main);
    --gold-dark: var(--gold-dark);
    --bg-deep: #000;
    --bg-panel: var(--bg-transparency);
}

/* --- SECTIUNE HERO SI LAYOUT --- */

.hero-section.classes-hero {
    height: auto !important;
    min-height: 100vh;
    overflow: visible !important;
    display: block !important;
    padding: 160px 20px 100px !important;
    background: linear-gradient(rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.9)), url('../icon/background.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: #f0f0f0;
}

body {
    font-family: 'Montserrat', sans-serif;
}

.classes-layout-container {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 5;
}

.classes-intro {
    text-align: center;
    margin-bottom: 60px;
}


.section-title::after {
    content: none !important;
}

.section-title span {
    font-family: 'Cinzel', serif;
    font-size: 2.5rem;
    color: var(--gold-main);
    text-shadow: 0 0 15px color-mix(in srgb, var(--gold-main) 35%, transparent);
    display: inline-block;
    border-bottom: 2px solid var(--gold-main);
    padding-bottom: 10px;
    letter-spacing: 2px;
}

.classes-grid {
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 40px;
    align-items: flex-start;
}

#guides-container {
    display: flex;
    flex-direction: column;
    gap: 40px;
    min-width: 0;
}

/* --- GUIDE CARD --- */

.guide-card {
    background: transparent; 
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 3px solid var(--gold-dark);
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
    scroll-margin-top: 150px;
    clip-path: var(--complex-clip);
    transition: transform 0.3s ease, border-color 0.3s;
    z-index: 1;
}

.guide-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--bg-panel);
    z-index: -1;
    clip-path: inherit;
    transition: 0.3s;
}

.guide-card:hover {
    transform: translateY(-5px);
    border-color: var(--gold-main);
}

.guide-header {
    background: linear-gradient(90deg, #151515, #1a1a1a);
    padding: 20px 30px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.guide-header h3 {
    font-family: 'Cinzel', serif;
    color: #fff;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    gap: 15px;
}

.guide-header h3 i {
    color: var(--gold-main);
    font-size: 1.5rem;
    filter: drop-shadow(0 0 5px color-mix(in srgb, var(--gold-main) 25%, transparent));
}

.guide-date {
    font-size: 0.8rem;
    color: #888;
    background: rgba(0,0,0,0.4);
    padding: 5px 10px;
    border: 1px solid #333;
    clip-path: var(--simple-clip);
    display: flex;
    align-items: center;
    gap: 8px;
}

.guide-image-container {
    width: 100%;
    height: 350px;
    position: relative;
    border-bottom: 1px solid #222;
    overflow: hidden;
    cursor: pointer;
}

.guide-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.85;
    transition: 0.5s;
}

.guide-image-container:hover .guide-image {
    opacity: 1;
    transform: scale(1.03);
}

/* --- TEXT CONTENT & FORMATTING (Pentru ghiduri simple) --- */

.guide-text-content {
    padding: 30px;
    color: #ccc;
    font-size: 1rem;
    line-height: 1.7;
}

.guide-text-content p {
    margin-bottom: 15px;
}

.guide-text-content strong {
    color: #fff;
}

/* Listă ordonată (pentru Stat Points) */
.guide-text-content ol {
    margin: 20px 0;
    background: rgba(255,255,255,0.02);
    padding: 20px 20px 20px 40px;
    border-left: 3px solid var(--gold-main);
    list-style-type: decimal;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 15px 100%, 0 calc(100% - 15px));
}
.guide-text-content li {
    margin-bottom: 10px;
    color: #e0e0e0;
}

/* Stil pentru titlurile din ghidurile simple (ex: **Reset Rewards**) */
.guide-text-content h3 {
    font-family: 'Cinzel', serif;
    font-size: 1.1rem;
    color: var(--gold-main);
    margin-top: 20px;
    margin-bottom: 10px;
    padding-bottom: 5px;
    border-bottom: 1px dashed rgba(255,255,255,0.1);
}

/* Stil pentru Advanced Tips / Reset Rewards Box (cutie separată) */
.advanced-tips-box {
    margin-top: 25px;
    padding: 20px;
    border: 1px solid var(--gold-dark);
    background: rgba(25, 25, 25, 0.8);
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
    line-height: 1.6;
}
.advanced-tips-box h3 {
    font-size: 1rem;
    color: var(--gold-main);
    margin: 0 0 10px 0;
    border: none;
    padding: 0;
    letter-spacing: 0.5px;
}
.advanced-tips-box p {
    margin: 0;
}

/* --- ACCORDION CLASE (Noul format imbricat) --- */

.class-evolution-accordion {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 15px;
}

/* Stilul Summary este reutilizat */
.section-content.class-evolution-content {
    /* Resetează padding-ul intern al accordion-ului pentru a face loc detaliilor clasei */
    padding: 0;
}

.class-detail-box {
    padding: 20px;
    border-bottom: 1px solid #1a1a1a;
    background: #121212;
    transition: background 0.3s;
}

.class-detail-box:last-child {
    border-bottom: none;
    padding-bottom: 25px;
}

.class-detail-box:hover {
    background: #181818;
}

.class-header-info {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.05);
}

.class-icon {
    width: 50px;
    height: 50px;
    object-fit: contain;
    border: 1px solid var(--gold-dark);
    clip-path: var(--simple-clip);
    padding: 5px;
}

.class-role-info h4 {
    font-family: 'Cinzel', serif;
    color: #fff;
    margin: 0;
    font-size: 1.2rem;
}

.class-role {
    font-size: 0.85rem;
    color: var(--gold-main);
}

/* --- STATS DISPLAY --- */

.class-stats-container {
    background: #0d0d0d;
    padding: 15px;
    margin-bottom: 15px;
    border-left: 3px solid var(--gold-dark);
    font-size: 0.95rem;
    line-height: 1.4;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 10px 100%, 0 calc(100% - 10px));
}

.stat-build-type {
    margin-bottom: 5px;
    color: #ccc;
}

.stat-build-type strong {
    color: #fff;
    margin-right: 5px;
}

.stat-build-type span {
    color: var(--gold-main);
    font-weight: 700;
}

/* --- SETS AND SKILLS --- */

.class-specs p {
    margin: 5px 0;
    font-size: 0.95rem;
}

.class-specs strong {
    color: #e0e0e0;
}

.class-specs span {
    color: #999;
    font-style: italic;
}

/* --- SIDEBAR & NAVIGATION --- */

/* Mantenute stilurile vechi pentru navigare */

.guides-sidebar {
    position: sticky;
    top: 140px;
}

.guides-nav,
.classes-nav {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    clip-path: var(--complex-clip);
    position: relative;
    z-index: 1;
}

.guides-nav::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgb(5 10 17);
    z-index: -1;
    clip-path: inherit;
}

.guides-nav h3 {
    font-family: 'Cinzel', serif;
    font-size: 1.1rem;
    color: var(--gold-main);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    text-transform: uppercase;
}

.guides-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.guides-nav ul li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    border-left: 2px solid transparent;
    transition: 0.3s;
}

.guides-nav ul li a:hover {
    background: rgba(255,255,255,0.05);
    color: #fff;
    padding-left: 15px;
}

.guides-nav ul li.active a {
    color: var(--gold-main);
    border-left-color: var(--gold-main);
    background: linear-gradient(90deg, color-mix(in srgb, var(--gold-main) 15%, transparent), transparent);
    padding-left: 15px;
}

/* --- RESPONSIVE DESIGN --- */

@media (max-width: 992px) {
    .classes-grid {
        grid-template-columns: 1fr;
    }
    .guides-sidebar {
        display: none;
    }
    .classes-hero {
        padding-top: 120px;
    }
}


/* -----------------------------
   CLASS PAGE - NEW IMPROVED STYLE
   ----------------------------- */

/* Outer card layout */
.class-card {
    background: rgb(5 10 17);
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 40px;
    border: 1px solid rgba(255,255,255,0.05);
}

/* Title */
.class-card h2 {
    font-family: 'Cinzel', serif;
    font-size: 28px;
    color: var(--gold-main);
    margin-bottom: 25px;
    text-transform: uppercase;
}

/* Layout: image left, stats right */
.class-flex {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    flex-wrap: wrap;
}

.class-image {
    width: 270px;
    height: 310px;
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;
}

/* Stats Panel */
.stats-panel {
    flex: 1;
}

/* Stat boxes inside panel */
.stat-box {
    padding: 14px 20px;
    border-radius: 6px;
    margin-bottom: 12px;
    font-size: 16px;
    font-weight: 600;
    color: white;
    text-transform: uppercase;
    border: 1px solid rgba(255,255,255,0.1);
}

/* Stat colors */
.stat-strength { background: rgba(255,0,0,0.15); border-left: 4px solid red; }
.stat-agility  { background: rgba(0,255,0,0.15); border-left: 4px solid #00ff7f; }
.stat-energy   { background: rgba(0,128,255,0.15); border-left: 4px solid #008cff; }
.stat-vitality { background: rgba(160,32,240,0.20); border-left: 4px solid #a020f0; }
.stat-command  { background: color-mix(in srgb, var(--gold-main) 14%, transparent); border-left: 4px solid var(--gold-main); }


/* Section header (yellow left stripe like server-info) */
.section-header {
    background: rgba(0, 0, 0, 0.22);
    border-left: 4px solid var(--gold-main);
    padding: 10px 14px;
    margin-top: 25px;
    margin-bottom: 15px;
    font-size: 15px;
    color: var(--gold-main);
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Relationships as 3 columns */
.relations-grid {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.relation-box {
    flex: 1;
    background: rgba(255,255,255,0.05);
    padding: 15px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.1);
}

.relation-title {
    font-size: 15px;
    color: #fff;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Tags */
.rel-tag {
    display: inline-block;
    margin: 4px;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
}

/* Tag borders */
.tag-strong { border: 2px solid #00c851; color: #00c851; }
.tag-weak   { border: 2px solid #ff4444; color: #ff4444; }
.tag-even   { border: 2px solid #c7b47e; color: #c7b47e; }

/* Two stat blocks horizontally aligned */
.stats-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.stats-row .stat-box {
    flex: 1;
    text-align: center;
    padding: 18px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 15px;
    text-transform: uppercase;
    color: white;
    border: 1px solid rgba(255,255,255,0.15);
}

.details-box {
    background: rgba(255,255,255,0.05);
    padding: 15px 20px;
    border-radius: 6px;
    border: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 20px;
}
