/*
Theme Name: E-Sport Gaming Community
Description: A modern WordPress theme for e-sport teams and gaming communities. Built with Elementor compatibility and responsive design.
Version: 1.0.0
Author: Your Name
Author URI: https://yoursite.com
Text Domain: esport-gaming
Requires at least: 5.0
Tested up to: 6.4
Requires PHP: 7.4
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Tags: gaming, esport, community, elementor, responsive, custom-header, custom-menu, featured-images, threaded-comments, translation-ready

E-Sport Gaming Community is a modern WordPress theme designed specifically for gaming communities, e-sport teams, and gaming-related websites. It features a responsive design, Elementor page builder compatibility, and a gaming-focused aesthetic.
*/

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #0a0a0a; /* Deep dark background */
    color: #ffffff;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: #ffffff;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1rem;
    color: #cccccc;
}

a {
    color: #ff6b35; /* Primary Accent Color: Orange */
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #ff8c5a;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.site-header {
    position: relative;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000; /* Increased Z-index to ensure visibility */
   
	background: transparent; /* Using dark theme colors for components */
}

/* Top Header Bar */
.header-top {
    background: #1a1a1a; /* Dark background */
    padding: 8px 0;
	
}

.header-top-content {
    display: flex; /* Added display flex back for desktop */
    justify-content: space-between;
    align-items: center;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: #ff6b35;
    color: white;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 14px;
}

.social-link:hover {
    background: #e55a2b;
    transform: translateY(-2px);
}

.top-navigation {
    display: flex;
    align-items: center;
    gap: 8px;
}

.top-nav-link {
    color: white;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.top-nav-link:hover {
    color: #ff6b35;
}

.nav-separator {
    color: white;
    font-size: 14px;
}

/* Bottom Header Bar */
.header-bottom {
    background: #1f2937; /* Slightly lighter dark background for main nav */
    padding: 15px 0;
    border-bottom: 1px solid #374151; /* Darker border */
}

.header-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 700;
}

.logo-icon {
    font-size: 1.8rem;
    color: #ff6b35;
}

.logo-text {
    color: #ffffff; /* Ensured logo text is white for dark header */
}

.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.main-navigation a {
    color: #ffffff; /* Ensured desktop links are white */
    font-weight: 500;
    text-decoration: none;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 4px;
}

.main-navigation a:hover {
    color: #ff6b35;
}

