/* Tribut — Shared theme (glass/aurora visual system) */

/* ===== Animated gradient angle via @property ===== */
@property --angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}
@property --mouse-x {
    syntax: '<percentage>';
    initial-value: 50%;
    inherits: false;
}
@property --mouse-y {
    syntax: '<percentage>';
    initial-value: 50%;
    inherits: false;
}

body {
    background-color: var(--bg-deep);
}

/* ===== Glass Card ===== */
.glass-card {
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.05) 0%,
        rgba(255, 255, 255, 0.02) 50%,
        rgba(255, 255, 255, 0.04) 100%
    );
    backdrop-filter: blur(20px) saturate(1.5);
    -webkit-backdrop-filter: blur(20px) saturate(1.5);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.06),
        inset 0 -1px 0 rgba(255, 255, 255, 0.02);
    position: relative;
    overflow: hidden;
}

/* Mouse-tracking light on glass */
.glass-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(
        400px circle at var(--mouse-x) var(--mouse-y),
        rgba(255, 255, 255, 0.06),
        transparent 60%
    );
    pointer-events: none;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.4s ease;
}
.glass-card:hover::before {
    opacity: 1;
}

/* Glass edge highlight (top refraction line) */
.glass-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    pointer-events: none;
    z-index: 2;
}

/* ===== Accent Button ===== */
.btn-accent {
    background: var(--accent);
    box-shadow: 0 8px 32px var(--accent-glow), inset 0 1px 0 rgba(255,255,255,0.2);
    position: relative;
    overflow: hidden;
    z-index: 0;
}
.btn-accent::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.25),
        transparent
    );
    transform: skewX(-20deg);
    z-index: 1;
    animation: shimmer 4s ease-in-out infinite;
    pointer-events: none;
}
.btn-accent:hover {
    filter: brightness(1.15);
    box-shadow: 0 12px 48px var(--accent-intense), inset 0 1px 0 rgba(255,255,255,0.25);
    transform: translateY(-1px);
}
.btn-accent:active {
    transform: scale(0.97) translateY(0);
    filter: brightness(1);
}

@keyframes shimmer {
    0%, 100% { left: -100%; }
    50% { left: 140%; }
}

/* ===== Accent Utilities ===== */
.accent-text { color: var(--accent); }
.accent-border { border-color: var(--accent); }
.accent-bg-subtle { background: color-mix(in srgb, var(--accent) 12%, transparent); }
.accent-ring { box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent); }

/* ===== Input Fields ===== */
.input-field {
    transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
}
.input-field:focus {
    border-color: color-mix(in srgb, var(--accent) 60%, transparent);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 15%, transparent), 0 0 20px color-mix(in srgb, var(--accent) 8%, transparent);
    background-color: rgba(30, 30, 56, 0.9);
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(12px, -18px) scale(1.08); }
    66% { transform: translate(-10px, 10px) scale(0.94); }
}

@keyframes slowPulse {
    0%, 100% { opacity: 0.35; }
    50% { opacity: 0.65; }
}

.aurora-orb {
    animation: float 14s ease-in-out infinite, slowPulse 7s ease-in-out infinite;
}

/* ===== Rotating Gradient Ring (profile photo) ===== */
@keyframes rotateGradient {
    from { --angle: 0deg; }
    to { --angle: 360deg; }
}

.gradient-ring {
    background: conic-gradient(
        from var(--angle),
        #ec4899, #8b5cf6, #6366f1, #ec4899
    );
    animation: rotateGradient 4s linear infinite;
}

/* ===== Stagger Reveals ===== */
@keyframes revealUp {
    from {
        opacity: 0;
        transform: translateY(24px) scale(0.98);
        filter: blur(4px);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

.reveal {
    opacity: 0;
    animation: revealUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.reveal-d1 { animation-delay: 0.1s; }
.reveal-d2 { animation-delay: 0.2s; }
.reveal-d3 { animation-delay: 0.35s; }
.reveal-d4 { animation-delay: 0.5s; }
.reveal-d5 { animation-delay: 0.65s; }

/* ===== 3D Tilt on Hover (preset buttons) ===== */
.tilt-hover {
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease;
    transform-style: preserve-3d;
    perspective: 800px;
}
.tilt-hover:hover {
    transform: translateY(-2px) rotateX(4deg) rotateY(-2deg);
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}
.tilt-hover:active {
    transform: translateY(0) scale(0.96);
}

/* ===== Select Arrow ===== */
select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%239ca3af' viewBox='0 0 16 16'%3E%3Cpath d='M4.646 5.646a.5.5 0 0 1 .708 0L8 8.293l2.646-2.647a.5.5 0 0 1 .708.708l-3 3a.5.5 0 0 1-.708 0l-3-3a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
    background-position: right 1rem center;
    background-repeat: no-repeat;
    background-size: 1rem;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

/* ===== Noise Overlay ===== */
.noise::after {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: overlay;
}

/* ===== Glass Button (±) ===== */
.glass-btn {
    background: linear-gradient(135deg, rgba(255,255,255,0.08), rgba(255,255,255,0.03));
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), 0 4px 16px rgba(0,0,0,0.2);
    transition: all 0.2s ease;
}
.glass-btn:hover {
    background: linear-gradient(135deg, rgba(255,255,255,0.12), rgba(255,255,255,0.06));
    border-color: rgba(255, 255, 255, 0.18);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.12), 0 8px 24px rgba(0,0,0,0.3);
}
.glass-btn:active {
    transform: scale(0.9);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.06), 0 2px 8px rgba(0,0,0,0.2);
}

/* ===== Glass Preset Pill ===== */
.glass-pill {
    background: linear-gradient(135deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.glass-pill:hover {
    background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.04));
    border-color: rgba(255, 255, 255, 0.16);
    transform: translateY(-2px);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), 0 8px 24px rgba(0,0,0,0.25);
}

/* ===== Liquid Glass Input ===== */
.glass-input {
    background: linear-gradient(135deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01));
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
    transition: all 0.3s ease;
}
.glass-input:focus {
    background: linear-gradient(135deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
    border-color: color-mix(in srgb, var(--accent) 50%, transparent);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.06),
        0 0 0 3px color-mix(in srgb, var(--accent) 12%, transparent),
        0 0 30px color-mix(in srgb, var(--accent) 6%, transparent);
}
.glass-input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

/* ===== Reduced Motion ===== */
@media (prefers-reduced-motion: reduce) {
    .aurora-orb,
    .reveal,
    .btn-accent::before,
    .gradient-ring,
    .glass-pill {
        animation: none !important;
    }
    .reveal {
        opacity: 1;
        transform: none;
        filter: none;
    }
    .tilt-hover,
    .glass-pill,
    .btn-accent {
        transition: none;
    }
}

/* ===== Legal Prose ===== */
.legal-prose h2 {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 2rem 0 0.75rem;
}
.legal-prose h3 {
    font-size: 1.05rem;
    font-weight: 600;
    margin: 1.5rem 0 0.5rem;
}
.legal-prose p,
.legal-prose li {
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.7;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}
.legal-prose ul,
.legal-prose ol {
    list-style: disc;
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}
.legal-prose ol { list-style: decimal; }
.legal-prose a {
    color: var(--accent);
    text-decoration: underline;
}
.legal-prose a:hover { color: #fff; }
.legal-prose strong { color: rgba(255, 255, 255, 0.85); }
