/* AURA AI Creative Studio — Obsidian Design System */

/* Base */
body {
    font-family: "Manrope", sans-serif;
    background-color: #131318;
    color: #e4e1e9;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Material Symbols */
.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 200, 'GRAD' 0, 'opsz' 24;
    vertical-align: middle;
}

/* Core Gradients */
.obsidian-gradient {
    background: linear-gradient(135deg, #f2c36b 0%, #d4a853 100%);
}

.metallic-gradient {
    background: linear-gradient(135deg, #f2c36b 0%, #d4a853 100%);
}

/* Glass Effect */
.glass-panel {
    background: rgba(27, 27, 32, 0.7);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
}

/* Cinematic Background */
.cinematic-bg {
    background-size: cover;
    background-position: center;
    opacity: 0.15;
    position: absolute;
    inset: 0;
    z-index: 0;
}

/* Scrollbar Styles */
.custom-scrollbar::-webkit-scrollbar { width: 4px; }
.custom-scrollbar::-webkit-scrollbar-track { background: transparent; }
.custom-scrollbar::-webkit-scrollbar-thumb { background: #4e4637; border-radius: 10px; }

.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

/* Selection */
::selection {
    background-color: rgba(242, 195, 107, 0.3);
    color: #e4e1e9;
}

/* Global scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #131318; }
::-webkit-scrollbar-thumb { background: #1f1f25; border-radius: 10px; }

/* Input focus styles */
input:focus, textarea:focus, select:focus {
    outline: none;
}

/* Range slider */
input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    height: 4px;
    background: #2a292f;
    border-radius: 4px;
    cursor: pointer;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #f2c36b;
    cursor: pointer;
    border: 2px solid #131318;
}

input[type="range"]::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #f2c36b;
    cursor: pointer;
    border: 2px solid #131318;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

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

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

@keyframes pulse-gold {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

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

.animate-fade-in { animation: fadeIn 0.3s ease-out; }
.animate-slide-in-right { animation: slideInRight 0.3s ease-out; }
.animate-slide-in-up { animation: slideInUp 0.3s ease-out; }
.animate-pulse-gold { animation: pulse-gold 2s ease-in-out infinite; }

/* Toast container */
.toast-container {
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    pointer-events: none;
}

.toast-container > * {
    pointer-events: auto;
}

/* Masonry layout helper */
.masonry-grid {
    columns: 4;
    column-gap: 1rem;
}

.masonry-grid > * {
    break-inside: avoid;
    margin-bottom: 1rem;
}

@media (max-width: 1024px) {
    .masonry-grid { columns: 3; }
}

@media (max-width: 768px) {
    .masonry-grid { columns: 2; }
}

/* Skeleton loading */
.skeleton {
    background: linear-gradient(90deg, #1f1f25 25%, #2a292f 50%, #1f1f25 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s ease-in-out infinite;
}

@keyframes skeleton-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* OTP input boxes */
.otp-input {
    width: 3rem;
    height: 3.5rem;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
    background: transparent;
    border: none;
    border-bottom: 2px solid rgba(78, 70, 55, 0.4);
    color: #e4e1e9;
    caret-color: #f2c36b;
    transition: border-color 0.2s;
}

.otp-input:focus {
    border-bottom-color: #f2c36b;
    outline: none;
}

/* Mobile bottom nav */
.mobile-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background: rgba(19, 19, 24, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(78, 70, 55, 0.1);
    padding: 0.5rem 0;
    padding-bottom: env(safe-area-inset-bottom, 0.5rem);
}

/* Responsive helpers */
@media (max-width: 768px) {
    .hide-mobile { display: none !important; }
}

@media (min-width: 769px) {
    .show-mobile-only { display: none !important; }
    .mobile-nav { display: none !important; }
}

/* Print */
@media print {
    nav, footer, .mobile-nav, .toast-container { display: none !important; }
    body { background: white; color: black; }
}
