/* Konfor Mobilya - Ana Stil Dosyasi */

/* ===== GENEL AYARLAR ===== */
:root {
    --primary: #5C4033;
    --primary-dark: #3E2A1F;
    --primary-light: #7A5A4A;
    --accent: #D4A574;
    --accent-light: #E8C9A8;
    --accent-dark: #B8865A;
    --bg: #FAF6F0;
    --bg-alt: #F3ECE2;
    --text: #2D1F14;
    --text-light: #6B5B4F;
    --white: #FFFFFF;
    --shadow: 0 4px 24px rgba(92, 64, 51, 0.10);
    --shadow-lg: 0 12px 48px rgba(92, 64, 51, 0.15);
    --radius: 12px;
    --transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', 'Segoe UI', sans-serif;
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.7;
    overflow-x: hidden;
}

::selection {
    background: var(--accent);
    color: var(--white);
}

/* ===== WOOD TEXTURE OVERLAY ===== */
.wood-texture {
    position: relative;
}

.wood-texture::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 2px,
            rgba(92, 64, 51, 0.02) 2px,
            rgba(92, 64, 51, 0.02) 4px
        ),
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 40px,
            rgba(92, 64, 51, 0.015) 40px,
            rgba(92, 64, 51, 0.015) 42px
        );
    pointer-events: none;
    z-index: 1;
}

/* ===== NAVIGATION ===== */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(92, 64, 51, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}

.navbar.scrolled {
    box-shadow: 0 2px 20px rgba(92, 64, 51, 0.08);
}

.nav-link {
    position: relative;
    font-weight: 500;
    letter-spacing: 0.01em;
    transition: var(--transition);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: var(--transition);
    transform: translateX(-50%);
    border-radius: 2px;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover {
    color: var(--primary) !important;
}

/* ===== HERO SECTION ===== */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    position: relative;
    overflow: hidden;
    min-height: 85vh;
    display: flex;
    align-items: center;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 80%, rgba(212, 165, 116, 0.15) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 20%, rgba(212, 165, 116, 0.10) 0%, transparent 60%);
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 80%;
    height: 200%;
    background: radial-gradient(ellipse, rgba(212, 165, 116, 0.06) 0%, transparent 70%);
    animation: heroGlow 8s ease-in-out infinite alternate;
    pointer-events: none;
}

@keyframes heroGlow {
    0% { transform: translate(0, 0) rotate(0deg); }
    100% { transform: translate(-5%, 3%) rotate(2deg); }
}

/* ===== BUTTONS ===== */
.btn-primary-custom {
    background: var(--accent);
    color: var(--primary-dark);
    font-weight: 600;
    padding: 14px 36px;
    border-radius: 8px;
    border: none;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    letter-spacing: 0.02em;
    cursor: pointer;
}

.btn-primary-custom::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(255, 255, 255, 0.2) 100%);
    opacity: 0;
    transition: var(--transition);
}

.btn-primary-custom:hover {
    background: var(--accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(212, 165, 116, 0.35);
}

.btn-primary-custom:hover::before {
    opacity: 1;
}

.btn-outline-custom {
    border: 2px solid var(--accent);
    color: var(--white);
    font-weight: 600;
    padding: 12px 34px;
    border-radius: 8px;
    background: transparent;
    transition: var(--transition);
    cursor: pointer;
}

.btn-outline-custom:hover {
    background: var(--accent);
    color: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-wood {
    background: var(--primary);
    color: var(--white);
    font-weight: 600;
    padding: 14px 36px;
    border-radius: 8px;
    border: none;
    transition: var(--transition);
    cursor: pointer;
}

.btn-wood:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(92, 64, 51, 0.3);
}

/* ===== CARDS ===== */
.card-elegant {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid rgba(92, 64, 51, 0.05);
}

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

.card-elegant .card-img-placeholder {
    background: linear-gradient(135deg, var(--bg-alt) 0%, var(--accent-light) 50%, var(--bg-alt) 100%);
    background-size: 200% 200%;
    animation: shimmer 3s ease-in-out infinite;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 240px;
    position: relative;
    overflow: hidden;
}

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

.card-img-placeholder svg {
    opacity: 0.25;
    transition: var(--transition);
}

.card-elegant:hover .card-img-placeholder svg {
    opacity: 0.4;
    transform: scale(1.05);
}

/* ===== CATEGORY CARDS ===== */
.category-card {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    min-height: 280px;
    transition: var(--transition);
}

.category-card .category-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    transition: var(--transition);
}

