/*
 * o8 Brand Styles
 * Consistent styling and brand identity for all o8 projects
 */

/* ===========================
   Color System
   =========================== */
:root {
    /* Core Colors */
    --o8-black: #000000;
    --o8-white: #ffffff;

    /* Gray Scale */
    --o8-gray-100: #e0e0e0;
    --o8-gray-200: #b0b0b0;
    --o8-gray-300: #7a7a7a;
    --o8-gray-400: #3a3a3a;
    --o8-gray-500: #1a1a1a;

    /* Brand Colors */
    --o8-primary: #4a9eff;          /* Primary action blue */
    --o8-primary-light: #7ab8ff;
    --o8-primary-dark: #2a7edf;
    --o8-primary-bg: rgba(74, 158, 255, 0.1);

    --o8-tertiary: #ffb74a;         /* Tertiary amber/gold */
    --o8-tertiary-light: #ffc977;
    --o8-tertiary-dark: #df9730;
    --o8-tertiary-bg: rgba(255, 183, 74, 0.1);

    /* Semantic Colors */
    --o8-success: #4ade80;
    --o8-warning: #fbbf24;
    --o8-error: #f87171;
    --o8-info: var(--o8-primary);

    /* Surface Colors */
    --o8-surface: rgba(255, 255, 255, 0.05);
    --o8-surface-hover: rgba(255, 255, 255, 0.08);
    --o8-surface-active: rgba(255, 255, 255, 0.12);
    --o8-border: rgba(255, 255, 255, 0.1);
    --o8-border-hover: rgba(255, 255, 255, 0.2);
    --o8-border-active: rgba(255, 255, 255, 0.3);
}

/* Reset and Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #000000;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 2rem;
}

/* Background Canvas */
#bgCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

/* Container */
.container {
    text-align: center;
    position: relative;
    z-index: 1;
    max-width: 800px;
    width: 100%;
}

/* Brand Typography */
.brand {
    font-size: clamp(1.5rem, 8vw, 4rem);
    font-weight: 700;
    letter-spacing: 0.05em;
    color: #ffffff;
    margin-bottom: 1rem;
}

.service-name {
    font-size: clamp(1rem, 4vw, 2rem);
    font-weight: 300;
    letter-spacing: 0.02em;
    color: #ffffff;
    margin-bottom: 2rem;
}

/* Gradient effect only on desktop/non-touch devices */
@media (hover: hover) and (pointer: fine) {
    .brand {
        background: linear-gradient(110deg, #7a7a7a 0%, #e0e0e0 35%, #ffffff 50%, #e0e0e0 65%, #7a7a7a 100%);
        background-size: 200% 100%;
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        animation: shine 4s ease-in-out infinite;
    }

    .service-name {
        background: linear-gradient(110deg, #7a7a7a 0%, #e0e0e0 35%, #ffffff 50%, #e0e0e0 65%, #7a7a7a 100%);
        background-size: 200% 100%;
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        animation: shine 4s ease-in-out infinite;
    }
}

.description {
    color: #b0b0b0;
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    line-height: 1.6;
    margin-bottom: 2rem;
    width: 100%;
}

.coming-soon {
    color: #7a7a7a;
    font-size: 1.1rem;
    font-style: italic;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* Info Box */
.info-box {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 1.5rem;
    margin: 2rem 0;
    backdrop-filter: blur(10px);
    width: 100%;
}

.info-box p {
    color: #b0b0b0;
    font-size: 0.9rem;
    line-height: 1.6;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0 0 0;
    text-align: left;
}

.feature-list li {
    color: #b0b0b0;
    font-size: 0.9rem;
    padding: 0.4rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.feature-list li:last-child {
    border-bottom: none;
}

/* Separator */
.separator {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    margin: 2rem 0;
}

/* Links */
.links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    list-style: none;
    padding: 0;
}

.links a {
    color: #7a7a7a;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
    font-family: monospace;
}

.links a:hover {
    color: #ffffff;
}

/* Input Components */
.hash-input-container {
    margin: 2rem 0;
    display: flex;
    gap: 0.5rem;
    width: 100%;
}

.hash-input {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    color: #ffffff;
    font-family: monospace;
    font-size: 0.9rem;
    outline: none;
    transition: all 0.3s ease;
}

.hash-input::placeholder {
    color: #7a7a7a;
}

.hash-input:focus {
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.08);
}

/* Button Components */
.view-button {
    background: var(--o8-surface);
    border: 1px solid var(--o8-border-hover);
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    color: var(--o8-white);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.view-button:hover {
    background: var(--o8-surface-hover);
    border-color: var(--o8-border-active);
}

.view-button:active {
    transform: scale(0.98);
}

.view-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Primary Button - Blue action button */
.view-button--primary {
    background: var(--o8-primary);
    border-color: var(--o8-primary);
    color: var(--o8-white);
}

.view-button--primary:hover {
    background: var(--o8-primary-light);
    border-color: var(--o8-primary-light);
}

.view-button--primary:active {
    background: var(--o8-primary-dark);
    border-color: var(--o8-primary-dark);
}

/* Tertiary Button - Amber/gold button */
.view-button--tertiary {
    background: var(--o8-tertiary);
    border-color: var(--o8-tertiary);
    color: var(--o8-black);
}

.view-button--tertiary:hover {
    background: var(--o8-tertiary-light);
    border-color: var(--o8-tertiary-light);
}

.view-button--tertiary:active {
    background: var(--o8-tertiary-dark);
    border-color: var(--o8-tertiary-dark);
}

/* Outline Button Variants */
.view-button--outline-primary {
    background: transparent;
    border: 2px solid var(--o8-primary);
    color: var(--o8-primary);
}

.view-button--outline-primary:hover {
    background: var(--o8-primary-bg);
}

.view-button--outline-tertiary {
    background: transparent;
    border: 2px solid var(--o8-tertiary);
    color: var(--o8-tertiary);
}

.view-button--outline-tertiary:hover {
    background: var(--o8-tertiary-bg);
}

/* Selection Chips - For token/option selection */
.selection-chip {
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    border: 1px solid var(--o8-gray-400);
    background: transparent;
    color: var(--o8-gray-200);
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.2s ease;
}

.selection-chip:hover {
    border-color: var(--o8-gray-300);
    color: var(--o8-gray-100);
}

.selection-chip--selected {
    border: 2px solid var(--o8-primary);
    background: var(--o8-primary-bg);
    color: var(--o8-primary);
}

.selection-chip--selected:hover {
    border-color: var(--o8-primary-light);
    color: var(--o8-primary-light);
}

/* Tertiary selection variant */
.selection-chip--tertiary.selection-chip--selected {
    border-color: var(--o8-tertiary);
    background: var(--o8-tertiary-bg);
    color: var(--o8-tertiary);
}

.selection-chip--tertiary.selection-chip--selected:hover {
    border-color: var(--o8-tertiary-light);
    color: var(--o8-tertiary-light);
}

.selection-chip:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Button Group */
.button-group {
    display: flex;
    gap: 0.5rem;
    width: 100%;
}

.button-group > * {
    flex: 1;
}

/* Animations */
@keyframes shine {
    0%, 100% {
        background-position: 0% center;
    }
    50% {
        background-position: 100% center;
    }
}
