/**
 * Team Exciting Official Style
 * Matches the design of team-exciting.de
 * Version: 3.0.0
 * @package dyat
 */

/* ============================================
   CSS VARIABLES - TEAM EXCITING BRAND
   ============================================ */
:root {
    /* Brand Colors */
    --te-orange: #ff6600;
    --te-orange-bright: #ff7722;
    --te-orange-dark: #cc5500;
    --te-red: #ff0000;
    --te-red-dark: #cc0000;

    /* Background Colors */
    --te-black: #020202;
    --te-dark-900: #0a0a0a;
    --te-dark-800: #101010;
    --te-dark-700: #1a1a1a;

    /* Text Colors */
    --te-text-primary: #eaeaea;
    --te-text-secondary: #cccccc;
    --te-text-muted: #999999;

    /* Typography */
    --te-font-primary: "Poppins", -apple-system, BlinkMacSystemFont, sans-serif;

    /* Effects */
    --te-glow-orange: 0 0 20px rgba(255, 102, 0, 0.6);
    --te-glow-red: 0 0 20px rgba(255, 0, 0, 0.6);
    --te-shadow-heavy: 0 10px 40px rgba(0, 0, 0, 0.8);
}

/* ============================================
   GLOBAL RESET & BASE
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--te-font-primary);
    font-size: 16px;
    line-height: 1.7;
    color: var(--te-text-primary);
    background: var(--te-black);
    overflow-x: hidden;
}

/* Radial Gradient Background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, rgba(255, 102, 0, 0.08) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--te-font-primary);
    font-weight: 700;
    text-transform: uppercase;
    color: var(--te-text-primary);
    line-height: 1.2;
    letter-spacing: 0.05em;
}

h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    text-shadow: var(--te-glow-orange);
    animation: glowPulse 3s ease-in-out infinite;
}

h2 {
    font-size: clamp(2rem, 4vw, 3.5rem);
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
}

p {
    color: var(--te-text-secondary);
    margin-bottom: 1rem;
}

a {
    color: var(--te-orange);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--te-orange-bright);
    text-shadow: var(--te-glow-orange);
}

/* ============================================
   NAVBAR
   ============================================ */
.navbar-area {
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(2, 2, 2, 0.95) !important;
    backdrop-filter: blur(10px);
    border-bottom: 2px solid var(--te-orange);
    box-shadow: 0 4px 20px rgba(255, 102, 0, 0.3);
    z-index: 9999;
}

.navbar-area .logo img {
    filter: drop-shadow(var(--te-glow-orange));
    transition: all 0.3s ease;
}

.navbar-area .logo:hover img {
    filter: drop-shadow(0 0 30px rgba(255, 102, 0, 0.8));
    transform: scale(1.05);
}

.navbar-nav li a {
    color: var(--te-text-primary) !important;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 1rem 1.5rem !important;
    position: relative;
    transition: all 0.3s ease;
}

.navbar-nav li a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--te-orange), var(--te-red));
    transform: translateX(-50%);
    transition: width 0.3s ease;
}

.navbar-nav li a:hover,
.navbar-nav li.current-menu-item a {
    color: var(--te-orange) !important;
    text-shadow: var(--te-glow-orange);
}

.navbar-nav li a:hover::before,
.navbar-nav li.current-menu-item a::before {
    width: 80%;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn,
.btn-main,
button.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    font-family: var(--te-font-primary);
    font-size: 0.9375rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #ffffff;
    background: linear-gradient(135deg, var(--te-orange), var(--te-red));
    border: 2px solid var(--te-orange);
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: var(--te-glow-orange);
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 0 40px rgba(255, 102, 0, 0.8), var(--te-shadow-heavy);
    border-color: var(--te-orange-bright);
}

.btn:hover::before {
    left: 100%;
}

.btn:active {
    transform: translateY(-1px) scale(1.02);
}

/* ============================================
   CARDS & BOXES
   ============================================ */
.card,
.featured-box,
.post-card,
.team-member {
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.8), rgba(10, 10, 10, 0.9));
    border: 2px solid rgba(255, 102, 0, 0.2);
    border-radius: 15px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 102, 0, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card:hover {
    border-color: var(--te-orange);
    transform: translateY(-10px);
    box-shadow: 0 0 40px rgba(255, 102, 0, 0.5), var(--te-shadow-heavy);
}

.card:hover::before {
    opacity: 1;
    animation: rotate 10s linear infinite;
}

/* ============================================
   HERO SECTIONS
   ============================================ */
.hero,
.page-hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8rem 0 4rem;
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, var(--te-black) 0%, var(--te-dark-900) 100%);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(ellipse at top, rgba(255, 102, 0, 0.2), transparent 50%),
        radial-gradient(ellipse at bottom, rgba(255, 0, 0, 0.15), transparent 50%);
    animation: pulse 8s ease-in-out infinite;
}

