/* ═══════════════════════════════════════════════════════════════════════════
   INDEX.PHP - Homepage Styles
   Riftbound Türkiye - TCG Veritabanı
   ═══════════════════════════════════════════════════════════════════════════ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --gold: #c8aa6e;
    --gold-glow: rgba(200, 170, 110, 0.3);
    --bg: #091428;
    --bg-dark: #03070e;
    --card-bg: rgba(16, 20, 28, 0.9);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--bg);
    color: #f0f0f0;
    overflow-x: hidden;
}

/* ═══════════════════════════════════════════════════════════════════════════
   HERO SECTION
   ═══════════════════════════════════════════════════════════════════════════ */

.hero {
    position: relative;
    min-height: 90vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #090b10;
    padding: 140px 20px 100px;
    border-bottom: 3px solid #c8aa6e;
    box-shadow: 0 10px 40px -10px rgba(200, 170, 110, 0.3);
}

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, rgba(9, 20, 40, 0.92), rgba(3, 7, 14, 0.88)),
        url('https://cardgamer.com/wp-content/uploads/2025/06/riftbound-cards-featured.jpg') center/cover;
    z-index: 0;
    transition: transform 0.3s ease;
}

.hero:hover .hero-bg {
    transform: scale(1.05);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle, rgba(9, 20, 40, 0.4) 0%, rgba(9, 20, 40, 1) 90%);
    z-index: 1;
    pointer-events: none;
}

.particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 1;
    opacity: 0.5;
}

.particle {
    position: absolute;
    background: var(--gold);
    border-radius: 50%;
    opacity: 0.3;
    animation: float 25s infinite ease-in-out;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) translateX(0) scale(1);
        opacity: 0.3;
    }

    50% {
        transform: translateY(-120vh) translateX(80px) scale(1.5);
        opacity: 0;
    }
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 1000px;
    padding: 40px;
}

.hero-badge {
    display: inline-block;
    background: rgba(200, 170, 110, 0.1);
    border: 1px solid rgba(200, 170, 110, 0.3);
    color: var(--gold);
    padding: 10px 24px;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 35px;
    backdrop-filter: blur(10px);
    animation: fadeInUp 0.8s ease-out;
}

.hero-titlee {
    font-size: clamp(2.8rem, 8vw, 5rem);
    font-weight: 900;
    color: #fff;
    margin-bottom: 25px;
    letter-spacing: -2px;
    animation: fadeInUp 0.8s ease-out 0.1s backwards;
    line-height: 1.1;
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.8);
}

