/*
Theme Name: Bebek Sibuse
Theme URI: https://bebeksibuse.com
Description: Bebeksibuse.com için modern ilan tanıtım teması
Author: Bebek Sibuse
Version: 1.0
License: GNU General Public License v2 or later
Text Domain: bebeksibuse
*/

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

/* ===== RESET & BASE ===== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: linear-gradient(135deg, #0f0c29 0%, #302b63 50%, #24243e 100%);
    color: #e2e8f0;
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

/* ===== İLAN DETAY SAYFASI ===== */
.ilan-page {
    max-width: 680px;
    margin: 0 auto;
    padding: 16px;
    padding-top: 24px;
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.02);
    }
}

/* ===== İSİM BAŞLIK ===== */
.ilan-name-header {
    text-align: center;
    margin-bottom: 18px;
}

.ilan-name-header h1 {
    font-family: 'Poppins', sans-serif;
    font-size: 32px;
    font-weight: 800;
    background: linear-gradient(135deg, #f472b6, #c084fc, #818cf8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* ===== BUTONLAR ===== */
.ilan-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
}

.btn-whatsapp {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 700;
    padding: 14px 20px;
    border: none;
    border-radius: 14px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-whatsapp::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    transition: left 0.5s;
}

.btn-whatsapp:hover::before {
    left: 100%;
}

.btn-whatsapp:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.45);
    color: #fff;
}

.btn-whatsapp:active {
    transform: translateY(0);
}

.btn-whatsapp svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
    flex-shrink: 0;
}

.btn-call {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, #f472b6, #ec4899);
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 700;
    padding: 14px 20px;
    border: none;
    border-radius: 14px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(236, 72, 153, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-call::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    transition: left 0.5s;
}

.btn-call:hover::before {
    left: 100%;
}

.btn-call:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(236, 72, 153, 0.45);
    color: #fff;
}

.btn-call:active {
    transform: translateY(0);
}

.btn-call svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
    flex-shrink: 0;
}

/* ===== FOTOĞRAF GALERİSİ ===== */
.ilan-gallery {
    margin-bottom: 16px;
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.gallery-main-wrapper {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
}

.gallery-main {
    width: 100%;
    max-height: 520px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
    cursor: zoom-in;
    transition: transform 0.3s ease;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 14px;
}

.gallery-main:hover {
    transform: scale(1.01);
}

.gallery-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(10px);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 20px;
    pointer-events: none;
}

.gallery-thumbs {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    overflow-x: auto;
    padding: 4px 2px;
    justify-content: center;
    scrollbar-width: none;
}

.gallery-thumbs::-webkit-scrollbar {
    display: none;
}

.gallery-thumb-item {
    width: 56px;
    height: 56px;
    border-radius: 10px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    opacity: 0.5;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.3);
}

.gallery-thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gallery-thumb-item:hover {
    opacity: 0.8;
    transform: translateY(-2px);
}

.gallery-thumb-item.active {
    border-color: #c084fc;
    opacity: 1;
    box-shadow: 0 0 12px rgba(192, 132, 252, 0.4);
}

.thumb-video-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 18px;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
    pointer-events: none;
    z-index: 2;
}

.thumb-video-preview {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
}

/* Video player */
.gallery-main-video {
    width: 100%;
    max-height: 520px;
    display: block;
    margin: 0 auto;
    border-radius: 14px;
    background: #000;
    outline: none;
}

/* ===== DETAY KARTLARI ===== */
.ilan-details {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 16px;
}

.detail-card {
    background: rgba(255, 255, 255, 0.07);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    padding: 14px 10px;
    text-align: center;
    transition: all 0.3s ease;
}

.detail-card:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-2px);
    border-color: rgba(192, 132, 252, 0.3);
}

.detail-card .detail-icon {
    font-size: 20px;
    margin-bottom: 4px;
    display: block;
}

.detail-card .detail-label {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.45);
    margin-bottom: 4px;
}

.detail-card .detail-value {
    font-size: 14px;
    font-weight: 700;
    color: #f1f5f9;
}

/* ===== AÇIKLAMA ===== */
.ilan-description {
    background: rgba(255, 255, 255, 0.07);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-left: 4px solid #c084fc;
    border-radius: 16px;
    padding: 20px 22px;
    margin-bottom: 16px;
    font-size: 14.5px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.85);
}