.hero-title,
.page-title {
    font-size: clamp(3rem, 8vw, 6rem);
    background: linear-gradient(135deg, #ffffff, var(--te-orange));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: slideInUp 0.8s ease-out, glowPulse 3s ease-in-out infinite 1s;
}

/* ============================================
   SECTIONS
   ============================================ */
section,
.section {
    padding: 5rem 0;
    position: relative;
    z-index: 1;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, var(--te-orange), var(--te-red));
    margin: 1rem auto;
    box-shadow: var(--te-glow-orange);
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer,
.footer-redesign {
    background: var(--te-black);
    border-top: 2px solid var(--te-orange);
    box-shadow: 0 -4px 20px rgba(255, 102, 0, 0.3);
}

.footer-widget h3,
.footer-widget .widget-title {
    color: var(--te-orange);
    text-shadow: var(--te-glow-orange);
}

.footer-widget a {
    color: var(--te-text-secondary);
    transition: all 0.3s ease;
}

.footer-widget a:hover {
    color: var(--te-orange);
    padding-left: 1rem;
    text-shadow: var(--te-glow-orange);
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes glowPulse {
    0%, 100% {
        text-shadow: 0 0 20px rgba(255, 102, 0, 0.6);
    }
    50% {
        text-shadow: 0 0 40px rgba(255, 102, 0, 0.9);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Fade in on scroll */
.fade-in {
    opacity: 0;
    animation: fadeIn 0.8s ease-out forwards;
}

/* Slide up animation */
.slide-up {
    opacity: 0;
    transform: translateY(30px);
    animation: slideInUp 0.8s ease-out forwards;
}

/* ============================================
   HOVER EFFECTS
   ============================================ */
.hover-glow {
    transition: all 0.3s ease;
}

.hover-glow:hover {
    transform: scale(1.05);
    box-shadow: var(--te-glow-orange);
}

/* ============================================
   CUSTOM SCROLLBAR
   ============================================ */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: var(--te-dark-900);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--te-orange), var(--te-red));
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--te-orange-bright);
}

/* ============================================
   GLOW EFFECTS
   ============================================ */
.glow-orange {
    box-shadow: var(--te-glow-orange);
}

.glow-red {
    box-shadow: var(--te-glow-red);
}

.text-glow-orange {
    text-shadow: var(--te-glow-orange);
}

.text-glow-red {
    text-shadow: var(--te-glow-red);
}

/* ============================================
   TEAM EXCITING SPECIFIC ELEMENTS
   ============================================ */
.te-gradient-text {
    background: linear-gradient(135deg, var(--te-orange), var(--te-red));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.te-border-glow {
    border: 2px solid var(--te-orange);
    box-shadow: 0 0 20px rgba(255, 102, 0, 0.4);
}

.te-border-glow:hover {
    box-shadow: 0 0 40px rgba(255, 102, 0, 0.8);
}

/* ============================================
   TOURNAMENT INTEGRATION
   ============================================ */
.trn-page,
.tournament-section {
    background: var(--te-black);
}

.trn-container h1,
.trn-container h2,
.trn-container h3 {
    color: var(--te-orange);
    text-shadow: var(--te-glow-orange);
}

.trn-brackets-match {
    border-color: var(--te-orange) !important;
}

.trn-brackets-match:hover {
    box-shadow: var(--te-glow-orange);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 991px) {
    .navbar-nav li a {
        padding: 0.75rem 1rem !important;
    }
}

@media (max-width: 768px) {
    section,
    .section {
        padding: 3rem 0;
    }

    .card,
    .featured-box {
        padding: 1.5rem;
    }
}

@media (max-width: 576px) {
    .btn {
        padding: 0.875rem 1.5rem;
        font-size: 0.875rem;
    }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.bg-dark { background: var(--te-dark-900) !important; }
.bg-darker { background: var(--te-black) !important; }
.text-orange { color: var(--te-orange) !important; }
.text-red { color: var(--te-red) !important; }
.border-orange { border-color: var(--te-orange) !important; }
.border-red { border-color: var(--te-red) !important; }

/* Spacing helpers */
.mt-1 { margin-top: 0.5rem !important; }
.mt-2 { margin-top: 1rem !important; }
.mt-3 { margin-top: 1.5rem !important; }
.mt-4 { margin-top: 2rem !important; }
.mt-5 { margin-top: 3rem !important; }

.mb-1 { margin-bottom: 0.5rem !important; }
.mb-2 { margin-bottom: 1rem !important; }
.mb-3 { margin-bottom: 1.5rem !important; }
.mb-4 { margin-bottom: 2rem !important; }
.mb-5 { margin-bottom: 3rem !important; }

.pt-1 { padding-top: 0.5rem !important; }
.pt-2 { padding-top: 1rem !important; }
.pt-3 { padding-top: 1.5rem !important; }
.pt-4 { padding-top: 2rem !important; }
.pt-5 { padding-top: 3rem !important; }

.pb-1 { padding-bottom: 0.5rem !important; }
.pb-2 { padding-bottom: 1rem !important; }
.pb-3 { padding-bottom: 1.5rem !important; }
.pb-4 { padding-bottom: 2rem !important; }
.pb-5 { padding-bottom: 3rem !important; }

/* Text alignment */
.text-center { text-align: center !important; }
.text-left { text-align: left !important; }
.text-right { text-align: right !important; }
