/* 
   Esporgunlugu.com - Main Stylesheet
   Created: July 2025
   Author: Cascade
   Description: Responsive stylesheet for Philippines esports website
*/

/* ---------- Reset & Base Styles ---------- */
:root {
    /* Primary color scheme - vibrant esports theme */
    --primary: #5e17eb;
    --primary-dark: #4912bf;
    --secondary: #ff4655;
    --secondary-dark: #e63e4a;
    --accent: #00d8ff;
    --dark: #0f1923;
    --light: #f7f7f7;
    --gray: #5c6a78;
    --gray-light: #dbe2e8;
    
    /* Typography */
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Roboto', sans-serif;
    
    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 2rem;
    --space-xl: 4rem;
}

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

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: var(--primary);
    transition: all 0.3s ease;
}

a:hover {
    color: var(--primary-dark);
}

img {
    max-width: 100%;
    height: auto;
}

ul {
    list-style: none;
}

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

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--dark);
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
}

.section-title {
    position: relative;
    padding-bottom: 1rem;
    margin-bottom: 2rem;
    text-align: center;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--secondary);
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-family: var(--font-heading);
}

.btn-primary {
    background-color: var(--primary);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    color: white;
}

.btn-secondary {
    background-color: var(--secondary);
    color: white;
}

.btn-secondary:hover {
    background-color: var(--secondary-dark);
    color: white;
}

.btn-outline {
    background-color: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-outline:hover {
    background-color: var(--primary);
    color: white;
}

/* ---------- Header ---------- */
header {
    background-color: var(--dark);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

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

.logo-container {
    display: flex;
    align-items: center;
}

.logo img {
    max-height: 40px;
}

.main-menu {
    display: flex;
}

.main-menu li {
    margin-left: 1.5rem;
}

.main-menu a {
    color: var(--light);
    font-weight: 500;
    font-family: var(--font-heading);
    position: relative;
    padding: 0.5rem 0;
}

.main-menu a:hover,
.main-menu a.active {
    color: var(--secondary);
}

.main-menu a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--secondary);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px 0;
    background-color: white;
    transition: all 0.3s ease;
}

/* ---------- Hero Section ---------- */
.hero {
    background: linear-gradient(135deg, var(--dark) 0%, #242e3d 100%);
    color: white;
    padding: 5rem 0;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/hero-pattern.svg');
    opacity: 0.1;
}

.hero-content {
    max-width: 700px;
    margin-bottom: 3rem;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: white;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 3rem;
}

.stat-box {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    flex: 1;
    min-width: 120px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 0.5rem;
}

.stat-text {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ---------- Featured Games ---------- */
.featured-games {
    padding: 5rem 0;
    background-color: white;
}

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

.game-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.game-img {
    height: 180px;
    background: linear-gradient(45deg, var(--primary) 0%, var(--accent) 100%);
    position: relative;
    overflow: hidden;
}

.game-content {
    padding: 1.5rem;
}

.game-content h3 {
    margin-bottom: 0.5rem;
}

.game-content p {
    color: var(--gray);
    margin-bottom: 1rem;
}

.game-content a {
    display: inline-block;
    color: var(--primary);
    font-weight: 500;
}

.games-source {
    text-align: right;
    color: var(--gray);
    font-size: 0.9rem;
}

/* ---------- Latest News ---------- */
.latest-news {
    padding: 5rem 0;
    background-color: #f5f7fa;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.news-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.news-card:hover {
    transform: translateY(-5px);
}

.news-card.featured {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.news-img {
    height: 220px;
    background: linear-gradient(45deg, var(--primary-dark), var(--primary));
}

.news-content {
    padding: 1.5rem;
}

.news-category {
    display: inline-block;
    background-color: var(--secondary);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    margin-bottom: 1rem;
}

.news-content h3 {
    margin-bottom: 0.75rem;
}

.news-meta {
    display: flex;
    gap: 1rem;
    color: var(--gray);
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

.read-more {
    font-weight: 500;
}

.view-more {
    margin-top: 3rem;
    text-align: center;
}

/* ---------- Tournaments ---------- */
.tournaments {
    padding: 5rem 0;
    background-color: white;
}

.tournaments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.tournament-card {
    display: flex;
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.tournament-card:hover {
    transform: translateY(-5px);
}

.tournament-date {
    background-color: var(--primary);
    color: white;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 80px;
}

.tournament-date .month {
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
}

.tournament-date .day {
    font-size: 1.8rem;
    font-weight: 700;
}

.tournament-content {
    padding: 1.5rem;
    flex-grow: 1;
}

.tournament-content h3 {
    margin-bottom: 0.5rem;
}

.tournament-game {
    color: var(--gray);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.tournament-prize {
    color: var(--secondary);
    font-weight: 500;
    margin-bottom: 1rem;
}

.tournament-details {
    display: inline-block;
    color: var(--primary);
    font-weight: 500;
}

/* ---------- Newsletter ---------- */
.newsletter {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    color: white;
}

.newsletter-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.newsletter-content h2 {
    color: white;
}

.newsletter-content p {
    opacity: 0.9;
    margin-bottom: 2rem;
}

.newsletter-form {
    display: flex;
    gap: 0.5rem;
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-form input {
    flex-grow: 1;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 1rem;
}

.newsletter-form input:focus {
    outline: none;
    box-shadow: 0 0 0 2px var(--accent);
}

/* ---------- Footer ---------- */
footer {
    background-color: var(--dark);
    color: #bdc3c7;
    padding: 4rem 0 2rem;
}

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

.footer-about {
    grid-column: span 2;
}

.footer-logo {
    display: block;
    margin-bottom: 1rem;
    max-width: 140px;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: var(--primary);
}

.social-links svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: white;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.social-links a:hover svg {
    transform: scale(1.1);
}

footer h3 {
    color: white;
    margin-bottom: 1.2rem;
    font-size: 1.2rem;
}

footer ul li {
    margin-bottom: 0.8rem;
}

footer a {
    color: #bdc3c7;
}

footer a:hover {
    color: white;
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

/* ---------- Responsive Styles ---------- */
@media (max-width: 992px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .news-card.featured {
        grid-column: auto;
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    .main-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--dark);
        flex-direction: column;
        align-items: center;
        padding: 1rem 0;
        clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
        transition: clip-path 0.3s ease;
        z-index: 100;
    }
    
    .main-menu.active {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    }
    
    .main-menu li {
        margin: 0.5rem 0;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .footer-grid {
        gap: 2rem;
    }
    
    .footer-about {
        grid-column: span 1;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-links {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .section-title {
        font-size: 1.8rem;
    }
    
    .stat-box {
        flex-basis: 100%;
    }
    
    .games-grid,
    .news-grid,
    .tournaments-grid {
        grid-template-columns: 1fr;
    }
}