.category-card:hover .category-bg {
    transform: scale(1.05);
}

.category-card .category-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(45, 31, 20, 0.8) 0%, rgba(45, 31, 20, 0.1) 100%);
    z-index: 2;
}

.category-card .category-content {
    position: relative;
    z-index: 3;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2rem;
    color: var(--white);
}

.category-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

/* ===== SECTIONS ===== */
.section-title {
    font-family: 'Playfair Display', Georgia, serif;
    color: var(--primary);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.section-divider {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--accent-light));
    border-radius: 3px;
}

.bg-wood-light {
    background: linear-gradient(135deg, var(--bg-alt) 0%, var(--bg) 100%);
}

.bg-wood-dark {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
}

/* ===== TESTIMONIAL ===== */
.testimonial-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow);
    border-left: 4px solid var(--accent);
    transition: var(--transition);
}

.testimonial-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.testimonial-card .quote-icon {
    color: var(--accent);
    opacity: 0.3;
    font-size: 3rem;
    line-height: 1;
    font-family: Georgia, serif;
}

/* ===== FEATURE BOXES ===== */
.feature-box {
    text-align: center;
    padding: 2.5rem 2rem;
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid rgba(92, 64, 51, 0.05);
}

.feature-box:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent);
}

.feature-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-light), var(--accent));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transition: var(--transition);
}

.feature-box:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
}

/* ===== PRODUCT GRID ===== */
.product-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid rgba(92, 64, 51, 0.05);
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--accent);
    color: var(--primary-dark);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    z-index: 5;
}

.product-badge.sale {
    background: #E74C3C;
    color: var(--white);
}

.price-old {
    text-decoration: line-through;
    color: var(--text-light);
    font-size: 0.9rem;
}

.price-new {
    color: var(--primary);
    font-weight: 700;
    font-size: 1.25rem;
}

/* ===== FORM ELEMENTS ===== */
.form-control-custom {
    border: 2px solid rgba(92, 64, 51, 0.12);
    border-radius: 8px;
    padding: 12px 16px;
    transition: var(--transition);
    background: var(--white);
    font-size: 1rem;
    color: var(--text);
    width: 100%;
}

.form-control-custom:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(212, 165, 116, 0.15);
}

.form-control-custom::placeholder {
    color: #B0A090;
}

/* ===== PROMO BANNER ===== */
.promo-banner {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
}

.promo-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -30%;
    width: 60%;
    height: 200%;
    background: radial-gradient(ellipse, rgba(212, 165, 116, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.promo-badge {
    background: #E74C3C;
    color: white;
    font-weight: 700;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    display: inline-block;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* ===== BLOG CARDS ===== */
.blog-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.blog-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.blog-card .blog-date {
    color: var(--accent-dark);
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

/* ===== MAP PLACEHOLDER ===== */
.map-placeholder {
    background: linear-gradient(135deg, var(--bg-alt) 0%, #E8DDD0 100%);
    border-radius: var(--radius);
    min-height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px dashed rgba(92, 64, 51, 0.15);
}

/* ===== FOOTER ===== */
.footer {
    background: linear-gradient(180deg, var(--primary-dark) 0%, #2A1A10 100%);
    color: rgba(255, 255, 255, 0.8);
}

.footer a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
}

.footer a:hover {
    color: var(--accent);
}

.footer-heading {
    color: var(--accent);
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
}

.social-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.15);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    color: rgba(255, 255, 255, 0.7);
}

.social-icon:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--primary-dark);
    transform: translateY(-3px);
}

.payment-icon {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    padding: 8px 14px;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 600;
    letter-spacing: 0.05em;
}

/* ===== ANIMATIONS ===== */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }
.stagger-5 { transition-delay: 0.5s; }

