/* ============================================================
   lrx.sh - License and Right eXchange - Styles
   Pixel-art aesthetic with cool gray infrastructure palette
   ============================================================ */

:root {
    /* Cool Gray Palette */
    --color-black: #14161A;
    --color-dark: #1A1D22;
    --color-darker: #0F1115;
    --color-accent: #FFB84D;
    --color-gray-dark: #2A2D33;
    --color-gray-medium: #6A6A78;
    --color-gray-light: #9A9AA8;
    --color-white: #E8E8EC;
    --color-gray-offwhite: #C8C8D0;

    /* Typography */
    --font-display: 'Righteous', sans-serif;
    --font-mono: 'Inconsolata', monospace;
    --font-body: 'Inter', sans-serif;

    /* Spacing */
    --spacing-unit: 12px;
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 32px;
}

/* ============================================================
   Reset & Base Styles
   ============================================================ */

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

html {
    scroll-behavior: smooth;
}

body {
    background: linear-gradient(135deg, #14161A 0%, #1A1D22 50%, #0F1115 100%);
    color: var(--color-white);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

/* ============================================================
   Typography
   ============================================================ */

h1, h2, h3 {
    font-family: var(--font-display);
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    margin-bottom: var(--spacing-md);
}

h1 {
    font-size: clamp(2.6rem, 7vw, 5.5rem);
    color: var(--color-white);
}

h2 {
    font-size: clamp(1.2rem, 2.2vw, 1.6rem);
    color: var(--color-white);
}

h3 {
    font-size: 1.1rem;
    color: var(--color-gray-offwhite);
}

p {
    color: var(--color-gray-light);
    margin-bottom: var(--spacing-md);
}

a {
    color: var(--color-accent);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--color-white);
}

/* ============================================================
   Gateway Section
   ============================================================ */

.gateway {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    background: linear-gradient(135deg, #1A1D22 0%, #22252B 50%, #1A1D22 100%);
    border-bottom: 2px solid rgba(200, 200, 208, 0.1);
    overflow: hidden;
}

.gateway-content {
    text-align: center;
    z-index: 2;
    max-width: 800px;
    padding: var(--spacing-lg);
}

.domain-title {
    font-family: var(--font-display);
    font-size: clamp(3rem, 10vw, 7rem);
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-white);
    margin-bottom: var(--spacing-md);
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
    animation: fadeInDown 0.8s ease-out;
}

.gateway-subtitle {
    font-size: clamp(1.2rem, 3vw, 2rem);
    color: var(--color-accent);
    font-weight: 300;
    margin-bottom: var(--spacing-md);
    animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

.gateway-description {
    font-size: 1.1rem;
    color: var(--color-gray-light);
    max-width: 600px;
    margin: 0 auto;
    animation: fadeInUp 0.8s ease-out 0.4s backwards;
}

.skeleton-loader {
    position: absolute;
    bottom: 40px;
    display: flex;
    gap: 16px;
    z-index: 1;
}

.skeleton-pulse {
    width: 12px;
    height: 12px;
    background: var(--color-accent);
    opacity: 0.4;
    animation: pulse 1.5s ease-in-out infinite;
}

.skeleton-pulse:nth-child(2) {
    animation-delay: 0.3s;
}

.skeleton-pulse:nth-child(3) {
    animation-delay: 0.6s;
}

/* ============================================================
   Masonry Grid Section
   ============================================================ */

.masonry-container {
    padding: var(--spacing-xl);
    background: var(--color-black);
    column-count: 3;
    column-gap: 12px;
}

@media (max-width: 1024px) {
    .masonry-container {
        column-count: 2;
    }
}

@media (max-width: 640px) {
    .masonry-container {
        column-count: 1;
        padding: var(--spacing-lg);
    }
}

/* ============================================================
   Card Styles
   ============================================================ */

.card {
    background: #22252B;
    border: 1px solid rgba(200, 200, 208, 0.08);
    padding: var(--spacing-lg);
    margin-bottom: 12px;
    break-inside: avoid;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 184, 77, 0.05) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.card:hover {
    border-color: rgba(200, 200, 208, 0.15);
    background: #252830;
    transform: translateY(-2px);
}

.card:hover::before {
    opacity: 1;
}

.card-tall {
    min-height: 300px;
    display: flex;
    flex-direction: column;
}

.card-icon {
    display: flex;
    justify-content: center;
    margin-bottom: var(--spacing-md);
}

.card-icon svg {
    width: 80px;
    height: 80px;
    filter: drop-shadow(0 2px 4px rgba(255, 184, 77, 0.2));
}

.card-title {
    color: var(--color-white);
    margin-bottom: var(--spacing-sm);
}

.card-text {
    color: var(--color-gray-light);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Card Markets */
.card-markets {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    flex-grow: 1;
}

.market-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-md);
    background: rgba(42, 45, 51, 0.5);
    border-left: 2px solid var(--color-accent);
    border-radius: 2px;
}

.market-label {
    color: var(--color-gray-light);
    font-size: 0.9rem;
}

.market-count {
    color: var(--color-accent);
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 400;
}

/* Card Stats */
.card-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-md);
    flex-grow: 1;
}

.stat-item {
    background: rgba(42, 45, 51, 0.5);
    padding: var(--spacing-md);
    border-left: 2px solid var(--color-accent);
    border-radius: 2px;
}

.stat-label {
    display: block;
    color: var(--color-gray-light);
    font-size: 0.85rem;
    margin-bottom: var(--spacing-xs);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.stat-value {
    display: block;
    color: var(--color-white);
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 400;
}

/* Card List */
.card-list {
    list-style: none;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.card-list li {
    color: var(--color-gray-light);
    font-size: 0.95rem;
    padding-left: var(--spacing-md);
    position: relative;
}

.card-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--color-accent);
    font-weight: bold;
}

/* ============================================================
   Terminal Footer
   ============================================================ */

.terminal-footer {
    background: #14161A;
    border-top: 2px solid rgba(200, 200, 208, 0.1);
    padding: var(--spacing-xl);
    font-family: var(--font-mono);
    font-size: 0.95rem;
}

.terminal-line {
    color: var(--color-gray-light);
    margin-bottom: var(--spacing-sm);
    animation: typewriter 0.5s ease-out forwards;
}

.terminal-line:nth-child(2) {
    animation-delay: 0.3s;
}

.terminal-prompt {
    color: var(--color-accent);
    margin-right: var(--spacing-xs);
    font-weight: bold;
}

.terminal-text {
    color: var(--color-white);
}

/* ============================================================
   Animations
   ============================================================ */

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.4;
    }
    50% {
        opacity: 1;
    }
}

@keyframes typewriter {
    from {
        opacity: 0;
        width: 0;
    }
    to {
        opacity: 1;
        width: 100%;
    }
}

/* ============================================================
   Responsive Adjustments
   ============================================================ */

@media (max-width: 768px) {
    :root {
        --spacing-unit: 8px;
        --spacing-xl: 20px;
        --spacing-lg: 16px;
    }

    .gateway {
        height: 80vh;
    }

    .card {
        padding: var(--spacing-md);
    }

    .card-stats {
        grid-template-columns: 1fr;
    }

    .terminal-footer {
        padding: var(--spacing-lg);
    }
}

/* ============================================================
   Utility Classes
   ============================================================ */

.container {
    max-width: 1400px;
    margin: 0 auto;
}

.text-accent {
    color: var(--color-accent);
}

.text-muted {
    color: var(--color-gray-light);
}
