/*
Theme Name: Szerencsevár
Theme URI: https://example.com
Author: Your Name
Author URI: https://example.com
Description: Modern blog theme for gambling magazine
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: szerencevar
*/

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

body {
    font-family: 'Inter', sans-serif;
    background: #000;
    color: #fff;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Animated Background */
.animated-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background: linear-gradient(135deg, #001a00 0%, #003300 25%, #001a00 50%, #004d00 75%, #001a00 100%);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.content-wrapper {
    position: relative;
    z-index: 1;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Header */
header {
    padding: 30px 0;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
}

.logo a {
    color: #fff;
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 40px;
    list-style: none;
}

.nav-links a {
    color: #a1a1a1;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #fff;
}

/* Hero Section */
.hero-section {
    padding: 80px 0 120px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    position: relative;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: 30px 30px;
    pointer-events: none;
}

.hero-content h1 {
    font-family: 'Playfair Display', serif;
    font-size: 56px;
    font-weight: 400;
    line-height: 1.15;
    margin-bottom: 24px;
    color: #fff;
    letter-spacing: -0.02em;
}

.hero-content h1 a {
    color: #fff;
    text-decoration: none;
}

.hero-content h1 a:hover {
    opacity: 0.8;
}

.hero-content p {
    font-size: 17px;
    color: #a1a1a1;
    margin-bottom: 36px;
    line-height: 1.6;
    font-weight: 300;
}

.btn-primary {
    display: inline-block;
    padding: 14px 32px;
    background: rgba(16, 185, 129, 0.3);
    color: #fff;
    text-decoration: none;
    font-size: 15px;
    font-weight: 300;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    border-radius: 8px;
}

.btn-primary:hover {
    background: rgba(16, 185, 129, 0.5);
    transform: translateY(-2px);
}

.hero-image {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 16px;
}

/* Section */
.section {
    padding: 80px 0;
}

.section-header {
    max-width: 800px;
    margin: 0 auto 50px;
    text-align: center;
}

.section-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 44px;
    font-weight: 400;
    margin-bottom: 16px;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.section-header p {
    font-size: 17px;
    color: #a1a1a1;
    line-height: 1.6;
    font-weight: 300;
}

/* 4 Grid Cards */
.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.card {
    padding: 36px;
    cursor: pointer;
    transition: all 0.3s;
    border-radius: 16px;
    min-height: 240px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-decoration: none;
}

.card:first-child {
    background: #13111c;
}

.card:not(:first-child) {
    background: #fff;
    color: #000;
}

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

.card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 20px;
    font-weight: 400;
    margin-bottom: 12px;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

.card:first-child h3 {
    color: #fff;
}

.card:not(:first-child) h3 {
    color: #000;
}

.card p {
    font-size: 15px;
    line-height: 1.6;
    font-weight: 300;
    opacity: 0.7;
}

.card:first-child p {
    color: #a1a1a1;
}

.card:not(:first-child) p {
    color: #65768c;
}

/* 6 Grid with Images */
.grid-6 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.image-card {
    background: #1a1a1a;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s;
    border-radius: 16px;
    text-decoration: none;
    color: #fff;
    display: block;
}

.image-card:hover {
    transform: translateY(-4px);
}

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

.image-card-content {
    padding: 28px;
}

.image-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 20px;
    font-weight: 400;
    margin-bottom: 12px;
    line-height: 1.3;
    letter-spacing: -0.01em;
    color: #fff;
}

.image-card p {
    font-size: 15px;
    color: #a1a1a1;
    margin-bottom: 24px;
    line-height: 1.6;
    font-weight: 300;
}

.btn-secondary {
    display: inline-block;
    padding: 14px 32px;
    background: rgba(16, 185, 129, 0.3);
    color: #fff;
    text-decoration: none;
    font-size: 15px;
    font-weight: 300;
    transition: all 0.3s;
    border-radius: 8px;
}

.btn-secondary:hover {
    background: rgba(16, 185, 129, 0.5);
    transform: translateY(-2px);
}

/* Carousel Section */
.carousel-section {
    padding: 80px 0;
}

.carousel-container {
    position: relative;
    overflow: hidden;
}

.carousel-wrapper {
    display: flex;
    transition: transform 0.5s ease;
}

.carousel-item {
    min-width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.carousel-content h3 {
    font-family: 'Playfair Display', serif;
    font-size: 40px;
    font-weight: 400;
    margin-bottom: 20px;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.carousel-content h3 a {
    color: #fff;
    text-decoration: none;
}

.carousel-content h3 a:hover {
    opacity: 0.8;
}

.carousel-content p {
    font-size: 17px;
    color: #a1a1a1;
    margin-bottom: 32px;
    line-height: 1.6;
    font-weight: 300;
}

.carousel-image {
    width: 100%;
    height: 450px;
    object-fit: cover;
    border-radius: 16px;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 40px;
}

.dot {
    width: 8px;
    height: 8px;
    background: #404040;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
}

.dot.active {
    background: #fff;
    width: 24px;
    border-radius: 4px;
}

/* Footer */
footer {
    background: rgba(0,0,0,0.5);
    border-top: 1px solid #262626;
    padding: 50px 0;
    text-align: center;
    margin-top: 80px;
}

footer p {
    color: #737373;
    font-size: 14px;
    font-weight: 400;
}

/* Single Post Page */
.single-post-hero {
    padding: 80px 0 60px;
    max-width: 1000px;
    margin: 0 auto;
}

.single-post-hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: 56px;
    font-weight: 400;
    line-height: 1.15;
    margin-bottom: 30px;
    color: #fff;
    letter-spacing: -0.02em;
}

.single-post-meta {
    font-size: 15px;
    color: #a1a1a1;
    margin-bottom: 40px;
    font-weight: 300;
}

.single-post-image {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 16px;
    margin-bottom: 60px;
}

.single-post-content {
    max-width: 800px;
    margin: 0 auto;
    font-size: 18px;
    line-height: 1.8;
    color: #e5e5e5;
}

.single-post-content p {
    margin-bottom: 24px;
    font-weight: 300;
}

.single-post-content h2 {
    font-family: 'Playfair Display', serif;
    font-size: 36px;
    font-weight: 400;
    margin: 50px 0 20px;
    color: #fff;
}

.single-post-content h3 {
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    font-weight: 400;
    margin: 40px 0 15px;
    color: #fff;
}

/* Responsive */
@media (max-width: 1200px) {
    .hero-section,
    .carousel-item {
        grid-template-columns: 1fr;
        gap: 50px;
    }

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

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

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 38px;
    }

    .section-header h2 {
        font-size: 32px;
    }

    .carousel-content h3 {
        font-size: 28px;
    }

    .single-post-hero h1 {
        font-size: 38px;
    }

    .grid-4,
    .grid-6 {
        grid-template-columns: 1fr;
    }

    .nav-links {
        gap: 24px;
        font-size: 14px;
    }

    .container {
        padding: 0 24px;
    }
}