/*
Theme Name: Red Drogon
Theme URI: 
Author: Antigravity
Author URI: 
Description: Custom Elementor theme for Red Drogon
Version: 1.0.0
Text Domain: reddrogon
*/

/* Red Drogon Gaming Portal Styles */

:root {
    --primary-red: #dc2626;
    --dark-red: #991b1b;
    --darker-red: #7f1d1d;
    --bg-dark: #0a0a0a;
    --bg-darker: #050505;
    --text-light: #ffffff;
    --text-gray: #9ca3af;
    --text-dark-gray: #6b7280;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, var(--bg-dark) 0%, #1a0505 50%, var(--bg-dark) 100%);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Navigation */
.nav-link {
    color: var(--text-gray);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    padding: 8px 16px;
    border-radius: 6px;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-red);
    background: rgba(220, 38, 38, 0.1);
    transform: translateY(-2px);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-red);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 80%;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, rgba(10, 10, 10, 0.9) 0%, rgba(26, 5, 5, 0.9) 50%, rgba(10, 10, 10, 0.9) 100%);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="%23dc2626" stroke-width="0.5" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    z-index: -1;
}

/* Dragon Glow Effect */
.dragon-glow {
    position: relative;
    overflow: hidden;
}

.dragon-glow::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(220, 38, 38, 0.3) 0%, transparent 70%);
    animation: dragonPulse 4s ease-in-out infinite;
    z-index: -1;
}

@keyframes dragonPulse {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.1); }
}

/* Card Hover Effects */
article {
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

article:hover {
    border-color: var(--primary-red);
    box-shadow: 0 10px 30px rgba(220, 38, 38, 0.3);
    transform: translateY(-5px);
}

/* Gradient Text */
.gradient-text {
    background: linear-gradient(135deg, var(--primary-red), var(--dark-red));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, var(--primary-red), var(--dark-red));
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    color: white;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary::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;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(220, 38, 38, 0.4);
}

/* Section Cards */
.section-card {
    background: rgba(26, 5, 5, 0.6);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 30px;
    margin: 20px 0;
    border: 1px solid rgba(220, 38, 38, 0.3);
    transition: all 0.3s ease;
}

.section-card:hover {
    border-color: var(--primary-red);
    box-shadow: 0 0 30px rgba(220, 38, 38, 0.2);
}

/* Dragon Border */
.dragon-border {
    border: 2px solid transparent;
    border-image: linear-gradient(135deg, var(--primary-red), var(--dark-red)) 1;
    box-shadow: 0 0 20px rgba(220, 38, 38, 0.3);
}

/* Flame Text Effect */
.flame-text {
    text-shadow: 0 0 10px #dc2626, 0 0 20px #991b1b, 0 0 30px #7f1d1d;
    animation: flameFlicker 2s ease-in-out infinite alternate;
}

@keyframes flameFlicker {
    0% { text-shadow: 0 0 10px #dc2626, 0 0 20px #991b1b, 0 0 30px #7f1d1d; }
    100% { text-shadow: 0 0 15px #dc2626, 0 0 25px #991b1b, 0 0 35px #7f1d1d; }
}

/* Pulse Animation */
.pulse-animation {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Mobile Menu */
#mobileMenu {
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 8px;
    margin-top: 1rem;
}

#mobileMenu .nav-link {
    display: block;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(220, 38, 38, 0.2);
}

#mobileMenu .nav-link:last-child {
    border-bottom: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 3rem;
    }
    
    .hero-section h2 {
        font-size: 1.5rem;
    }
    
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .grid md\:grid-cols-3,
    .grid md\:grid-cols-4 {
        grid-template-columns: 1fr;
    }
    
    .grid md\:grid-cols-2 {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .hero-section .flex.space-x-4 {
        flex-direction: column;
        gap: 1rem;
    }
    
    .hero-section .flex.space-x-4 a {
        width: 100%;
        text-align: center;
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-red);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--dark-red);
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(220, 38, 38, 0.3);
    border-radius: 50%;
    border-top-color: var(--primary-red);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Hover Effects for Links */
a {
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-red);
}

/* Form Styling */
input, textarea, select {
    background: rgba(26, 5, 5, 0.8);
    border: 1px solid rgba(220, 38, 38, 0.3);
    color: var(--text-light);
    padding: 12px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--primary-red);
    box-shadow: 0 0 10px rgba(220, 38, 38, 0.3);
}

