@import 'tailwindcss';

@variant dark (&:where(.dark, .dark *));

@source '../../vendor/laravel/framework/src/Illuminate/Pagination/resources/views/*.blade.php';
@source '../../storage/framework/views/*.php';
@source '../**/*.blade.php';
@source '../**/*.js';

@theme {
    --font-sans: 'Plus Jakarta Sans', 'Inter', ui-sans-serif, system-ui, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
    --font-display: 'Plus Jakarta Sans', cursive;
    --color-primary: var(--primary);
    --color-primary-dark: var(--primary-dark);
    --color-secondary: var(--secondary);
    --color-secondary-dark: var(--secondary-dark);
    --color-accent: var(--accent);
    --color-accent-dark: var(--accent-dark);
    --color-text: var(--text);
    --color-text-muted: var(--text-muted);
}

:root {
    --primary: #0f0f1a;
    --primary-dark: #1a1a2e;
    --secondary: #1a1a2e;
    --secondary-dark: #252540;
    --accent: #d4af37;
    --accent-dark: #b8942c;
    --accent-light: #f5d67a;
    --text: #ffffff;
    --text-muted: #9ca3af;
    --card-bg: #1e1e32;
    --card-border: rgba(212, 175, 55, 0.15);
    --gradient-gold: linear-gradient(135deg, #d4af37 0%, #f5d67a 50%, #d4af37 100%);
    --gradient-dark: linear-gradient(180deg, #0f0f1a 0%, #1a1a2e 100%);
    --shadow-glow: 0 0 30px rgba(212, 175, 55, 0.2);
    --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.dark {
    --primary: #0f0f1a;
    --primary-dark: #1a1a2e;
    --secondary: #1a1a2e;
    --secondary-dark: #252540;
    --accent: #d4af37;
    --accent-dark: #b8942c;
    --accent-light: #f5d67a;
    --text: #ffffff;
    --text-muted: #9ca3af;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--gradient-dark);
    min-height: 100vh;
}

/* Nav link hover underline */
.nav-link {
    position: relative;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-gold);
    transition: width 0.3s ease;
}
.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Sidebar Navigation */
.nav-sidebar-link {
    position: relative;
    overflow: hidden;
}
.nav-sidebar-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, rgba(212, 175, 55, 0.1) 0%, transparent 100%);
    transition: width 0.3s ease;
}
.nav-sidebar-link:hover::before {
    width: 100%;
}

/* Scroll reveal */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
.animate-fade-in-up {
    animation: fadeInUp 0.7s ease-out both;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
.animate-fade-in {
    animation: fadeIn 0.5s ease-out;
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-30px); }
    to { opacity: 1; transform: translateX(0); }
}
.animate-slide-in-left {
    animation: slideInLeft 0.6s ease-out;
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(30px); }
    to { opacity: 1; transform: translateX(0); }
}
.animate-slide-in-right {
    animation: slideInRight 0.6s ease-out;
}

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}
.animate-scale-in {
    animation: scaleIn 0.5s ease-out;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}
.animate-float {
    animation: float 3s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 20px rgba(212, 175, 55, 0.2); }
    50% { box-shadow: 0 0 40px rgba(212, 175, 55, 0.4); }
}
.animate-pulse-glow {
    animation: pulse-glow 2s ease-in-out infinite;
}

/* Toast */
@keyframes slideInRightToast {
    from { opacity: 0; transform: translateX(100%); }
    to { opacity: 1; transform: translateX(0); }
}
@keyframes slideOutRightToast {
    from { opacity: 1; transform: translateX(0); }
    to { opacity: 0; transform: translateX(100%); }
}
.toast-enter { animation: slideInRightToast 0.3s ease-out; }
.toast-leave { animation: slideOutRightToast 0.3s ease-in forwards; }

/* Glow effect for hero */
.glow::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
}

/* User waterfall scroll */
.user-scroll-list {
    animation: scrollUp 20s linear infinite;
}
.user-scroll-list:hover {
    animation-play-state: paused;
}
@keyframes scrollUp {
    0% { transform: translateY(0); }
    100% { transform: translateY(-50%); }
}

/* Polaroid effect */
.polaroid {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    cursor: pointer;
}
.polaroid:hover {
    transform: rotate(0deg) scale(1.08) !important;
}

/* Glass morphism card */
.glass-card {
    background: rgba(30, 30, 50, 0.6);
    backdrop-filter: blur(20px);
    border: 1px solid var(--card-border);
}

/* Gradient text */
.gradient-text {
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Button styles */
.btn-gold {
    background: var(--gradient-gold);
    color: #0f0f1a;
    font-weight: 600;
    transition: all 0.3s ease;
}
.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.btn-outline-gold {
    background: transparent;
    border: 2px solid var(--accent);
    color: var(--accent);
    transition: all 0.3s ease;
}
.btn-outline-gold:hover {
    background: var(--accent);
    color: #0f0f1a;
}

/* Card styles */
.card-gold {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    transition: all 0.3s ease;
}
.card-gold:hover {
    border-color: rgba(212, 175, 55, 0.4);
    box-shadow: var(--shadow-glow);
    transform: translateY(-5px);
}

/* Section divider */
.section-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, var(--card-border) 50%, transparent 100%);
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: var(--primary);
}
::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent-light);
}

/* Badge shimmer */
@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}
.shimmer {
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.2) 50%, transparent 100%);
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
}

/* Banner overlay gradient */
.banner-overlay {
    background: linear-gradient(135deg, rgba(15, 15, 26, 0.7) 0%, rgba(26, 26, 46, 0.5) 100%);
}

/* Responsive sidebar */
@media (max-width: 1024px) {
    .sidebar-desktop {
        display: none;
    }
}

/* Loading skeleton */
@keyframes skeleton-loading {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}
.skeleton {
    background: linear-gradient(90deg, var(--card-bg) 0%, var(--secondary-dark) 50%, var(--card-bg) 100%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
}

/* Ribbon effect for popular badge */
.ribbon {
    position: absolute;
    top: 15px;
    right: -35px;
    transform: rotate(45deg);
    padding: 5px 40px;
    font-size: 10px;
    font-weight: 700;
    color: #0f0f1a;
    background: var(--gradient-gold);
}

/* Confetti animation for success */
@keyframes confetti-fall {
    0% { transform: translateY(-100vh) rotate(0deg); opacity: 1; }
    100% { transform: translateY(100vh) rotate(720deg); opacity: 0; }
}
.confetti {
    position: fixed;
    animation: confetti-fall 3s ease-in-out forwards;
}

/* Input focus glow */
input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
}

/* Gradient border */
.gradient-border {
    position: relative;
}
.gradient-border::before {
    content: '';
    position: absolute;
    inset: 0;
    padding: 2px;
    background: var(--gradient-gold);
    border-radius: inherit;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    -webkit-mask-composite: xor;
    pointer-events: none;
}

/* Notification pulse */
.notification-dot {
    position: relative;
}
.notification-dot::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 10px;
    height: 10px;
    background: #ef4444;
    border-radius: 50%;
    animation: notification-pulse 2s infinite;
}
@keyframes notification-pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.5; }
}
