/* Laravel App CSS - CPanel Version with Tailwind CDN */

/* Import Tailwind via CDN in HTML head */
/* This file contains only custom styles */

/* Global Scale for 80% Zoom Effect */
html {
    font-size: 14px; /* Base font size reduction */
}

body {
    font-family: 'Rajdhani', sans-serif;
    background: #0f0f0f;
    color: #ffffff;
    transform-origin: top center;
    line-height: 1.4;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeSpeed;
    transform: translateZ(0);
    will-change: scroll-position;
}

/* Custom Container Styles */
.container {
    max-width: 1240px !important;
    margin: 0 auto;
    padding-left: 0.8rem;
    padding-right: 0.8rem;
}

/* Gaming Theme Colors */
:root {
    --primary-blue: #2d1b69;
    --primary-purple: #805ad5;
    --dark-bg: #0a0e1a;
    --card-bg: #1a1a2e;
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --accent-green: #4ade80;
    --accent-red: #ef4444;
    --accent-yellow: #f59e0b;
}

/* Performance Critical Optimizations */
* {
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-perspective: 1000;
    perspective: 1000;
}

img {
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    transform: translateZ(0);
    image-rendering: -webkit-optimize-contrast;
    image-rendering: optimize-contrast;
    image-rendering: crisp-edges;
}

/* Smooth scrolling with GPU acceleration */
html {
    scroll-behavior: smooth;
}

/* Gaming card hover effects */
.gaming-card {
    transition: transform 0.2s ease-out, box-shadow 0.2s ease-out;
    transform: translateZ(0);
    will-change: transform;
}

.gaming-card:hover {
    transform: translateZ(0) translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

/* News ticker animation */
.ticker-wrapper {
    position: relative;
    overflow: hidden;
    height: 40px;
}

.ticker-content {
    display: flex;
    align-items: center;
    white-space: nowrap;
    animation: scroll-left 120s linear infinite;
    will-change: transform;
    transform: translateZ(0);
}

@keyframes scroll-left {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

/* Loading states */
.content-loading {
    position: relative;
    background: linear-gradient(90deg, #374151 25%, #4b5563 50%, #374151 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 0.5rem;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Optimized button animations */
.btn-animated {
    position: relative;
    overflow: hidden;
    transition: all 0.2s ease-out;
    transform: translateZ(0);
}

.btn-animated::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease-out;
}

.btn-animated:hover::before {
    left: 100%;
}

/* Responsive design helpers */
@media (max-width: 768px) {
    html {
        font-size: 12px;
    }
    
    .container {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
}

/* Print styles */
@media print {
    * {
        background: white !important;
        color: black !important;
        box-shadow: none !important;
    }
} 