.dropdown-arrow {
    font-size: 12px;
    color: #ff6b35; /* Change arrow color for visibility */
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.join-member-btn {
    background: #ff6b35;
    color: white;
    padding: 12px 24px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
}

.join-member-btn:hover {
    background: #e55a2b;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

.controller-icon {
    font-size: 20px;
    color: #ff6b35; /* Ensured icon is visible */
}

/* Main Content */
.site-main {
    margin-top: 100px;
    min-height: calc(100vh - 180px);
}

/* Footer */
.site-footer {
    background: #f0f0f0; /* Light footer background, as requested */
	color: #333333; /* Dark text for contrast */
    padding: 3rem 0 1rem;
    margin-top: 3rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-widget h3 {
    color: #ff6b35; /* Keep accent color */
    margin-bottom: 1rem;
}

.footer-widget p,
.footer-widget a {
    color: #555555; /* Darker text for readability */
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #cccccc; /* Lighter border for light background */
    color: #555555; /* Darker text for readability */
}

/* Gaming-specific styles */
.gaming-button {
    background: linear-gradient(45deg, #ff6b35, #f7931e);
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.gaming-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 53, 0.4);
}

/* Responsive Design (Mobile First Adjustments) */
@media (max-width: 768px) {
    /* Top Bar Mobile Layout */
    .header-top-content {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    /* Bottom Bar Mobile Layout - Maintained for consistency but simplified */
    .header-bottom-content {
        display: flex;
        flex-direction: row; /* Keep logo and toggle on one row */
        justify-content: space-between;
        align-items: center;
        width: 100%;
    }
    
    .header-actions {
        display: none; /* Hide actions on mobile for cleaner header */
    }

    /* Mobile Menu Toggle */
    .menu-toggle {
        display: block;
        color: #ff6b35; /* Make the icon color bright orange */
        order: 2; /* Ensure toggle button is on the right */
    }

    .menu-toggle-icon span {
        background: #ff6b35; /* Orange lines */
    }

    /* Mobile Menu Dropdown */
    .main-navigation {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #1a1a1a; /* Dark background for mobile dropdown */
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 999; /* Ensure it is above page content */
    }
    
    .main-navigation.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .main-navigation ul {
        flex-direction: column;
        padding: 1rem 0;
        gap: 0; /* Remove gap between list items */
    }
    
    .main-navigation li {
        width: 100%;
    }

    .main-navigation a {
        color: #ffffff; /* White text on dark mobile background */
        padding: 15px 20px; /* Better tap target size */
        border-bottom: 1px solid #2a2a2a;
        width: 100%;
        display: block;
        text-align: left;
    }
    
    .main-navigation a:hover {
        background: #2a2a2a;
        color: #ff6b35;
    }
    
    .team-grid,
    .tournaments-grid {
        grid-template-columns: 1fr;
    }
    
    .author-bio {
        flex-direction: column;
        text-align: center;
    }
    
    .post-navigation .nav-links {
        flex-direction: column;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .back-to-top {
		visibility:hidden
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .search-form-wrapper,
    .newsletter-form {
        flex-direction: column;
    }
}

/* Elementor Compatibility */
.elementor-page .site-main {
    margin-top: 0;
}

/* WordPress Core Styles */
.alignleft {
    float: left;
    margin-right: 1rem;
}

.alignright {
    float: right;
    margin-left: 1rem;
}

.aligncenter {
    display: block;
    margin: 0 auto;
}

.wp-caption {
    max-width: 100%;
}

.wp-caption-text {
    font-size: 0.9rem;
    color: #888;
    margin-top: 0.5rem;
}

/* Comments */
.comment-list {
    list-style: none;
}

.comment {
    margin-bottom: 2rem;
    padding: 1rem;
    background: #1a1a1a;
    border-radius: 5px;
}

.comment-author {
    font-weight: 600;
    color: #ff6b35;
}

.comment-meta {
    font-size: 0.9rem;
    color: #888;
    margin-bottom: 0.5rem;
}

/* Forms */
input[type="text"],
input[type="email"],
input[type="password"],
textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #333;
    border-radius: 5px;
    background: #1a1a1a;
    color: #ffffff;
    font-family: inherit;
}

input[type="submit"] {
    background: #ff6b35;
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
}

input[type="submit"]:hover {
    background: #e55a2b;
}

/* Additional Gaming Theme Styles */

/* Hero Section */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content {
    text-align: center;
    color: white;
    z-index: 3;
    position: relative;
}

.hero-title {
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.hero-description {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    max-width: 600px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.gaming-button-primary {
    background: linear-gradient(45deg, #ff6b35, #f7931e);
    font-size: 1.1rem;
    padding: 15px 40px;
}

.gaming-button-secondary {
    background: transparent;
    border: 2px solid #ff6b35;
    color: #ff6b35;
}

.gaming-button-secondary:hover {
    background: #ff6b35;
    color: white;
}

/* Team Grid */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.team-member-card {
    background: #1a1a1a;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #333;
}

.team-member-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255, 107, 53, 0.3);
}

.member-image {
    position: relative;
    overflow: hidden;
}

.member-image img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.team-member-card:hover .member-image img {
    transform: scale(1.05);
}

.member-info {
    padding: 1.5rem;
}

.member-name {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #ffffff;
}

.member-name a {
    color: inherit;
    text-decoration: none;
}

.gaming-name {
    color: #ff6b35;
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.member-role {
    color: #cccccc;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.member-social {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #cccccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.social-link:hover {
    color: #ff6b35;
}

/* Tournament Grid */
.tournaments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.tournament-card {
    background: #1a1a1a;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #333;
}

.tournament-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255, 107, 53, 0.3);
}

.tournament-image {
    position: relative;
    overflow: hidden;
}

.tournament-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.tournament-card:hover .tournament-image img {
    transform: scale(1.05);
}

.tournament-info {
    padding: 1.5rem;
}

.tournament-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.tournament-title a {
    color: #ffffff;
    text-decoration: none;
}

.tournament-date {
    color: #ff6b35;
    font-weight: 600;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tournament-excerpt {
    color: #cccccc;
    margin-bottom: 1.5rem;
}

/* Section Titles */
.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #ffffff;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(45deg, #ff6b35, #f7931e);
    border-radius: 2px;
}

/* Mobile Menu */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #ff6b35; /* Toggle icon color */
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.5rem;
}

.menu-toggle-icon {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.menu-toggle-icon span {
    width: 25px;
    height: 3px;
    background: #ff6b35; /* Toggle bar color */
    transition: all 0.3s ease;
}

.menu-toggle.active .menu-toggle-icon span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active .menu-toggle-icon span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active .menu-toggle-icon span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

.main-navigation ul {
    list-style: none;
    gap: 2rem;
}

.main-navigation a {
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 0.5rem 0;
}

.main-navigation a:hover {
    color: #ff6b35;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
   background:white
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

.back-to-top.visible {
    opacity: 1;
    visibility: hidden;
}

.back-to-top:hover {
	visibility:hidden
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 107, 53, 0.4);
}

/* Search Form */
.search-form-wrapper {
    display: flex;
    gap: 0.5rem;
    max-width: 400px;
}

.search-field {
    flex: 1;
    padding: 12px;
    border: 1px solid #333;
    border-radius: 5px;
    background: #1a1a1a;
    color: #ffffff;
    font-family: inherit;
}

.search-submit {
    padding: 12px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Newsletter Form */
.newsletter-form {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.newsletter-form input[type="email"] {
    flex: 1;
    padding: 12px;
    border: 1px solid #333;
    border-radius: 5px;
    background: #1a1a1a;
    color: #ffffff;
}

.newsletter-success {
    color: #4CAF50;
    font-weight: 600;
}

/* Social Links */
.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links .social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #1a1a1a;
    color: #cccccc;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-links .social-link:hover {
    background: #ff6b35;
    color: white;
    transform: translateY(-2px);
}

/* Footer Menu */
.footer-menu {
    list-style: none;
    padding: 0;
}

.footer-menu li {
    margin-bottom: 0.5rem;
}

.footer-menu a {
    color: #cccccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-menu a:hover {
    color: #ff6b35;
}

/* Author Bio */
.author-bio {
    display: flex;
    gap: 1rem;
    padding: 2rem;
    background: #1a1a1a;
    border-radius: 10px;
    margin: 2rem 0;
}

.author-avatar img {
    border-radius: 50%;
}

.author-title {
    margin-bottom: 0.5rem;
    color: #ff6b35;
}

.author-description {
    color: #cccccc;
    margin: 0;
}

/* Post Navigation */
.post-navigation {
    margin: 3rem 0;
    padding: 2rem;
    background: #1a1a1a;
    border-radius: 10px;
}

.post-navigation .nav-links {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
}

.post-navigation .nav-previous,
.post-navigation .nav-next {
    flex: 1;
}

.post-navigation .nav-subtitle {
    display: block;
    color: #ff6b35;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.post-navigation .nav-title {
    color: #ffffff;
    font-weight: 500;
}

/* Member Stats */
.member-stats {
    background: #1a1a1a;
    padding: 2rem;
    border-radius: 10px;
    margin: 2rem 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.stat-item {
    text-align: center;
    padding: 1rem;
    background: #2a2a2a;
    border-radius: 5px;
}

.stat-label {
    display: block;
    color: #cccccc;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.stat-value {
    display: block;
    color: #ff6b35;
    font-size: 1.5rem;
    font-weight: 700;
}
