/* ============================================
   TAGart Liquid Glass Theme
   Modern glassmorphism with iOS/visionOS vibes
   ============================================ */

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

:root {
    /* Core palette */
    --glass-white: rgba(255, 255, 255, 0.12);
    --glass-white-strong: rgba(255, 255, 255, 0.18);
    --glass-border: rgba(255, 255, 255, 0.25);
    --glass-border-subtle: rgba(255, 255, 255, 0.1);
    --glass-shadow: rgba(0, 0, 0, 0.25);
    --glass-glow: rgba(255, 255, 255, 0.05);
    
    /* Accent colors */
    --accent-primary: #7c3aed;
    --accent-secondary: #ec4899;
    --accent-gradient: linear-gradient(135deg, #7c3aed 0%, #ec4899 50%, #f97316 100%);
    
    /* Text */
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-muted: rgba(255, 255, 255, 0.5);
    
    /* Backgrounds */
    --bg-gradient: linear-gradient(135deg, #0f0f23 0%, #1a1a3e 25%, #2d1b4e 50%, #1e3a5f 75%, #0f172a 100%);
    --panel-bg: rgba(255, 255, 255, 0.08);
    --panel-bg-hover: rgba(255, 255, 255, 0.12);
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-gradient);
    background-attachment: fixed;
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Optional background image overlay */
body.has-bg-image {
    background: 
        linear-gradient(135deg, rgba(15, 15, 35, 0.85) 0%, rgba(26, 26, 62, 0.8) 50%, rgba(45, 27, 78, 0.85) 100%),
        url('../branding/background-desktop.webp') center center / cover no-repeat fixed;
}

/* ============================================
   Liquid Glass Components
   ============================================ */

.glass-panel,
.glass-card,
.panel {
    background: var(--glass-white);
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    box-shadow: 
        0 8px 32px var(--glass-shadow),
        inset 0 1px 0 var(--glass-glow),
        0 0 0 1px var(--glass-border-subtle);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-panel:hover,
.glass-card:hover {
    background: var(--glass-white-strong);
    border-color: rgba(255, 255, 255, 0.35);
    box-shadow: 
        0 12px 48px var(--glass-shadow),
        inset 0 1px 0 rgba(255, 255, 255, 0.15),
        0 0 0 1px var(--glass-border);
    transform: translateY(-2px);
}

/* Stronger glass effect for important elements */
.glass-strong {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(60px) saturate(200%);
    -webkit-backdrop-filter: blur(60px) saturate(200%);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Frosted inner panels */
.glass-inner {
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border-subtle);
    border-radius: 16px;
}

/* ============================================
   Brand Header
   ============================================ */

.brand-header {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand-title {
    margin: 0;
    font-size: 0;
    line-height: 0;
}

.brand-title img {
    height: 80px;
    width: auto;
    display: block;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.3));
    transition: transform 0.3s ease, filter 0.3s ease;
}

.brand-title img:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 6px 20px rgba(124, 58, 237, 0.4));
}

/* Logo variations */
.logo {
    font-size: 2rem;
    font-weight: 800;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
}

.logo img {
    height: 50px;
    transition: transform 0.3s ease;
}

.logo img:hover {
    transform: scale(1.05);
}

/* ============================================
   Navigation
   ============================================ */

nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 2rem;
    background: var(--glass-white);
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    border-bottom: 1px solid var(--glass-border-subtle);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

nav.scrolled {
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 8px 32px var(--glass-shadow);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-menu a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    position: relative;
    padding: 0.5rem 0;
    transition: all 0.3s ease;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent-gradient);
    transition: all 0.3s ease;
    transform: translateX(-50%);
    border-radius: 1px;
}

.nav-menu a:hover {
    color: var(--accent-primary);
}

.nav-menu a:hover::after {
    width: 100%;
}

/* ============================================
   Buttons
   ============================================ */

.btn,
button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
}

.btn {
    background: var(--glass-white);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    color: var(--text-primary);
    border: 1px solid var(--glass-border-subtle);
}

.btn:hover {
    background: var(--glass-white-strong);
    border-color: var(--glass-border);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px var(--glass-shadow);
}

