/* Reset and Global Styles */
/* Import Oxium font */
@import url('https://fonts.googleapis.com/css2?family=Oxanium:wght@400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #3a3a3a;
    --secondary-color: #1e1e1e;
    --accent-color: #e78f3c;
    --highlight-color: #ff0000;
    --highlight-color-rgb: 255, 0, 0;
    --text-color: #f5f5f5;
    --light-bg: #2c2c2c;
    --dark-bg: #121212;
    --transition: all 0.3s ease;
}

/* Custom Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgb(36, 36, 36);
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 0, 0);
}

body {
    font-family: 'Oxanium', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--dark-bg);
}

a {
    text-decoration: none;
    color: var(--text-color);
    transition: var(--transition);
}

a:hover {
    color: var(--accent-color);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--accent-color);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
}

.btn:hover {
    background-color: #c0392b;
}

/* Footer Styles */
.site-footer {
    background-color: var(--secondary-color);
    color: var(--text-color);
    padding: 20px 0;
    text-align: center;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Video Lazy Loading Styles */
/* Default state for lazy videos */
.lazy-video {
    background-color: #1a1a1a;
    transition: opacity 0.3s ease-in-out;
}

/* Loading state */
.lazy-video.video-loading {
    opacity: 0.7;
    position: relative;
}

.lazy-video.video-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #333;
    border-top: 2px solid #fff;
    border-radius: 50%;
    animation: video-loading-spin 1s linear infinite;
    z-index: 10;
}

@keyframes video-loading-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Loaded state */
.lazy-video.video-loaded {
    opacity: 1;
}

/* Playing state */
.lazy-video.video-playing {
    opacity: 1;
}

/* Error state */
.lazy-video.video-error {
    opacity: 0.5;
    background-color: #2a1a1a;
}

.lazy-video.video-error::after {
    content: '⚠';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #ff6b6b;
    font-size: 24px;
    z-index: 10;
}

/* Responsive Utilities */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .lazy-video.video-loading::after {
        width: 16px;
        height: 16px;
        margin: -8px 0 0 -8px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }
    
    .lazy-video {
        /* Reduce quality on small screens to improve performance */
        image-rendering: optimizeSpeed;
    }
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    .lazy-video {
        transition: none;
    }
    
    .lazy-video.video-loading::after {
        animation: none;
        border: 2px solid #666;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .lazy-video.video-loading::after {
        border-color: #000;
        border-top-color: #fff;
    }
    
    .lazy-video.video-error::after {
        color: #ff0000;
    }
} 