/* =========================================================
   🔹 ROOT DEĞERLERİ
========================================================= */
:root {
    --secondary-color: #D4A373;
    --whatsapp-color: #25D366;
    --facebook-color: #3b5998;
    --instagram-gradient: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
    --font-family: "Poppins", sans-serif;
    --link-hover-color: #B8860B;
    --section-padding: 20px;
}

/* =========================================================
   🔹 GENEL AYARLAR
========================================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    background-color: var(--main-bg);
    color: #222;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
}

/* =========================================================
   🔹 SLIDER
========================================================= */
.slide-wrapper {
    position: relative;
    max-width: 1600px;
    margin: 60px auto 0 auto;
    /* üst:60px, sağ: auto, alt:0, sol: auto */
    overflow: hidden;
    display: flex;
    align-items: center;
    padding: 0;
}

.slide-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.8);
    border: none;
    font-size: 30px;
    cursor: pointer;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    z-index: 10;
}

.slide-btn.left {
    top: 175px;
    left: 5px;
}

.slide-btn.right {
    top: 175px;
    right: 5px;
}

.slide-btn:hover {
    background-color: #EAE9FF;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
}

.slide-container {
    margin: 0 auto;
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    gap: 20px;
    padding: 0 20px;
}

.slide-container::-webkit-scrollbar {
    display: none;
}

.slide-box {
    flex: 0 0 305px;
    background: #EAE9FF;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.slide-image {
    position: relative;
    width: 280px;
    height: 350px;
    overflow: hidden;
}

.slide-image img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;   /* Yatayda kutuyu kaplasın */
    min-height: 100%;  /* Dikeyde kutuyu kaplasın */
}


.slide-category {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: var(--secondary-color);
    color: #EAE9FF;
    font-size: 13px;
    padding: 5px 10px;
    border-radius: 6px;
    text-transform: uppercase;
    font-weight: 600;
}

.slide-content {
    padding: 18px 15px 0;
    text-align: center;
}

.slide-content h3 {
    font-size: 17px;
    color: #1e2a39;
    font-weight: 600;
    margin-bottom: 12px;
    line-height: 1.4;
}

.slide-meta {
    font-size: 13px;
    color: #666;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.meta-author,
.meta-date {
    display: flex;
    align-items: center;
    gap: 4px;
}

@media (max-width: 768px) {
    .slide-container {
        padding: 0 10px;
        gap: 10px;
    }

    .slide-box {
        flex: 0 0 280px;
    }

    .slide-btn {
        display: none;
    }
}

/* =========================================================
   🔹 BLOG / DUALAR BÖLÜMÜ
========================================================= */
.blog-container {
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 30px;
    margin: 20px 0;
    align-items: flex-start;
}

.blog-left,
.blog-right,
.categories-left,
.categories-right {
    background-color: #EAE9FF;
    border-radius: 10px;
    padding: 10px;
}

.section-title {
    font-size: 2rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 20px;
    border-bottom: 3px solid var(--secondary-color);
    display: inline-block;
}

.recent-posts {
    display: grid;
    grid-template-columns: 1.5fr 1.5fr;
    gap: 20px;
}

.main-post {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
}

.main-post img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
    transition: transform 1s ease-in-out;
}

.main-post:hover img {
    transform: scale(1.08);
}

.main-post-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    color: #EAE9FF;
    padding: 20px;
    background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.7));
}

.main-post-content .category {
    background-color: var(--secondary-color);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
}

.main-post-content h3 {
    margin-top: 10px;
    font-size: 1.5rem;
    position: relative;
    display: inline-block;
}

.main-post-content h3::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0%;
    height: 2px;
    background-color: var(--secondary-color);
    transition: width 0.3s ease-in-out;
}

.main-post:hover .main-post-content h3::after {
    width: 100%;
}

.main-post-content .post-meta {
    font-size: 0.8rem;
    opacity: 0.85;
    margin-top: 8px;
}

