/* Dream Playz - Custom Styling */

/* Root Variables */
:root {
    --primary-dark: #0a0e27;
    --secondary-dark: #1a1f3a;
    --accent-cyan: #00d4ff;
    --accent-emerald: #00ff88;
    --accent-orange: #ff6b35;
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--primary-dark);
    color: #e5e7eb;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    letter-spacing: -0.5px;
}

/* Links */
a {
    transition: var(--transition-smooth);
}

a:hover {
    text-decoration: none;
}

/* Buttons */
button, [role="button"] {
    cursor: pointer;
    transition: var(--transition-smooth);
}

button:hover {
    transform: translateY(-2px);
}

button:active {
    transform: translateY(0);
}

/* Forms */
input, textarea, select {
    transition: var(--transition-smooth);
}

input:focus, textarea:focus, select:focus {
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
}

/* Cards */
.card {
    background: var(--secondary-dark);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 0.5rem;
    transition: var(--transition-smooth);
}

.card:hover {
    border-color: var(--accent-cyan);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.1);
}

/* Gradient Text */
.gradient-text {
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-emerald));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Glass Morphism */
.glass {
    background: rgba(10, 14, 39, 0.4);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 212, 255, 0.1);
}

/* Animations */
@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 5px rgba(0, 212, 255, 0.3);
    }
    50% {
        box-shadow: 0 0 20px rgba(0, 212, 255, 0.6);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.glow {
    animation: glow 2s ease-in-out infinite;
}

.float {
    animation: float 3s ease-in-out infinite;
}

.slide-in-up {
    animation: slideInUp 0.5s ease-out;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--primary-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--accent-cyan);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-emerald);
}

/* Selection */
::selection {
    background-color: var(--accent-cyan);
    color: var(--primary-dark);
}

/* Print Styles */
@media print {
    body {
        background: white;
        color: black;
    }
    
    .no-print {
        display: none !important;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

/* Dark Mode (Already implemented) */
@media (prefers-color-scheme: dark) {
    body {
        background: var(--primary-dark);
        color: #e5e7eb;
    }
}

/* Utility Classes */
.text-shadow {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.no-select {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
}

.truncate-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Responsive Typography */
@media (max-width: 640px) {
    h1 {
        font-size: 1.875rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    h3 {
        font-size: 1.25rem;
    }
}

/* Performance Optimization */
@media (max-width: 768px) {
    /* Disable animations on mobile for better performance */
    .glow {
        animation: none;
        box-shadow: 0 0 10px rgba(0, 212, 255, 0.2) !important;
    }
}
