/* 
 * Zero Code Gaming - Main Stylesheet
 * A modern, clean design for a gaming blog
 */

/* Base Styles and Variables */
:root {
    --primary-color: #6c42f5;
    --secondary-color: #ff6b6b;
    --accent-color: #5ee7df;
    --dark-color: #2d3748;
    --light-color: #f7fafc;
    --text-color: #4a5568;
    --heading-color: #2d3748;
    --link-color: #6c42f5;
    --success-color: #48bb78;
    --warning-color: #ed8936;
    --error-color: #e53e3e;
    
    --border-radius: 8px;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    --heading-font: 'Poppins', var(--font-family);
}

/* Typography Import */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Poppins:wght@500;600;700&display=swap');

/* CSS Reset */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

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

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

a {
    color: var(--link-color);
    text-decoration: none;
    transition: var(--transition);
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font);
    color: var(--heading-color);
    line-height: 1.3;
    margin-bottom: 1rem;
    font-weight: 600;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1.5rem;
}

ul, ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

blockquote {
    border-left: 4px solid var(--primary-color);
    padding: 0.5rem 0 0.5rem 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: var(--dark-color);
    background-color: rgba(108, 66, 245, 0.05);
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

blockquote p {
    margin-bottom: 0.5rem;
}

blockquote cite {
    font-size: 0.9rem;
    font-style: normal;
    color: var(--dark-color);
    opacity: 0.8;
}

/* Layout */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Header & Navigation */
header {
    background-color: white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    padding-bottom: 1rem;
}

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

.logo a {
    display: flex;
    align-items: center;
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--dark-color);
}

.logo img {
    width: 40px;
    height: 40px;
    margin-right: 0.75rem;
    border-radius: var(--border-radius);
}

nav ul {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
}

nav ul li {
    margin-left: 1.5rem;
}

nav ul li a {
    color: var(--dark-color);
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

nav ul li a:hover::after,
nav ul li a.active::after {
    width: 100%;
}

.clock-container {
    min-width: 100px;
    text-align: right;
}

#live-clock {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    background-color: rgba(108, 66, 245, 0.1);
    padding: 0.25rem 0.5rem;
    border-radius: var(--border-radius);
    color: var(--primary-color);
    font-weight: 500;
}

/* Hero Section */
.hero {
    background-color: var(--primary-color);
    background-image: linear-gradient(135deg, var(--primary-color) 0%, #8162ff 100%);
    color: white;
    text-align: center;
    padding: 4rem 0;
    margin-bottom: 3rem;
}

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

.hero p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Page Header (for internal pages) */
.page-header {
    background-color: var(--primary-color);
    background-image: linear-gradient(135deg, var(--primary-color) 0%, #8162ff 100%);
    color: white;
    text-align: center;
    padding: 3rem 0;
    margin-bottom: 3rem;
}

.page-header h1 {
    color: white;
    margin-bottom: 0.5rem;
}

.page-header p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
    margin-bottom: 0;
}

/* Buttons */
.btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    font-weight: 500;
    border: 2px solid var(--primary-color);
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

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

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

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

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

.btn-text {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid transparent;
    padding: 0.75rem 1rem;
}

.btn-text:hover {
    background-color: rgba(108, 66, 245, 0.1);
}

/* Featured Post */
.featured-post {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
    background-color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.featured-image {
    height: 100%;
    object-fit: cover;
}

.featured-content {
    padding: 2rem;
}

.featured-content h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.featured-content p {
    margin-bottom: 1.5rem;
}

/* Blog Posts Grid */
.blog-posts {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.post-card {
    background-color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: transform 0.3s ease;
}

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

.post-image {
    height: 200px;
}

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

.post-content {
    padding: 1.5rem;
}

.post-content h2 {
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
}

.post-content p {
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

/* Single Blog Post */
.blog-post {
    margin: 3rem auto;
}

.post-header {
    margin-bottom: 2rem;
    text-align: center;
}

.post-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.post-meta {
    margin-bottom: 2rem;
    color: var(--text-color);
    opacity: 0.8;
}

.post-meta span {
    margin-right: 1rem;
}

.post-content {
    max-width: 800px;
    margin: 0 auto;
}

.post-content h2 {
    margin-top: 2.5rem;
}

.post-content h3 {
    margin-top: 2rem;
}

.post-content img {
    margin: 2rem auto;
    border-radius: var(--border-radius);
}

.post-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.post-tags a {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background-color: rgba(108, 66, 245, 0.1);
    color: var(--primary-color);
    border-radius: 20px;
    margin-right: 0.5rem;
    font-size: 0.85rem;
}

.post-share {
    display: flex;
    align-items: center;
}

.post-share span {
    margin-right: 0.75rem;
}

.post-share a {
    margin-left: 0.5rem;
    color: var(--text-color);
}

.post-share a:hover {
    color: var(--primary-color);
}

/* Related Posts */
.related-posts {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.related-posts h2 {
    text-align: center;
    margin-bottom: 2rem;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}

.related-card {
    background-color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: transform 0.3s ease;
}

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

.related-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.related-card h3 {
    font-size: 1.1rem;
    padding: 1rem 1rem 0.5rem;
}

.related-card .btn {
    margin: 0 1rem 1rem;
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
}

/* Newsletter Section */
.newsletter-section {
    background-color: rgba(108, 66, 245, 0.05);
    padding: 4rem 0;
    text-align: center;
    margin: 3rem 0;
}

.newsletter-section h2 {
    margin-bottom: 1rem;
}

.newsletter-section p {
    max-width: 600px;
    margin: 0 auto 2rem;
}

#newsletter-form {
    display: flex;
    max-width: 500px;
    margin: 0 auto;
}

#newsletter-form input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 2px solid var(--primary-color);
    border-radius: var(--border-radius) 0 0 var(--border-radius);
    font-size: 1rem;
    outline: none;
}

#newsletter-form button {
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

/* About Page */
.about-intro {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.about-image img {
    border-radius: var(--border-radius);
    height: 100%;
    object-fit: cover;
}

.about-content h2 {
    margin-bottom: 1.5rem;
}

.team-section {
    margin-bottom: 4rem;
}

.team-section .section-title {
    text-align: center;
    margin-bottom: 3rem;
}

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

.team-card {
    background-color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    text-align: center;
    transition: transform 0.3s ease;
}

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

.team-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.team-card h3 {
    margin: 1rem 0 0.25rem;
    padding: 0 1rem;
}

.team-card p {
    padding: 0 1rem;
    margin-bottom: 1rem;
}

.team-card p:first-of-type {
    color: var(--primary-color);
    font-weight: 500;
}

.values-section {
    margin-bottom: 4rem;
}

.values-section .section-title {
    text-align: center;
    margin-bottom: 3rem;
}

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

.value-card {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--box-shadow);
    text-align: center;
    transition: transform 0.3s ease;
}

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

.value-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(108, 66, 245, 0.1);
    border-radius: 50%;
    color: var(--primary-color);
}

.value-card h3 {
    margin-bottom: 1rem;
}

.value-card p {
    margin-bottom: 0;
    font-size: 0.95rem;
}

/* Contact Page */
.contact-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

.contact-info h2 {
    margin-bottom: 1.5rem;
}

.info-item {
    display: flex;
    margin-bottom: 2rem;
}

.info-icon {
    margin-right: 1rem;
    color: var(--primary-color);
    display: flex;
    align-items: flex-start;
}

.info-item h3 {
    margin-bottom: 0.5rem;
}

.info-item p {
    margin-bottom: 0;
}

.social-contact h3 {
    margin-bottom: 1rem;
}

.social-icons {
    display: flex;
}

.social-icons a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(108, 66, 245, 0.1);
    color: var(--primary-color);
    border-radius: 50%;
    margin-right: 0.75rem;
    transition: var(--transition);
}

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

.contact-form h2 {
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--dark-color);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: var(--border-radius);
    font-family: var(--font-family);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}