.ilan-description p {
    margin: 0;
}

.ilan-description a {
    color: #c084fc;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid rgba(192, 132, 252, 0.3);
    transition: all 0.2s;
}

.ilan-description a:hover {
    color: #e879f9;
    border-bottom-color: #e879f9;
}

/* ===== GÖRÜNTÜLENME ===== */
.ilan-views {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    margin-bottom: 16px;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 12px;
    color: #fca5a5;
    font-weight: 600;
    font-size: 13px;
}

.ilan-views .views-dot {
    width: 8px;
    height: 8px;
    background: #ef4444;
    border-radius: 50%;
    animation: pulse 2s infinite;
    flex-shrink: 0;
}

/* ===== LIGHTBOX ===== */
.ilan-lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px);
    z-index: 99999;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.ilan-lightbox.active {
    display: flex;
}

.ilan-lightbox img {
    max-width: 92%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 24px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 36px;
    cursor: pointer;
    z-index: 100000;
    line-height: 1;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.2s;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.7);
    font-size: 32px;
    cursor: pointer;
    z-index: 100000;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.2s;
    user-select: none;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.lightbox-prev {
    left: 16px;
}

.lightbox-next {
    right: 16px;
}

.lightbox-counter {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    font-weight: 600;
    background: rgba(0, 0, 0, 0.4);
    padding: 6px 16px;
    border-radius: 20px;
}

/* ===== ANA SAYFA / İLAN LİSTESİ ===== */
.ilan-list {
    max-width: 960px;
    margin: 0 auto;
    padding: 24px 16px;
}

.ilan-list-header {
    text-align: center;
    margin-bottom: 32px;
}

.ilan-list-header h1 {
    font-family: 'Poppins', sans-serif;
    font-size: 36px;
    font-weight: 800;
    background: linear-gradient(135deg, #f472b6, #c084fc, #818cf8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
}

.ilan-list-header p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 15px;
}

.ilan-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 18px;
}

.ilan-card {
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    overflow: hidden;
    text-decoration: none;
    color: #e2e8f0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.ilan-card:hover {
    transform: translateY(-6px);
    border-color: rgba(192, 132, 252, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 30px rgba(192, 132, 252, 0.1);
}

.ilan-card-img-wrapper {
    position: relative;
    overflow: hidden;
}

.ilan-card-img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.ilan-card:hover .ilan-card-img {
    transform: scale(1.05);
}

.ilan-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.6));
    pointer-events: none;
}

.ilan-card-info {
    padding: 16px;
    text-align: center;
}

.ilan-card-name {
    font-family: 'Poppins', sans-serif;
    font-size: 18px;
    font-weight: 700;
    background: linear-gradient(135deg, #f472b6, #c084fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 4px;
}

.ilan-card-meta {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 500;
}

.no-ilanlar {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: rgba(255, 255, 255, 0.4);
    font-size: 16px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 600px) {
    .ilan-page {
        padding: 10px;
        padding-top: 16px;
    }

    .ilan-name-header h1 {
        font-size: 26px;
    }

    .ilan-buttons {
        flex-direction: column;
        gap: 8px;
    }

    .btn-whatsapp,
    .btn-call {
        padding: 13px 16px;
        font-size: 14px;
    }

    .gallery-main {
        max-height: 400px;
    }

    .ilan-details {
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
    }

    .detail-card {
        padding: 10px 6px;
        border-radius: 10px;
    }

    .detail-card .detail-label {
        font-size: 9px;
        letter-spacing: 0.5px;
    }

    .detail-card .detail-value {
        font-size: 12px;
    }

    .detail-card .detail-icon {
        font-size: 16px;
    }

    .ilan-description {
        padding: 16px;
        font-size: 13.5px;
    }

    .ilan-list-header h1 {
        font-size: 28px;
    }

    .ilan-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .ilan-card-img {
        height: 200px;
    }

    .ilan-card-name {
        font-size: 15px;
    }
}

@media (max-width: 380px) {
    .ilan-details {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* WP Admin Bar fix */
body.admin-bar .ilan-lightbox {
    top: 32px;
    height: calc(100% - 32px);
}

@media (max-width: 782px) {
    body.admin-bar .ilan-lightbox {
        top: 46px;
        height: calc(100% - 46px);
    }
}