.btn-primary,
.btn.primary {
    background: var(--accent-gradient);
    color: white;
    border: none;
    box-shadow: 0 4px 20px rgba(124, 58, 237, 0.4);
}

.btn-primary:hover,
.btn.primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(124, 58, 237, 0.5);
}

.btn.good {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    border: none;
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.3);
}

.btn.good:hover {
    box-shadow: 0 8px 30px rgba(16, 185, 129, 0.4);
}

.btn.blue {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    border: none;
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.3);
}

.btn.blue:hover {
    box-shadow: 0 8px 30px rgba(59, 130, 246, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--glass-border);
}

.btn-secondary:hover {
    background: var(--glass-white);
    border-color: var(--accent-primary);
}

/* ============================================
   Form Elements
   ============================================ */

input[type="text"],
input[type="email"],
input[type="number"],
input[type="range"],
select,
textarea {
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border-subtle);
    border-radius: 12px;
    padding: 12px 16px;
    color: var(--text-primary);
    font-size: 14px;
    transition: all 0.3s ease;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.2);
    background: rgba(0, 0, 0, 0.4);
}

input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    height: 6px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    padding: 0;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    background: var(--accent-gradient);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(124, 58, 237, 0.4);
}

input[type="range"]::-moz-range-thumb {
    width: 18px;
    height: 18px;
    background: var(--accent-gradient);
    border-radius: 50%;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 8px rgba(124, 58, 237, 0.4);
}

label {
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* ============================================
   Chips / Tags
   ============================================ */

.chip {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    background: var(--glass-white);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border-subtle);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: capitalize;
}

.chip:hover {
    background: var(--glass-white-strong);
    color: var(--text-primary);
    border-color: var(--glass-border);
}

.chip.active {
    background: var(--accent-gradient);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 16px rgba(124, 58, 237, 0.3);
}

/* ============================================
   Cards & Containers
   ============================================ */

.wrap {
    max-width: 1100px;
    margin: 0 auto;
    padding: 24px;
}

.row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

.grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.panel {
    padding: 16px;
}

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

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
}

h1 {
    font-size: 2.5rem;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

.hint {
    color: var(--text-muted);
    font-size: 14px;
}

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

footer {
    padding: 3rem 2rem 2rem;
    margin-top: auto;
    background: var(--glass-white);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    border-top: 1px solid var(--glass-border-subtle);
    text-align: center;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.social-link {
    width: 50px;
    height: 50px;
    background: var(--glass-white);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border-subtle);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--accent-gradient);
    border-color: transparent;
    transform: translateY(-4px) scale(1.1);
    box-shadow: 0 8px 24px rgba(124, 58, 237, 0.4);
}

.footer-text {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ============================================
   Brand Shell Layout
   ============================================ */

.brand-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.brand-content {
    flex: 1 1 auto;
}

/* ============================================
   Sections
   ============================================ */

.section {
    padding: 6rem 2rem;
}

.section-title {
    font-size: 3rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 3rem;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

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

@keyframes fadeSlideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(124, 58, 237, 0.3);
    }
    50% {
        box-shadow: 0 0 40px rgba(124, 58, 237, 0.5);
    }
}

.animate-in {
    animation: fadeSlideUp 0.6s ease-out forwards;
}

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

@media (max-width: 768px) {
    .brand-header {
        padding: 16px;
    }
    
    .brand-title img {
        height: 60px;
    }
    
    .nav-menu {
        display: none;
    }
    
    .wrap {
        padding: 16px;
    }
    
    h1 {
        font-size: 1.75rem;
    }
    
    .section {
        padding: 4rem 1.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .row {
        gap: 8px;
    }
    
    .btn {
        padding: 10px 16px;
        font-size: 13px;
    }
    
    .glass-panel,
    .glass-card,
    .panel {
        border-radius: 16px;
    }
}

@media (max-width: 480px) {
    .brand-title img {
        height: 50px;
    }
    
    .grid {
        grid-template-columns: 1fr;
    }
    
    .chip {
        padding: 6px 12px;
        font-size: 12px;
    }
}

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

.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }

/* Hide scrollbar but keep functionality */
.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.no-scrollbar::-webkit-scrollbar {
    display: none;
}

/* Glass scrollbar for content areas */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}
