/*
Theme Name: Gamzy Magazine
Theme URI: https://gamezy.cz
Author: Gamzy Team
Author URI: https://gamezy.cz
Description: Moderní herní magazín pro rok 2025 s Bento Grid layoutem, glassmorphism efekty a fluid typography. Optimalizováno pro rychlost a SEO.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: gamezy-magazine
Tags: gaming, magazine, blog, two-columns, custom-colors, custom-menu, featured-images, sticky-post, translation-ready
*/

/* ========================================
   🎨 CSS VARIABLES - Herní barvy z loga Gamzy
   ======================================== */
:root {
    --sk-pink: #E41E31;
    --sk-pink-light: #FF4757;
    --sk-pink-dark: #C71829;
    --sk-green: #DC143C;
    --sk-green-light: #FF1744;
    --sk-green-dark: #B71C1C;
    --sk-dark: #0F0F0F;
    --sk-gray: #666666;
    --sk-light-gray: #F5F5F5;
    --sk-white: #ffffff;
    --sk-shadow: 0 4px 20px rgba(228, 30, 49, 0.15);
    --sk-shadow-hover: 0 8px 30px rgba(228, 30, 49, 0.25);
    --sk-radius: 16px;
    --sk-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --container-width: 1400px;
}

/* ========================================
   🎨 FONT AWESOME ICONS
   ======================================== */
.section-title i,
.entry-meta i,
.post-card-meta i {
    margin-right: 0.5rem;
}

.category-icon i {
    font-size: 3rem;
}

/* ========================================
   📱 RESET & BASE STYLES
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: clamp(1rem, 1.5vw, 1.125rem);
    line-height: 1.7;
    color: var(--sk-dark);
    background-color: var(--sk-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    line-height: 1.3;
    color: var(--sk-dark);
    margin-bottom: 1rem;
}

h1 { font-size: clamp(2.5rem, 6vw, 4rem); }
h2 { font-size: clamp(2rem, 5vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: clamp(1.25rem, 2.5vw, 1.75rem); }
h5 { font-size: clamp(1.125rem, 2vw, 1.5rem); }
h6 { font-size: clamp(1rem, 1.5vw, 1.25rem); }

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

a:hover {
    color: var(--sk-green);
}

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

/* ========================================
   📦 CONTAINER & LAYOUT
   ======================================== */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.site-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.site-content {
    flex: 1;
    padding: 3rem 0;
}

/* ========================================
   🎯 HEADER - Sticky with Glassmorphism
   ======================================== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 999;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: var(--sk-transition);
    border-bottom: 1px solid rgba(255, 182, 193, 0.1);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
}

.site-branding {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.custom-logo {
    max-height: 100px;
    width: auto;
    transition: var(--sk-transition);
}

.custom-logo:hover {
    transform: scale(1.05);
}

.site-title {
    font-size: 1.75rem;
    font-weight: 800;
    margin: 0;
}

.site-title a {
    background: linear-gradient(135deg, var(--sk-pink), var(--sk-green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.site-description {
    font-size: 0.9rem;
    color: var(--sk-gray);
    margin: 0;
}

/* ========================================
   🧭 NAVIGATION - Modern Menu
   ======================================== */
.main-navigation ul {
    display: flex;
    list-style: none;
    gap: 0.5rem;
    margin: 0;
}

.main-navigation a {
    display: block;
    padding: 0.5rem 1.25rem;
    color: var(--sk-dark);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    transition: var(--sk-transition);
    border-radius: 50px;
}

.main-navigation a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 80%;
    height: 3px;
    background: linear-gradient(90deg, var(--sk-pink), var(--sk-green));
    border-radius: 3px;
    transition: var(--sk-transition);
}

.main-navigation a:hover {
    color: var(--sk-pink);
    background: rgba(255, 182, 193, 0.1);
}

.main-navigation a:hover::before {
    transform: translateX(-50%) scaleX(1);
}

.main-navigation .current-menu-item a {
    color: var(--sk-pink);
    background: rgba(255, 182, 193, 0.15);
}

/* ========================================
   📰 PAGE TITLE SECTION - Simple Homepage Header
   ======================================== */