.side-posts {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.side-post {
    display: flex;
    gap: 10px;
    background: #EAE9FF;
    overflow: hidden;
    border-radius: 8px;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.side-post:hover {
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

.side-post img {
    width: 175px;
    height: 175px;
    object-fit: cover;
    transition: transform 0.5s ease-in-out;
}

.side-post-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.side-post-content .category {
    background-color: var(--secondary-color);
    color: #EAE9FF;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.side-post-content h4 {
    font-size: 0.95rem;
    color: var(--primary-color);
    margin-bottom: 3px;
    text-decoration: underline transparent;
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
    transition: text-decoration-color 0.3s ease-in-out;
}

.side-post:hover .side-post-content h4 {
    text-decoration-color: var(--secondary-color);
}

.side-post-content .post-date {
    font-size: 0.8rem;
    color: #777;
}

@media (max-width: 900px) {
    .blog-container {
        grid-template-columns: 1fr;
    }

    .recent-posts {
        grid-template-columns: 1fr;
    }

    .side-post img {
        width: 120px;
        height: 90px;
    }
}

/* =========================================================
   🔹 KATEGORİLER / BLOG GRID
========================================================= */
.categories-layout {
    display: grid;
    grid-template-columns: 1fr 3fr;
    gap: 30px;
    margin-top: 40px;
}

.category-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 10px;
}

.category-list a {
    position: relative;
    display: block;
    color: #EAE9FF;
    padding: 16px 30px;
    font-weight: 500;
    font-size: 1.15rem;
    border-radius: 1px;
    overflow: hidden;
    z-index: 1;
}

.category-list a::before,
.category-list a::after {
    content: "";
    position: absolute;
    inset: 0;
    transition: opacity 0.5s ease;
    z-index: -1;
}

.category-list a::before {
    background: linear-gradient(to right, var(--primary-color) 60%, #D4A373 80%, transparent 100%);
    opacity: 1;
}

.category-list a::after {
    background: linear-gradient(to right, var(--secondary-color) 60%, rgba(241, 114, 96, 0.8) 80%, transparent 100%);
    opacity: 0;
}

.category-list a:hover::before {
    opacity: 0;
}

.category-list a:hover::after {
    opacity: 1;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.blog-card {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card img {
    width: 100%;
    height: 255px;
    object-fit: cover;
    border-radius: 10px;
    transition: transform 0.5s ease;
}

.blog-card:hover img {
    transform: scale(1.05); /* İdeal - alanı aşmaz */
}

.blog-card h3 {
    margin-top: 10px;
    font-size: 1.1rem;
    color: var(--primary-color);
    transition: color 0.3s ease;
}

.blog-card:hover h3 {
    color: var(--secondary-color);
}

@media (max-width: 900px) {
    .categories-layout {
        grid-template-columns: 1fr;
    }

    .blog-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   🔹 FORTUNE / TAROT & YILDIZNAME
========================================================= */
.fortune-section {
    width: 100%;
    height: 400px;
    display: flex;
    gap: 10px;
    background-color: var(--main-bg);
}

.fortune-card {
    flex: 1;
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    display: flex;
    align-items: center;
    padding: 32px;
    color: #EAE9FF;
    text-align: left;
}

.fortune-card .content {
    position: relative;
    z-index: 2;
    max-width: 600px;
}

.fortune-card h2 {
    margin-bottom: 10px;
    font-size: 1.8rem;
}

.fortune-card p {
    margin-bottom: 18px;
    font-size: 1rem;
    line-height: 1.5;
}

.btn {
    display: inline-block;
    padding: 10px 16px;
    background-color: rgba(255, 255, 255, 0.15);
    color: #EAE9FF;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.btn:hover {
    background-color: rgba(255, 255, 255, 0.25);
}

.fortune-card.stars::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, var(--primary-color) 70%, #D4A373 80%, transparent 100%);
    z-index: 1;
}

.fortune-card.tarot::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, var(--secondary-color) 70%, rgba(241, 114, 96, 0.8) 80%, transparent 100%);
    z-index: 1;
}

.fortune-card:hover::before {
    opacity: 0.9;
}

.fortune-card::after {
    content: "";
    position: absolute;
    top: -10%;
    right: -25%;
    width: 90%;
    height: 130%;
    transform: rotate(15deg);
    background: radial-gradient(circle at 30% 40%, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.05) 50%, rgba(255, 255, 255, 0) 100%);
    opacity: 0.45;
    z-index: 2;
    transition: transform 0.5s ease, opacity 0.3s ease;
    pointer-events: none;
}

.fortune-card:hover::after {
    transform: rotate(-8deg) scale(1.3);
    opacity: 0.9;
}

@media (max-width: 860px) {
    .fortune-section {
        flex-direction: column;
        height: auto;
    }

    .fortune-card {
        height: 220px;
        padding: 20px;
    }
}

.yorum-link-section {
    max-width: 1200px;
    margin: 30px auto;
    padding: var(--section-padding);
    text-align: center;
    background-color: #fdfaf3;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.yorum-link-section h2 {
    font-family: 'Poppins', sans-serif;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.yorum-link-section .yorum-btn {
    display: inline-block;
    text-decoration: none;
    font-family: 'Poppins', sans-serif;
    background-color: var(--secondary-color);
    color: #EAE9FF;
    padding: 12px 25px;
    border-radius: 8px;
    font-weight: 500;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.yorum-link-section .yorum-btn:hover {
    background-color: var(--link-hover-color);
}

/* Responsive */
@media (max-width: 480px) {
    .yorum-link-section {
        padding: 15px;
    }

    .yorum-link-section h2 {
        font-size: 1.2rem;
    }

    .yorum-link-section .yorum-btn {
        padding: 10px 20px;
        font-size: 0.95rem;
    }
}