/* Footer */
footer {
    background: linear-gradient(135deg, #000000 0%, #1a0505 50%, #000000 100%);
}

/* Utility Classes */
.text-red-400 { color: var(--primary-red); }
.text-red-500 { color: #ef4444; }
.text-red-600 { color: var(--primary-red); }
.text-red-700 { color: var(--dark-red); }

.bg-red-400 { background-color: var(--primary-red); }
.bg-red-500 { background-color: #ef4444; }
.bg-red-600 { background-color: var(--primary-red); }
.bg-red-700 { background-color: var(--dark-red); }

.border-red-400 { border-color: var(--primary-red); }
.border-red-500 { border-color: #ef4444; }
.border-red-600 { border-color: var(--primary-red); }

.hover\:text-red-400:hover { color: var(--primary-red); }
.hover\:text-red-300:hover { color: #fca5a5; }

.hover\:bg-red-600:hover { background-color: var(--primary-red); }
.hover\:bg-red-700:hover { background-color: var(--dark-red); }

/* Dark Theme Overrides */
.bg-gray-800 { background-color: #1f2937; }
.bg-gray-900 { background-color: #111827; }
.text-gray-300 { color: #d1d5db; }
.text-gray-400 { color: #9ca3af; }
.text-gray-500 { color: #6b7280; }

/* Gradient Backgrounds */
.dragon-gradient {
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--dark-red) 50%, var(--darker-red) 100%);
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.6s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.slide-in-left {
    animation: slideInLeft 0.6s ease-out;
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-50px); }
    to { opacity: 1; transform: translateX(0); }
}

.slide-in-right {
    animation: slideInRight 0.6s ease-out;
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(50px); }
    to { opacity: 1; transform: translateX(0); }
}

/* Responsive Images */
img {
    max-width: 100%;
    height: auto;
}

/* Dragon Icon Animation */
.fa-dragon {
    animation: dragonFloat 3s ease-in-out infinite;
}

@keyframes dragonFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(5deg); }
}

/* News Ticker Styles */
.ticker-wrapper {
    position: relative;
    height: 30px;
    overflow: hidden;
}

.ticker-content {
    display: flex;
    animation: tickerScroll 30s linear infinite;
    white-space: nowrap;
}

@keyframes tickerScroll {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

/* Platform Comparison Cards */
.platform-card {
    background: linear-gradient(135deg, rgba(31, 41, 55, 0.8) 0%, rgba(17, 24, 39, 0.9) 100%);
    border: 1px solid rgba(220, 38, 38, 0.2);
    border-radius: 15px;
    padding: 25px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.platform-card:hover {
    border-color: var(--primary-red);
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(220, 38, 38, 0.3);
}

.platform-score {
    font-size: 3rem;
    font-weight: bold;
    background: linear-gradient(135deg, var(--primary-red), var(--dark-red));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Gaming Statistics */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.stat-card {
    background: rgba(31, 41, 55, 0.6);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    border: 1px solid rgba(220, 38, 38, 0.3);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: scale(1.05);
    border-color: var(--primary-red);
    box-shadow: 0 15px 30px rgba(220, 38, 38, 0.2);
}

.stat-number {
    font-size: 3.5rem;
    font-weight: bold;
    background: linear-gradient(135deg, var(--primary-red), #fca5a5);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-gray);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.stat-change {
    color: #10b981;
    font-size: 0.9rem;
    font-weight: bold;
}

/* Upcoming Releases */
.release-card {
    background: linear-gradient(135deg, rgba(31, 41, 55, 0.8) 0%, rgba(17, 24, 39, 0.9) 100%);
    border: 1px solid rgba(220, 38, 38, 0.2);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.4s ease;
    position: relative;
}

.release-card:hover {
    border-color: var(--primary-red);
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(220, 38, 38, 0.25);
}

.release-date {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    backdrop-filter: blur(10px);
}

/* Trending Section */
.trending-item {
    background: linear-gradient(135deg, rgba(31, 41, 55, 0.7) 0%, rgba(17, 24, 39, 0.8) 100%);
    border: 1px solid rgba(220, 38, 38, 0.15);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.trending-item:hover {
    border-color: var(--primary-red);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(220, 38, 38, 0.2);
}

.trending-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--primary-red);
    color: white;
    padding: 4px 8px;
    border-radius: 15px;
    font-size: 0.7rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Enhanced Animations */
.slide-up {
    animation: slideUp 0.8s ease-out;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(50px); }
    to { opacity: 1; transform: translateY(0); }
}

.bounce-in {
    animation: bounceIn 0.6s ease-out;
}

@keyframes bounceIn {
    0% { opacity: 0; transform: scale(0.3); }
    50% { opacity: 1; transform: scale(1.05); }
    70% { transform: scale(0.9); }
    100% { opacity: 1; transform: scale(1); }
}

/* Responsive Design for New Sections */
@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .platform-card {
        padding: 20px;
    }
    
    .platform-score {
        font-size: 2.5rem;
    }
    
    .ticker-content {
        animation-duration: 20s;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .stat-card {
        padding: 1.5rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .ticker-content {
        animation-duration: 15s;
    }
}

/* Dark Theme Enhancements */
.dark-gradient {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.9) 0%, rgba(26, 5, 5, 0.8) 50%, rgba(0, 0, 0, 0.9) 100%);
}

/* Glass Effect */
.glass-effect {
    background: rgba(31, 41, 55, 0.4);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(220, 38, 38, 0.2);
    border-radius: 15px;
}

.glass-effect:hover {
    border-color: var(--primary-red);
    background: rgba(31, 41, 55, 0.6);
}

/* Progress Bars */
.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(31, 41, 55, 0.8);
    border-radius: 4px;
    overflow: hidden;
    margin: 8px 0;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-red), var(--dark-red));
    border-radius: 4px;
    transition: width 0.8s ease;
}

/* Hover Glow Effect */
.hover-glow {
    transition: all 0.3s ease;
}

.hover-glow:hover {
    box-shadow: 0 0 30px rgba(220, 38, 38, 0.4);
    transform: scale(1.02);
}

/* Text Glow Effect */
.text-glow {
    text-shadow: 0 0 10px rgba(220, 38, 38, 0.5);
    transition: text-shadow 0.3s ease;
}

.text-glow:hover {
    text-shadow: 0 0 20px rgba(220, 38, 38, 0.8);
}