.page-title-section {
    text-align: center;
    padding: 2rem 0 1rem;
    margin-bottom: 1rem;
}

.page-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    background: linear-gradient(135deg, var(--sk-pink), var(--sk-green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0;
}

/* ========================================
   📰 BENTO GRID - Homepage Layout
   ======================================== */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: minmax(300px, auto);
    gap: 1.5rem;
    margin: 3rem 0;
}

/* Featured Article - Large */
.bento-item.featured {
    grid-column: span 8;
    grid-row: span 2;
}

/* Secondary Articles - Medium */
.bento-item.secondary {
    grid-column: span 4;
    grid-row: span 1;
}

/* Tertiary Articles - Small */
.bento-item.tertiary {
    grid-column: span 3;
    grid-row: span 1;
}

.bento-item {
    position: relative;
    border-radius: var(--sk-radius);
    overflow: hidden;
    background: var(--sk-white);
    box-shadow: var(--sk-shadow);
    transition: var(--sk-transition);
}

.bento-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--sk-shadow-hover);
}

.bento-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--sk-transition);
}

.bento-item:hover img {
    transform: scale(1.05);
}

.bento-item.featured .bento-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 3rem;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.5) 60%, transparent 100%);
}

.bento-item.featured h2 {
    font-size: clamp(1.75rem, 4vw, 3rem);
    color: var(--sk-white);
    margin-bottom: 1rem;
    font-weight: 800;
}

.bento-item.featured p {
    color: rgba(255,255,255,0.95);
    font-size: clamp(0.95rem, 1.5vw, 1.15rem);
    line-height: 1.6;
}

.bento-item.secondary .bento-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.4) 70%, transparent 100%);
}

.bento-item.secondary h3 {
    font-size: clamp(1.15rem, 2vw, 1.5rem);
    margin-bottom: 0.5rem;
    color: var(--sk-white);
}

.bento-item.secondary .excerpt-short {
    color: rgba(255, 255, 255, 0.9);
    font-size: clamp(0.875rem, 1.5vw, 0.95rem);
    line-height: 1.5;
}

.bento-item.tertiary .bento-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.4) 100%);
}

.bento-item.tertiary h4 {
    font-size: clamp(0.95rem, 1.5vw, 1.15rem);
    margin-bottom: 0;
    color: var(--sk-white);
    line-height: 1.4;
}

/* ========================================
   📋 BLOG GRID - Archive Layout
   ======================================== */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.post-card {
    background: var(--sk-white);
    border-radius: var(--sk-radius);
    overflow: hidden;
    box-shadow: var(--sk-shadow);
    transition: var(--sk-transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.post-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--sk-shadow-hover);
}

.post-card-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 10;
}

.post-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--sk-transition);
}

.post-card:hover .post-card-image img {
    transform: scale(1.08);
}