.hero-titlee span {
    background: linear-gradient(135deg, var(--gold), #fff, var(--gold));
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 3s linear infinite;
}

@keyframes shimmer {
    to {
        background-position: 200% center;
    }
}

.hero-subtitlee {
    font-size: clamp(1.05rem, 2.2vw, 1.3rem);
    color: #b8b8b8;
    margin-bottom: 50px;
    line-height: 1.7;
    animation: fadeInUp 0.8s ease-out 0.2s backwards;
    font-weight: 400;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-cta {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease-out 0.3s backwards;
}

/* ═══════════════════════════════════════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════════════════════════════════════ */

.btn {
    padding: 16px 36px;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: var(--gold);
    color: #000;
    box-shadow: 0 4px 20px rgba(200, 170, 110, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(200, 170, 110, 0.5);
    background: #d4b876;
}

.btn-secondary {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-3px);
}

/* ═══════════════════════════════════════════════════════════════════════════
   QUICK LINKS SECTION
   ═══════════════════════════════════════════════════════════════════════════ */

.quick-links {
    padding: 80px 20px;
    background: var(--bg);
}

.quick-links-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.quick-link-card {
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 40px 30px;
    text-align: center;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.quick-link-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(200, 170, 110, 0.1), transparent);
    transition: 0.6s;
}

.quick-link-card:hover::before {
    left: 100%;
}

.quick-link-card:hover {
    border-color: rgba(200, 170, 110, 0.4);
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.quick-link-icon {
    width: 70px;
    height: 70px;
    background: rgba(200, 170, 110, 0.1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 2rem;
    color: var(--gold);
    transition: 0.3s;
}

.quick-link-card:hover .quick-link-icon {
    background: rgba(200, 170, 110, 0.2);
    transform: scale(1.1) rotate(5deg);
}

.quick-link-title {
    font-size: 1.3rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 12px;
}

.quick-link-desc {
    color: #888;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ═══════════════════════════════════════════════════════════════════════════
   BLOG SECTION
   ═══════════════════════════════════════════════════════════════════════════ */

.blog {
    padding: 100px 20px;
    background: linear-gradient(180deg, var(--bg) 0%, var(--bg-dark) 100%);
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 24px;
}

.section-title {
    font-size: clamp(2rem, 5vw, 2.8rem);
    font-weight: 900;
    color: #fff;
    margin-bottom: 15px;
    letter-spacing: -1px;
}

.section-title span {
    color: var(--gold);
}

.section-subtitle {
    font-size: 1.05rem;
    color: #888;
    line-height: 1.6;
}

/* Featured Layout: 1 Large + 3 Small */
.blog-layout {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 30px;
}

/* Featured Post (Large - Left Side) */
.blog-featured {
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    overflow: hidden;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.blog-featured:hover {
    border-color: rgba(200, 170, 110, 0.4);
    transform: translateY(-8px);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
}

.blog-featured .blog-image-wrapper {
    height: 280px;
    overflow: hidden;
}

.blog-featured .blog-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    transition: transform 0.4s;
}

.blog-featured:hover .blog-image {
    transform: scale(1.05);
}

.blog-featured .blog-content {
    padding: 30px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-featured .blog-title {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.blog-featured .blog-excerpt {
    flex: 1;
    font-size: 1rem;
    margin-bottom: 20px;
}

/* Category Badge */
.blog-category {
    display: inline-block;
    padding: 5px 12px;
    background: rgba(200, 170, 110, 0.15);
    color: var(--gold);
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

/* Small Posts Container (Right Side) */
.blog-small-posts {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Small Post Card */
.blog-small {
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    flex: 1;
}

.blog-small:hover {
    border-color: rgba(200, 170, 110, 0.3);
    transform: translateX(5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.blog-small .blog-image-wrapper {
    width: 140px;
    min-width: 140px;
    overflow: hidden;
}

.blog-small .blog-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    transition: transform 0.4s;
}

.blog-small:hover .blog-image {
    transform: scale(1.1);
}

.blog-small .blog-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
}

.blog-small .blog-title {
    font-size: 1rem;
    margin-bottom: 8px;
    line-height: 1.4;
}

.blog-small .blog-excerpt {
    display: none;
}

.blog-small .blog-link {
    font-size: 0.8rem;
}

/* Shared Blog Styles */
.blog-content {
    padding: 30px;
}

.blog-date {
    color: var(--gold);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 10px;
    display: inline-block;
}

.blog-title {
    font-size: 1.3rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 15px;
    line-height: 1.4;
}

.blog-excerpt {
    color: #888;
    line-height: 1.7;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.blog-link {
    color: var(--gold);
    text-decoration: none;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: 0.3s;
    font-size: 0.9rem;
}

.blog-link:hover {
    gap: 15px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   CTA SECTION
   ═══════════════════════════════════════════════════════════════════════════ */

.cta {
    padding: 120px 20px;
    background:
        linear-gradient(135deg, rgba(200, 170, 110, 0.08), transparent),
        var(--bg);
    text-align: center;
}

.cta-content {
    max-width: 700px;
    margin: 0 auto;
}

.cta-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 900;
    color: #fff;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.cta-subtitle {
    font-size: 1.15rem;
    color: #b0b0b0;
    margin-bottom: 40px;
    line-height: 1.7;
}

/* ═══════════════════════════════════════════════════════════════════════════
   FLOWING CARDS BACKGROUND
   ═══════════════════════════════════════════════════════════════════════════ */

.hero-flow-container {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 40px;
    transform: rotate(-10deg);
    opacity: 0.6;
    z-index: 0;
    pointer-events: none;
}

.flow-row {
    display: flex;
    gap: 30px;
    width: max-content;
    will-change: transform;
}

.flow-card-img {
    width: 180px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
    /* Performans için blur ve kontrast azaltıldı */
    filter: blur(0.5px) contrast(95%);
}

/* GPU Optimizasyonu için transform3d */
.flow-left {
    animation: slideLeft 300s linear infinite;
    transform: translateZ(0);
}

.flow-right {
    animation: slideRight 350s linear infinite;
    transform: translateZ(0);
}

@keyframes slideLeft {
    0% {
        transform: translateX(0) translateZ(0);
    }

    100% {
        transform: translateX(-50%) translateZ(0);
    }
}

@keyframes slideRight {
    0% {
        transform: translateX(-50%) translateZ(0);
    }

    100% {
        transform: translateX(0) translateZ(0);
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
    .hero {
        min-height: 70vh;
        padding: 120px 20px 80px;
    }

    .hero-cta {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .blog-layout {
        grid-template-columns: 1fr;
    }

    .blog-featured {
        grid-row: auto;
    }

    .blog-small-posts {
        flex-direction: column;
    }

    .blog-small .blog-image-wrapper {
        width: 120px;
        min-width: 120px;
    }

    .quick-links-container {
        grid-template-columns: 1fr;
    }

    /* Mobilde akan kartları daha küçült ve bulanıklaştır */
    .flow-card-img {
        width: 120px;
        filter: blur(1px) contrast(90%);
    }

    .hero-flow-container {
        opacity: 0.4;
    }
}

/* Görme engelli kullanıcılar için animasyonu durdur */
@media (prefers-reduced-motion: reduce) {

    .flow-left,
    .flow-right,
    .particle {
        animation: none;
    }

    .hero-flow-container {
        display: none;
    }
}