/* ================================================================
   GLASSMORPHISM & TACTILE MAXIMALISM FRAMEWORK (v1.0)
   ================================================================ 
*/

:root {
    /* --- BRAND SEMANTICS (ORIGINAL PALETTE) --- */
    --color-primary: #2d3748;        /* Deep Storm Gray */
    --color-secondary: #1a202c;      /* Midnight Slate */
    --color-tertiary: #d97706;       /* Sun-pierced Amber (High Visibility) */
    --color-success: #15803d;        /* Valley Green */
    --color-danger: #92400e;         /* Deep Horizon Bronze */
    --accent-gold: #d97706;          /* Sun-pierced Amber */

    /* --- SURFACE & GLASS --- */
    --bg-main: #fdfaf3;              /* Warm Morning Light (Parchment) */
    --bg-gradient: radial-gradient(circle at top left, #727b8d, #e5e7eb);
    --glass-fill: rgba(255, 255, 255, 0.3);
    --glass-border: rgba(255, 255, 255, 0.7);
    --glass-blur: 16px;

    /* --- TEXT LAYERS --- */
    --text-high: #1a202c;            /* Near-Black Slate */
    --text-mid: #4a5568;             /* Rainy Cloud Gray */
    --text-low: #000000;             /* Black for strongest contrast */

    /* --- DEPTH & SHADOWS --- */
    --radius-lg: 24px;
    --radius-md: 12px;
    --radius-sm: 8px;
    --shadow-tactile: 
        0 10px 30px -5px rgba(26, 32, 44, 0.28),
        inset 0 1px 1px rgba(255, 255, 255, 0.25);
    --shadow-inner: inset 0 2px 8px rgba(26, 32, 44, 0.12);
}

/* ================================================================
   1. CORE ARCHITECTURE
   ================================================================ */

body {
    background: var(--bg-main);
    background-image: var(--bg-gradient);
    background-attachment: fixed;
    color: var(--text-high);
    font-family: 'Inter', -apple-system, sans-serif;
    line-height: 1.6;
    margin: 0;
    -webkit-font-smoothing: antialiased;
}

.main-wrapper {
    max-width: 1300px;
    margin: 0 auto;
    padding: 2rem;
}

/* Scrollbar Styling for the Glass Aesthetic */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: rgba(255,255,255,0.02); }
::-webkit-scrollbar-thumb { 
    background: var(--glass-border); 
    border-radius: 10px; 
}

/* ================================================================
   2. ANIMATION KEYFRAMES
   ================================================================ */

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes shimmerSweep {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* ================================================================
   3. BASE GLASS COMPONENTS
   ================================================================ */

.glass-panel {
    background: var(--glass-fill);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-tactile);
    position: relative;
}

/* Modifier: Inset variation for glass panels */
.glass-panel--inset {
    /* Combine outer tactile depth with subtle inner inset shadow */
    box-shadow: var(--shadow-tactile), var(--shadow-inner);
    /* Slightly richer fill to emphasize inset feel */
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.12);
}

/* Card Variation */
.card {
    padding: 1.5rem;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.card:hover {
    transform: translateY(-8px);
    
}

/* ================================================================
   4. KINETIC ACCENT BORDERS
   ================================================================ */

.accent-top, .accent-left {
    position: relative;
    overflow: hidden; /* Clips the animated bar to border radius */
}

.accent-top::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--color-primary) 0%, var(--accent-gold) 50%, var(--color-primary) 100%);
    background-size: 200% 100%;
    animation: gradientShift 3s ease infinite;
    z-index: 5;
}

.accent-left::after {
    content: "";
    position: absolute;
    top: 0; left: 0; bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--color-secondary) 0%, var(--color-tertiary) 50%, var(--color-secondary) 100%);
    background-size: 100% 200%;
    animation: gradientShift 3s ease infinite;
    z-index: 5;
}

/* ================================================================
   5. INTERACTIVE BUTTONS & INPUTS
   ================================================================ */

.btn {
    padding: 0.8rem 1.6rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-high);
    font-weight: 600;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

/* Shimmer Animation on Hover */
.btn::after {
    content: "";
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transition: none;
}

.btn:hover {
    background: rgba(46, 46, 46, 0.4);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.2);
}

.btn:hover::after {
    animation: shimmerSweep 0.8s ease-in-out forwards;
}

.btn:active {
    transform: scale(0.97);
    box-shadow: var(--shadow-inner);
}

/* Semantic Button Variants */
.btn-primary { background: var(--color-primary); color: #000; border: none; }
.btn-danger { background: var(--color-danger); color: #fff; border: none; }

/* Tactile Inputs */
.input-field {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    padding: 0.8rem 1rem;
    color: var(--text-high);
    box-shadow: var(--shadow-inner);
    outline: none;
    transition: border-color 0.3s ease;
}

.input-field:focus {
    border-color: var(--color-primary);
}

/* ================================================================
   6. UTILITIES
   ================================================================ */

.text-gradient {
    background: linear-gradient(90deg, var(--color-primary), var(--color-tertiary));
    -webkit-background-clip: text;
    background-clip: border-box;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
}

.glass-list-item {
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    transition: 0.2s;
    cursor: pointer;
    display: flex;
    align-items: center;
    color: var(--text-mid);
}

.glass-list-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-high);
    padding-left: 1.5rem; /* Animated slide effect */
}