.post-card-content {
    padding: 1.75rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.post-card-category {
    display: inline-block;
    background: linear-gradient(135deg, var(--sk-pink-light), var(--sk-green-light));
    color: var(--sk-dark);
    padding: 0.35rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.post-card-title {
    font-size: clamp(1.25rem, 2vw, 1.5rem);
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.post-card-title a {
    color: var(--sk-dark);
}

.post-card-excerpt {
    color: var(--sk-gray);
    line-height: 1.7;
    margin-bottom: 1.25rem;
    flex-grow: 1;
}

.post-card-meta {
    font-size: 0.875rem;
    color: var(--sk-gray);
    display: flex;
    gap: 1rem;
    align-items: center;
}

/* ========================================
   📝 SINGLE POST
   ======================================== */
.single-post .entry-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.single-post .entry-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 1.25rem;
    background: linear-gradient(135deg, var(--sk-pink), var(--sk-green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.single-post .entry-meta {
    font-size: 0.95rem;
    color: var(--sk-gray);
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.single-post .entry-featured-image {
    border-radius: var(--sk-radius);
    overflow: hidden;
    box-shadow: var(--sk-shadow);
    margin-bottom: 2.5rem;
}

.single-post .entry-content {
    max-width: 750px;
    margin: 0 auto;
    font-size: clamp(1.05rem, 1.5vw, 1.125rem);
    line-height: 1.8;
}

.single-post .entry-content p {
    margin-bottom: 1.5rem;
}

.single-post .entry-content h2,
.single-post .entry-content h3,
.entry-content h2,
.entry-content h3 {
    margin-top: 3.5rem;
    margin-bottom: 2rem;
}

.entry-content h2:first-child,
.entry-content h3:first-child {
    margin-top: 0;
}

.single-post .entry-content ul,
.single-post .entry-content ol,
.entry-content ul,
.entry-content ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.single-post .entry-content li,
.entry-content li {
    margin-bottom: 0.5rem;
    line-height: 1.7;
}

.single-post .entry-content ul li,
.entry-content ul li {
    list-style-type: disc;
}

.single-post .entry-content ol li,
.entry-content ol li {
    list-style-type: decimal;
}

/* ========================================
   📤 SOCIAL SHARE BUTTONS
   ======================================== */
.social-share {
    margin: 3rem 0;
    padding: 2rem;
    background: var(--sk-light-gray);
    border-radius: var(--sk-radius);
    text-align: center;
}

.social-share h4 {
    font-size: 1.15rem;
    margin-bottom: 1.5rem;
    color: var(--sk-dark);
}

.share-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.share-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: var(--sk-transition);
    box-shadow: var(--sk-shadow);
    color: white;
}

.share-button svg {
    width: 20px;
    height: 20px;
}

.share-button.facebook {
    background: #1877F2;
}

.share-button.facebook:hover {
    background: #0d65d9;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(24, 119, 242, 0.4);
}

.share-button.twitter {
    background: #1DA1F2;
}

.share-button.twitter:hover {
    background: #0d8bd9;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(29, 161, 242, 0.4);
}

.share-button.pinterest {
    background: #E60023;
}

.share-button.pinterest:hover {
    background: #c5001f;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(230, 0, 35, 0.4);
}

.share-button.email {
    background: var(--sk-gray);
}

.share-button.email:hover {
    background: var(--sk-dark);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(51, 51, 51, 0.4);
}

/* ========================================
   🎯 SECTION TITLES & RELATED POSTS
   ======================================== */
.section-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, var(--sk-pink), var(--sk-green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.related-posts {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 3px solid;
    border-image: linear-gradient(90deg, var(--sk-pink), var(--sk-green)) 1;
}

.latest-posts-section {
    margin-top: 4rem;
}

/* ========================================
   🏷️ CATEGORIES SECTION
   ======================================== */
.categories-section {
    margin: 4rem 0;
}

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

.category-card {
    background: var(--sk-white);
    border-radius: var(--sk-radius);
    padding: 2rem 1.5rem;
    text-align: center;
    box-shadow: var(--sk-shadow);
    transition: var(--sk-transition);
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    border: 2px solid transparent;
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--sk-shadow-hover);
    border-color: var(--sk-pink);
}

.category-icon {
    line-height: 1;
    transition: var(--sk-transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-card:hover .category-icon i {
    transform: scale(1.15);
}

.category-card h3 {
    font-size: 1.25rem;
    color: var(--sk-dark);
    margin: 0;
    font-weight: 700;
}

.category-count {
    font-size: 0.875rem;
    color: var(--sk-gray);
    font-weight: 500;
}

/* ========================================
   📸 INSTAGRAM SECTION
   ======================================== */
.instagram-section {
    margin: 4rem 0;
}

.instagram-embed {
    display: flex;
    justify-content: center;
    margin: 2rem 0;
}

.social-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.social-button {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    transition: var(--sk-transition);
    box-shadow: var(--sk-shadow);
}

.social-button svg {
    width: 24px;
    height: 24px;
}

.social-button.instagram {
    background: linear-gradient(135deg, #f09433 0%,#e6683c 25%,#dc2743 50%,#cc2366 75%,#bc1888 100%);
    color: white;
}

.social-button.instagram:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(188, 24, 136, 0.4);
}

.social-button.facebook {
    background: #1877F2;
    color: white;
}

.social-button.facebook:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(24, 119, 242, 0.4);
}

/* ========================================
   📢 NEWSLETTER CTA
   ======================================== */
.newsletter-section {
    background: linear-gradient(135deg, var(--sk-pink), var(--sk-green));
    border-radius: 24px;
    padding: 4rem 3rem;
    margin: 4rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(255, 182, 193, 0.4);
}

.newsletter-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, transparent 70%);
    animation: rotate-slow 20s linear infinite;
}

@keyframes rotate-slow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.newsletter-section h2 {
    color: var(--sk-white);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.newsletter-section p {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.15rem;
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

.newsletter-form {
    display: flex;
    gap: 1rem;
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.newsletter-form input[type="email"] {
    flex: 1;
    padding: 1.25rem 1.75rem;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}

.newsletter-form button {
    padding: 1.25rem 2.5rem;
    background: var(--sk-white);
    color: var(--sk-pink);
    border: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.newsletter-form button:hover {
    transform: scale(1.05);
}

#newsletter-message {
    transition: all 0.3s ease;
    min-height: 20px;
}

#newsletter-message:not(:empty) {
    animation: fadeInUp 0.5s ease;
}

/* ========================================
   🦶 FOOTER
   ======================================== */
.site-footer {
    background: linear-gradient(135deg, var(--sk-light-gray) 0%, var(--sk-white) 100%);
    border-top: 4px solid;
    border-image: linear-gradient(90deg, var(--sk-pink), var(--sk-green)) 1;
    padding: 3rem 0 1.5rem;
    margin-top: 4rem;
    text-align: center;
}

.footer-social {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.footer-social-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--sk-white);
    border-radius: 50px;
    color: var(--sk-dark);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    box-shadow: var(--sk-shadow);
    transition: var(--sk-transition);
}

.footer-social-link svg {
    width: 20px;
    height: 20px;
}

.footer-social-link:hover {
    transform: translateY(-3px);
    box-shadow: var(--sk-shadow-hover);
    color: var(--sk-pink);
}

.footer-text {
    color: var(--sk-gray);
    font-size: 0.925rem;
}

/* ========================================
   📱 RESPONSIVE - Mobile First
   ======================================== */
@media (max-width: 1024px) {
    .bento-grid {
        grid-template-columns: repeat(8, 1fr);
    }

    .bento-item.featured {
        grid-column: span 8;
    }

    .bento-item.secondary {
        grid-column: span 4;
    }

    .bento-item.tertiary {
        grid-column: span 4;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }

    .header-inner {
        flex-direction: column;
        gap: 0.5rem;
        padding: 0.75rem 0;
    }

    .custom-logo {
        max-height: 70px;
    }

    .main-navigation ul {
        flex-wrap: wrap;
        justify-content: center;
    }

    .bento-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .bento-item.featured,
    .bento-item.secondary,
    .bento-item.tertiary {
        grid-column: span 1;
        grid-row: span 1;
    }

    .bento-item.featured .bento-content {
        padding: 2rem 1.5rem;
    }

    .bento-item.secondary .bento-content,
    .bento-item.tertiary .bento-content {
        padding: 1.5rem 1.25rem;
    }

    .category-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .category-card {
        padding: 1.5rem 1rem;
    }

    .social-cta {
        flex-direction: column;
    }

    .social-button {
        width: 100%;
        justify-content: center;
    }

    .share-buttons {
        flex-direction: column;
    }

    .share-button {
        width: 100%;
        justify-content: center;
    }

    .footer-social {
        flex-direction: column;
        gap: 1rem;
    }

    .footer-social-link {
        width: 100%;
        justify-content: center;
    }

    .newsletter-section {
        padding: 3rem 1.5rem;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .blog-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* ========================================
   ✨ ANIMATIONS
   ======================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.post-card, .bento-item {
    animation: fadeInUp 0.6s ease-out;
}

/* Selection */
::selection {
    background: var(--sk-pink-light);
    color: var(--sk-dark);
}

/* ========================================
   🎨 UTILITY CLASSES
   ======================================== */
.text-center { text-align: center; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }
