﻿/* ============================================================
   DG FEATURE STYLES
   Fachbereich: Darstellende Geometrie
   Scope: Hero, Sections, Splits, Tabs, Viewer, Highlights
   Depends on: core tokens + components (buttons, colors)
   ============================================================ */


/* ============================================================
   DG HERO
   ============================================================ */

.dg-hero {
    padding: clamp(3rem, 7vw, 6rem) 0;
    margin-top: 2rem;
    margin-bottom: 3rem;
    background: rgba(255,255,255,0.7);
    backdrop-filter: blur(20px) saturate(160%);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    border-radius: 28px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.06);
    text-align: center;
    position: relative;
    z-index: 1;
}

    .dg-hero h1 {
        font-weight: 800;
        margin-bottom: 0.4rem;
    }

    .dg-hero p {
        color: var(--muted, #666);
        font-size: 1.1rem;
    }


/* ============================================================
   DG SECTIONS (Content Blocks)
   ============================================================ */

.dg-section {
    background: rgba(255,255,255,0.82);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 22px;
    padding: clamp(2.5rem, 5vw, 3.2rem) clamp(1.25rem, 3vw, 2.5rem);
    margin: 4rem auto;
    max-width: 1200px;
    box-shadow: 0 6px 22px rgba(0,0,0,0.05);
    position: relative;
    z-index: 2;
}

    .dg-section h3 {
        font-weight: 700;
        margin-bottom: 1rem;
    }

    .dg-section hr {
        border: none;
        height: 2px;
        width: 180px;
        margin: 0.5rem auto 2rem auto;
        background: linear-gradient( 90deg, transparent, rgba(184,134,82,0.6), transparent );
    }


/* ============================================================
   SECTION HEADER (optional helper)
   ============================================================ */

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

    .section-header .section-title {
        font-weight: 700;
        color: var(--primary);
    }


/* ============================================================
   HIGHLIGHT / INFO BOXES
   ============================================================ */

.highlight {
    background: rgba(170,108,57,0.08);
    border-left: 4px solid var(--primary);
    border-radius: 14px;
    padding: 1rem 1.25rem;
    font-size: 0.95rem;
    line-height: 1.6;
    box-shadow: inset 0 0 6px rgba(0,0,0,0.04);
}


/* ============================================================
   GLASS CARD (DG uses heavily)
   ============================================================ */

.glass-card {
    background: rgba(255,255,255,0.45);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 22px;
    box-shadow: 0 6px 22px rgba(0,0,0,0.06);
    transition: transform .3s ease, box-shadow .3s ease;
}

    .glass-card .inner {
        padding: 2rem 1.5rem;
    }

    .glass-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 12px 36px rgba(0,0,0,0.1);
    }


/* ============================================================
   DG SPLIT LAYOUT (Platonische Körper etc.)
   ============================================================ */

.dg-split {
    display: flex;
    gap: 0;
    margin: 3.5rem auto;
    max-width: 1400px;
    border-radius: 22px;
    overflow: hidden;
    background: rgba(255,255,255,0.7);
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 28px rgba(0,0,0,0.06);
    transition: transform .25s ease, box-shadow .25s ease;
}

    .dg-split:hover {
        transform: translateY(-2px);
        box-shadow: 0 14px 42px rgba(0,0,0,0.1);
    }


    /* --- Info Column --- */

    .dg-split .info {
        flex: 1;
        padding: clamp(1.75rem, 3vw, 3rem);
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

        .dg-split .info h2 {
            color: var(--primary);
            font-weight: 700;
        }


/* --- Data Box --- */

.data-box {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .5rem 1rem;
    background: rgba(255,255,255,0.6);
    border-radius: 12px;
    padding: .9rem 1.2rem;
    font-size: .95rem;
}

    .data-box span {
        font-weight: 600;
        color: var(--primary);
    }


/* --- Element Tags --- */

.tag {
    display: inline-block;
    align-self: flex-start;
    padding: .35rem .9rem;
    border-radius: 999px;
    font-size: .8rem;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
}

    .tag.fire {
        background: linear-gradient(120deg,#e25822,#ffb347);
    }

    .tag.earth {
        background: linear-gradient(120deg,#7a5c2e,#d2b48c);
    }

    .tag.air {
        background: linear-gradient(120deg,#49a9e6,#8ed2f3);
    }

    .tag.water {
        background: linear-gradient(120deg,#1976d2,#64b5f6);
    }

    .tag.aether {
        background: linear-gradient(120deg,#9b59b6,#c39bd3);
    }


/* --- Viewer Column --- */

.dg-split .viewer {
    flex: 1;
    background: linear-gradient( 135deg, rgba(255,255,255,0.85), rgba(245,245,245,0.6) );
}

.dg-split model-viewer {
    width: 100%;
    height: 100%;
    min-height: 420px;
    background: transparent;
    --progress-bar-color: var(--primary);
}


/* ============================================================
   DG TABS (Theory / Video / Model)
   ============================================================ */

.dg-tabs-container {
    margin-top: 2rem;
    border-radius: 18px;
    overflow: hidden;
    background: rgba(255,255,255,0.8);
    backdrop-filter: blur(10px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.05);
}

.dg-tabs {
    display: flex;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

    .dg-tabs button {
        flex: 1;
        padding: 1rem;
        border: none;
        background: transparent;
        font-weight: 600;
        cursor: pointer;
        transition: background .2s ease;
    }

        .dg-tabs button:hover {
            background: rgba(184,134,82,0.08);
        }

        .dg-tabs button.active {
            background: var(--primary);
            color: #fff;
        }

.dg-tab-content {
    padding: 2rem;
}

    .dg-tab-content.hidden {
        display: none;
    }


/* ============================================================
   VIDEO / MEDIA
   ============================================================ */

.video-card {
    background: rgba(255,255,255,0.9);
    border-radius: 18px;
    padding: 1.5rem;
    box-shadow: 0 6px 18px rgba(0,0,0,0.06);
}

.dg-section iframe {
    border-radius: 14px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}


/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 992px) {
    .dg-split {
        flex-direction: column;
        margin: 2.5rem 1rem;
    }

        .dg-split model-viewer {
            min-height: 320px;
        }
}

@media (max-width: 768px) {
    .dg-hero {
        margin-top: 1.25rem;
        padding: 2.5rem 1.25rem;
    }

    .dg-section {
        margin: 2.5rem 1rem;
    }
}