/* ===== SCROLL TOP BUTTON ===== */
.scroll-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 48px;
    height: 48px;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transform: translateY(20px);
    transition: var(--transition);
    z-index: 999;
    box-shadow: 0 4px 16px rgba(92, 64, 51, 0.3);
}

.scroll-top.visible {
    opacity: 1;
    transform: translateY(0);
}

.scroll-top:hover {
    background: var(--accent);
    color: var(--primary-dark);
    transform: translateY(-3px);
}

/* ===== BREADCRUMB ===== */
.breadcrumb-custom {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: 3rem 0;
    position: relative;
    overflow: hidden;
}

.breadcrumb-custom::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        90deg,
        transparent,
        transparent 3px,
        rgba(255, 255, 255, 0.01) 3px,
        rgba(255, 255, 255, 0.01) 6px
    );
    pointer-events: none;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .hero {
        min-height: 70vh;
    }

    .category-card {
        min-height: 200px;
    }

    .section-title {
        font-size: 1.75rem !important;
    }
}

/* ===== MOBILE MENU ===== */
.mobile-menu {
    position: fixed;
    inset: 0;
    background: rgba(45, 31, 20, 0.95);
    backdrop-filter: blur(20px);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
}

.mobile-menu.active {
    opacity: 1;
    pointer-events: all;
}

.mobile-menu a {
    color: var(--white);
    font-size: 1.5rem;
    font-weight: 600;
    padding: 0.75rem 0;
    text-decoration: none;
    transition: var(--transition);
    opacity: 0;
    transform: translateY(20px);
}

.mobile-menu.active a {
    opacity: 1;
    transform: translateY(0);
}

.mobile-menu a:hover {
    color: var(--accent);
}

/* Stagger mobile menu items */
.mobile-menu a:nth-child(1) { transition-delay: 0.05s; }
.mobile-menu a:nth-child(2) { transition-delay: 0.10s; }
.mobile-menu a:nth-child(3) { transition-delay: 0.15s; }
.mobile-menu a:nth-child(4) { transition-delay: 0.20s; }
.mobile-menu a:nth-child(5) { transition-delay: 0.25s; }
.mobile-menu a:nth-child(6) { transition-delay: 0.30s; }
.mobile-menu a:nth-child(7) { transition-delay: 0.35s; }
.mobile-menu a:nth-child(8) { transition-delay: 0.40s; }

/* ===== PULSE ANIMATION FOR CTA ===== */
@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(212, 165, 116, 0.4); }
    50% { box-shadow: 0 0 0 12px rgba(212, 165, 116, 0); }
}

.pulse-glow {
    animation: pulse-glow 2.5s ease-in-out infinite;
}

/* ===== COUNTER SECTION ===== */
.counter-box {
    text-align: center;
    padding: 2rem;
}

.counter-number {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 3rem;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
}

/* ===== TIMELINE (about page) ===== */
.timeline-item {
    position: relative;
    padding-left: 2.5rem;
    padding-bottom: 2rem;
    border-left: 2px solid var(--accent-light);
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -7px;
    top: 4px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--accent);
    border: 3px solid var(--white);
    box-shadow: 0 0 0 3px var(--accent-light);
}

.timeline-item:last-child {
    border-left-color: transparent;
}


/* ===== Overflow / Tasma Korumasi ===== */

img, video, iframe, embed, object {
    max-width: 100%;
    height: auto;
}

p, li, td, th, a, span, h1, h2, h3, h4, h5, h6, label, blockquote {
    overflow-wrap: break-word;
    word-break: break-word;
}

table {
    width: 100%;
    border-collapse: collapse;
}

.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

pre, code {
    overflow-x: auto;
    white-space: pre-wrap;
    word-break: break-word;
}
