:root, html.light {
    --surface: #f8fafc;
    --surface-container-lowest: #ffffff;
    --surface-container-low: #f1f5f9;
    --surface-container: #e2e8f0;
    --surface-container-high: #cbd5e1;
    --surface-container-highest: #94a3b8;
    --on-surface: #0f172a;
    --on-surface-variant: #475569;
    --outline-variant: #e2e8f0;
    --outline: #94a3b8;
    --primary: #3b82f6;
    --secondary: #8b5cf6;
    --tertiary: #ec4899;
}

html.dark {
    --surface: #020617;
    --surface-container-lowest: #000000;
    --surface-container-low: #0f172a;
    --surface-container: #1e293b;
    --surface-container-high: #334155;
    --surface-container-highest: #475569;
    --on-surface: #f8fafc;
    --on-surface-variant: #94a3b8;
    --outline-variant: #1e293b;
    --outline: #334155;
    --primary: #3b82f6;
    --secondary: #8b5cf6;
    --tertiary: #ec4899;
}

body {
    background-color: var(--surface);
    color: var(--on-surface);
    transition: background-color 0.5s ease, color 0.5s ease;
}

.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

.glass-nav {
    background: rgba(var(--surface-rgb), 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
html.dark .glass-nav {
    background: rgba(2, 6, 23, 0.7);
}
html.light .glass-nav {
    background: rgba(255, 255, 255, 0.8);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.glass-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}
html.light .glass-card {
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.03);
}

.primary-gradient {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 50%, var(--tertiary) 100%);
    background-size: 200% 200%;
    animation: gradientMove 5s ease infinite;
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.animate-spin {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Glowing Orbs */
.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: -1;
    opacity: 0.5;
    animation: float 10s infinite ease-in-out alternate;
}
html.light .glow-orb {
    opacity: 0.3;
}
.glow-orb-1 {
    width: 400px;
    height: 400px;
    background: var(--primary);
    top: -100px;
    left: -100px;
}
.glow-orb-2 {
    width: 300px;
    height: 300px;
    background: var(--secondary);
    bottom: 20%;
    right: -50px;
    animation-delay: -5s;
}
.glow-orb-3 {
    width: 250px;
    height: 250px;
    background: var(--tertiary);
    top: 40%;
    left: 20%;
    animation-delay: -2s;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(30px, 50px) scale(1.1); }
}

/* Input Fields */
.premium-input {
    background: var(--surface-container-low);
    border: 1px solid var(--outline-variant);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.premium-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
    outline: none;
    background: var(--surface-container-lowest);
}

/* Hashtag Chips */
.hashtag-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    background: rgba(59, 130, 246, 0.1);
    color: var(--primary);
    font-weight: 500;
    font-size: 0.875rem;
    border: 1px solid rgba(59, 130, 246, 0.2);
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}
.hashtag-chip:hover {
    background: var(--primary);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}
.hashtag-chip:active {
    transform: translateY(0);
}

/* Skeleton Loader */
.skeleton {
    background: linear-gradient(90deg, var(--surface-container-low) 25%, var(--surface-container) 50%, var(--surface-container-low) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 9999px;
}
@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Custom Scrollbar for Dropdowns */
.custom-scrollbar::-webkit-scrollbar {
    width: 6px;
}
.custom-scrollbar::-webkit-scrollbar-track {
    background: transparent;
}
.custom-scrollbar::-webkit-scrollbar-thumb {
    background: var(--outline-variant);
    border-radius: 10px;
}
.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: var(--outline);
}

.dropdown-open .dropdown-arrow {
    transform: rotate(180deg);
}
