/* ============================================
   licensor.directory - Pixel-Art Pastoral CSS
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    background-color: #1E1E2A;
    color: #F0E6D2;
}

body {
    background-color: #1E1E2A;
    color: #F0E6D2;
    font-family: "Barlow Condensed", system-ui, sans-serif;
    line-height: 1.65;
    letter-spacing: 0.02em;
    font-size: clamp(0.95rem, 1.8vw, 1.15rem);
    overflow-x: hidden;
}

/* ============================================
   TYPOGRAPHY SYSTEM
   ============================================ */

h1 {
    font-family: "Saira Extra Condensed", sans-serif;
    font-weight: 800;
    font-size: clamp(2.5rem, 6vw, 5rem);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    line-height: 0.95;
}

h2 {
    font-family: "Saira Extra Condensed", sans-serif;
    font-weight: 700;
    font-size: clamp(1.5rem, 3vw, 2rem);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    line-height: 1.1;
    margin-bottom: 0.5em;
}

.license-number {
    font-family: "Silkscreen", monospace;
    font-size: 12px;
    letter-spacing: 0.1em;
    color: #B8B0A4;
    text-transform: uppercase;
    image-rendering: pixelated;
    font-smooth: never;
}

/* ============================================
   CRT SCANLINE OVERLAY
   ============================================ */

#scanline-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 1px,
        rgba(0, 0, 0, 0.06) 1px,
        rgba(0, 0, 0, 0.06) 2px
    );
}

/* ============================================
   LAYOUT: F-PATTERN ZONES
   ============================================ */

#registry-header {
    width: 100%;
    min-height: 15vh;
    background-color: #1E1E2A;
    border-bottom: 2px solid #7B5EA7;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}

.header-content {
    display: flex;
    align-items: center;
    gap: 3rem;
    max-width: 1200px;
    width: 100%;
}

.registry-building {
    image-rendering: pixelated;
    flex-shrink: 0;
}

.domain-title {
    text-align: center;
    color: #F0E6D2;
    flex: 1;
}

#ticker-zone {
    width: 100%;
    height: 10vh;
    background-color: #1E1E2A;
    border-bottom: 2px solid #7B5EA7;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.ticker-content {
    display: flex;
    gap: 2rem;
    animation: scroll-ticker 20s linear infinite;
    padding: 0 2rem;
}

.ticker-icon {
    image-rendering: pixelated;
    flex-shrink: 0;
    width: 64px;
    height: 64px;
}

@keyframes scroll-ticker {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-100vw);
    }
}

.content-wrapper {
    display: grid;
    grid-template-columns: 60% 40%;
    gap: 2px;
    background-color: #1E1E2A;
    min-height: calc(100vh - 25vh);
}

.zone-c {
    border-right: 2px solid #7B5EA7;
    padding: 2rem;
    overflow-y: auto;
    max-height: calc(100vh - 25vh);
}