.map-container img {
    width: 100%;
    border-radius: var(--border-radius);
}

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

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}

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

.footer-logo img {
    width: 50px;
    height: 50px;
    margin-right: 1rem;
    border-radius: var(--border-radius);
}

.footer-logo span {
    font-weight: 600;
    font-size: 1.2rem;
}

.footer-links h3,
.footer-legal h3,
.footer-social h3 {
    color: white;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.footer-links ul,
.footer-legal ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links ul li,
.footer-legal ul li {
    margin-bottom: 0.75rem;
}

.footer-links ul li a,
.footer-legal ul li a {
    color: rgba(255, 255, 255, 0.7);
}

.footer-links ul li a:hover,
.footer-legal ul li a:hover {
    color: white;
}

.footer-social .social-icons {
    margin-top: 1rem;
}

.footer-social .social-icons a {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
}

.footer-social .social-icons a:hover {
    background-color: white;
    color: var(--dark-color);
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.copyright p {
    margin-bottom: 0.5rem;
}

/* Cookie Consent */
.cookie-consent {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: white;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 999;
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem;
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
    margin: 1.5rem 0;
}

.cookie-policy {
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    width: 90%;
    max-width: 500px;
    text-align: center;
    position: relative;
}

.close-modal {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--dark-color);
}

.modal-icon {
    margin: 0 auto 1.5rem;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(72, 187, 120, 0.1);
    color: var(--success-color);
    border-radius: 50%;
}

.modal-content h2 {
    margin-bottom: 1rem;
}

.modal-content p {
    margin-bottom: 1.5rem;
}

/* CTA Section */
.cta-section {
    background-color: var(--primary-color);
    background-image: linear-gradient(135deg, var(--primary-color) 0%, #8162ff 100%);
    color: white;
    text-align: center;
    padding: 4rem 0;
    margin: 3rem 0;
}

.cta-section h2 {
    color: white;
    margin-bottom: 1rem;
}

.cta-section p {
    max-width: 600px;
    margin: 0 auto 2rem;
}

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

.cta-section .btn:hover {
    background-color: transparent;
    color: white;
}

/* Hover Effect for Headings */
.hover-effect {
    position: relative;
    display: inline-block;
    transition: var(--transition);
}

.hover-effect::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 3px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.hover-effect:hover {
    color: var(--primary-color);
}

.hover-effect:hover::after {
    width: 100%;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.featured-post, .post-card, .team-card, .value-card {
    animation: fadeIn 0.6s ease-out;
}

/* Responsive Styles */
@media screen and (max-width: 1024px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .featured-post {
        grid-template-columns: 1fr;
    }
    
    .contact-section {
        grid-template-columns: 1fr;
    }
    
    .about-intro {
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 576px) {
    header .container {
        flex-direction: column;
        padding-bottom: 0.5rem;
    }
    
    nav {
        margin-top: 1rem;
    }
    
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    nav ul li {
        margin: 0 0.75rem;
    }
    
    .clock-container {
        display: none; /* Hide clock on small screens */
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    #newsletter-form {
        flex-direction: column;
    }
    
    #newsletter-form input {
        border-radius: var(--border-radius);
        margin-bottom: 1rem;
    }
    
    #newsletter-form button {
        border-radius: var(--border-radius);
        width: 100%;
    }
    
    .cookie-buttons {
        flex-direction: column;
    }
}
