/* 
   BlogOficialYF Styles
   Modern, responsive design with SEO optimizations
*/

/* Base Styles & CSS Reset */
:root {
    /* Primary Color Palette */
    --primary-color: #3CB371;      /* Medium Sea Green */
    --secondary-color: #1E5631;    /* Dark Green */
    --accent-color: #FFA500;       /* Orange */
    --text-color: #333333;         /* Dark Gray */
    --light-text: #FFFFFF;         /* White */
    --background-color: #F8F8F8;   /* Light Gray */
    --section-bg: #FFFFFF;         /* White */
    --footer-bg: #2A2A2A;          /* Dark Gray */
    --footer-text: #EEEEEE;        /* Light Gray */
    
    /* Typography */
    --heading-font: 'Montserrat', sans-serif;
    --body-font: 'Roboto', sans-serif;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    
    /* Border Radius */
    --border-radius: 8px;
    
    /* Transitions */
    --transition-speed: 0.3s;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--body-font);
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--background-color);
}

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

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

a:hover, a:focus {
    color: var(--primary-color);
    text-decoration: underline;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--spacing-sm);
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
    position: relative;
    padding-bottom: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
}

h2::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
    bottom: 0;
    left: 0;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-sm);
}

p {
    margin-bottom: var(--spacing-md);
}

/* Layout & Container */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

section {
    padding: var(--spacing-lg) 0;
    background-color: var(--section-bg);
}

section:nth-child(even) {
    background-color: var(--background-color);
}

/* Header & Navigation */
header {
    background-color: var(--light-text);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-sm) 15px;
}

.logo-container {
    flex: 0 0 auto;
}

.logo {
    display: block;
}

.main-nav {
    display: flex;
    align-items: center;
}

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

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--text-color);
    transition: var(--transition-speed) ease-in-out;
}

.nav-list {
    display: flex;
    list-style: none;
}

.nav-list li {
    margin-left: var(--spacing-md);
}

.nav-list a {
    color: var(--text-color);
    font-weight: 500;
    padding: 5px 0;
    position: relative;
}

.nav-list a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primary-color);
    transition: width var(--transition-speed) ease;
}

.nav-list a:hover::after,
.nav-list a:focus::after {
    width: 100%;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--light-text);
    text-align: center;
    padding: 120px 0 var(--spacing-lg);
    margin-top: 60px;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: var(--spacing-sm);
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-md);
    opacity: 0.9;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: var(--border-radius);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
    transition: all var(--transition-speed) ease;
    text-decoration: none;
}

.btn-primary {
    background-color: var(--accent-color);
    color: var(--light-text);
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: darken(var(--accent-color), 10%);
    color: var(--light-text);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    text-decoration: none;
}

/* About Section */
.about-content {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-md);
}

.about-text {
    flex: 1 1 500px;
}

/* Gaming Section */
.gaming {
    background-color: #F3F3F3;
}

.gaming-content {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.gaming-resources {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--spacing-md);
}

.resource-card {
    background-color: var(--section-bg);
    border-radius: var(--border-radius);
    padding: var(--spacing-md);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}

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

.resource-list {
    list-style-position: inside;
    margin-top: var(--spacing-sm);
}

.resource-list li {
    margin-bottom: var(--spacing-xs);
}

/* Entertainment Section */
.entertainment-content {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-md);
}

.entertainment-text {
    flex: 1 1 100%;
}

/* Contact Section */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: var(--spacing-md);
}

.contact-form .form-group {
    margin-bottom: var(--spacing-sm);
}

.contact-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-family: var(--body-font);
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-form button {
    margin-top: var(--spacing-sm);
    cursor: pointer;
    border: none;
}

/* Footer */
footer {
    background-color: var(--footer-bg);
    color: var(--footer-text);
    padding: var(--spacing-md) 0;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: var(--spacing-md);
}

.footer-logo {
    flex: 0 0 100%;
    margin-bottom: var(--spacing-md);
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    flex: 1;
    gap: var(--spacing-md);
}

.footer-nav,
.footer-resources {
    flex: 1 1 200px;
}

.footer-nav h4,
.footer-resources h4 {
    color: var(--light-text);
    margin-bottom: var(--spacing-sm);
}

.footer-nav ul,
.footer-resources ul {
    list-style: none;
}

.footer-nav li,
.footer-resources li {
    margin-bottom: var(--spacing-xs);
}

.footer-nav a,
.footer-resources a {
    color: var(--footer-text);
    opacity: 0.8;
    transition: opacity var(--transition-speed) ease;
}

.footer-nav a:hover,
.footer-resources a:hover {
    opacity: 1;
    color: var(--light-text);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-social a {
    color: var(--footer-text);
    margin-left: 20px;
    opacity: 0.8;
    transition: opacity var(--transition-speed) ease;
}

.footer-social a:hover {
    opacity: 1;
}

.social-icon {
    width: 24px;
    height: 24px;
}

/* Responsive Styles */
@media (max-width: 992px) {
    h1 {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
        z-index: 101;
    }
    
    .nav-list {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background-color: var(--light-text);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right var(--transition-speed) ease;
        z-index: 100;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    }
    
    .nav-list.active {
        right: 0;
    }
    
    .nav-list li {
        margin: var(--spacing-sm) 0;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .gaming-resources {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        flex-direction: column;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-social {
        margin-top: var(--spacing-sm);
    }
    
    .footer-social a {
        margin: 0 10px;
    }
}

@media (max-width: 576px) {
    .hero {
        padding: 100px 0 var(--spacing-md);
    }
    
    .btn {
        display: block;
        width: 100%;
        text-align: center;
    }
}