.zone-d {
    padding: 2rem;
    overflow-y: auto;
    max-height: calc(100vh - 25vh);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

/* ============================================
   REGISTRY PANELS
   ============================================ */

.registry-panel {
    position: relative;
    margin-bottom: 2rem;
    padding: 1rem;
    border: 2px solid #7B5EA7;
    background-color: #3D4A2E;
    background-image:
        repeating-linear-gradient(
            45deg,
            #5B8C5A,
            #5B8C5A 8px,
            #3D4A2E 8px,
            #3D4A2E 16px
        );
    color: #F0E6D2;
    transform-style: preserve-3d;
    transition: transform 0.15s ease-out;
}

.panel-content {
    position: relative;
    z-index: 2;
}

.panel-content p {
    margin-top: 0.8em;
    line-height: 1.65;
}

/* Corner ornaments (small crystal/marble sprites) */
.panel-corner-ornament {
    position: absolute;
    width: 8px;
    height: 8px;
    image-rendering: pixelated;
}

.ornament-top-left {
    top: -2px;
    left: -2px;
    background-color: #A8D8EA;
    border-left: 2px solid #7B5EA7;
    border-top: 2px solid #7B5EA7;
}

.ornament-bottom-right {
    bottom: -2px;
    right: -2px;
    background-color: #A8D8EA;
    border-right: 2px solid #7B5EA7;
    border-bottom: 2px solid #7B5EA7;
}

/* Tilt 3D Effect */
.tilt-panel {
    perspective: 800px;
}

/* ============================================
   VIGNETTES (Right Column Scenes)
   ============================================ */

.vignette {
    display: none;
    margin-bottom: 2rem;
    border: 2px solid #7B5EA7;
    padding: 0.5rem;
    background-color: #1E1E2A;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
}

.vignette.active {
    display: block;
    opacity: 1;
}

.vignette-scene {
    image-rendering: pixelated;
    width: 100%;
    height: auto;
    display: block;
}

/* ============================================
   PIXEL ART RENDERING
   ============================================ */

svg {
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: -webkit-optimize-contrast;
}

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes sparkle {
    0%, 80% {
        opacity: 1;
    }
    90% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

/* Crystal sparkle particles */
.crystal-sparkle {
    animation: sparkle 2s ease-in-out infinite;
}

/* Firefly animation */
.firefly {
    animation: firefly-drift 3s ease-in-out infinite;
}

@keyframes firefly-drift {
    0%, 100% {
        opacity: 0.3;
        cy: attr(cy);
    }
    50% {
        opacity: 1;
        cy: calc(attr(cy) - 10);
    }
}

/* ============================================
   DITHERED GRADIENTS
   ============================================ */

/* Dither pattern for panel backgrounds */
@supports (background-image: repeating-linear-gradient(45deg, #5B8C5A, #3D4A2E)) {
    .registry-panel {
        background-image:
            repeating-linear-gradient(
                45deg,
                #5B8C5A 0px,
                #5B8C5A 8px,
                #3D4A2E 8px,
                #3D4A2E 16px
            );
    }
}

/* ============================================
   SCROLLBAR STYLING
   ============================================ */

.zone-c::-webkit-scrollbar,
.zone-d::-webkit-scrollbar {
    width: 12px;
}

.zone-c::-webkit-scrollbar-track,
.zone-d::-webkit-scrollbar-track {
    background: #1E1E2A;
}

.zone-c::-webkit-scrollbar-thumb,
.zone-d::-webkit-scrollbar-thumb {
    background: #7B5EA7;
    border: 2px solid #1E1E2A;
}

.zone-c::-webkit-scrollbar-thumb:hover,
.zone-d::-webkit-scrollbar-thumb:hover {
    background: #8A8A7A;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 768px) {
    .content-wrapper {
        grid-template-columns: 1fr;
    }

    .zone-c {
        border-right: none;
        border-bottom: 2px solid #7B5EA7;
    }

    .zone-d {
        max-height: none;
        padding: 1rem;
    }

    .header-content {
        flex-direction: column;
        gap: 1rem;
    }

    .registry-building {
        max-width: 150px;
    }
}

@media (max-width: 480px) {
    #registry-header {
        min-height: 12vh;
        padding: 1rem;
    }

    .registry-building {
        max-width: 100px;
    }

    .domain-title {
        font-size: 1.5rem;
    }

    .registry-panel {
        padding: 0.75rem;
        margin-bottom: 1.5rem;
    }

    .zone-c {
        padding: 1rem;
    }
}

/* ============================================
   FOCUS AND INTERACTIVE STATES
   ============================================ */

.registry-panel:hover {
    border-color: #C4883A;
}

/* ============================================
   COLOR PALETTE REFERENCE
   ============================================ */

/* Primary: #5B8C5A (Meadow Sage)
   Secondary: #7B5EA7 (Twilight Violet)
   Tertiary: #C4883A (Amber Hearth)
   Dark Ground: #1E1E2A (Pixel Charcoal)
   Light Text: #F0E6D2 (Parchment Glow)
   Mid Tone: #8A8A7A (Stone Gray)
   Crystal Accent: #A8D8EA (Frost Blue)
   Dither Dark: #3D4A2E (Shadow Olive)
   Marble Base: #E8E0D4
   Marble Mid: #B8B0A4
   Marble Deep: #8A8278
*/
