/* ================================
   ROOT VARIABLES
   ================================ */
:root {
    --marble-gold: #8B7355;
    --marble-light: #f8f9fa;
    --marble-dark: #2c2c2c;
    --transition-speed: 0.3s;
}

/* ================================
   GLOBAL STYLES
   ================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
    transition: background-color var(--transition-speed), color var(--transition-speed);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
}

/* ================================
   NAVBAR STYLES
   ================================ */
.navbar {
    transition: all var(--transition-speed);
}

.navbar-brand {
    text-decoration: none;
}

.brand-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff !important;
}

.brand-slogan {
    font-size: 0.75rem;
    color: #ffc107 !important;
    display: block;
    line-height: 1;
    font-style: italic;
}

.nav-link {
    font-weight: 500;
    transition: all var(--transition-speed);
    position: relative;
}

.nav-link:hover {
    color: #ffc107 !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: #ffc107;
    transition: all var(--transition-speed);
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 80%;
}

/* Dark Mode Toggle */
.theme-toggle {
    cursor: pointer;
    width: 50px;
    height: 25px;
    margin: 0;
}

.theme-toggle:checked {
    background-color: #ffc107;
    border-color: #ffc107;
}

.theme-icon {
    font-size: 1.2rem;
    color: #ffc107;
    transition: transform var(--transition-speed);
}

.theme-toggle:checked ~ label .theme-icon {
    transform: rotate(360deg);
}

/* ================================
   HERO SECTION
   ================================ */
.hero-section {
    position: relative;
    height: 600px;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.4)),
                url('https://images.unsplash.com/photo-1615874959474-d609969a20ed?w=1920&q=80') center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    overflow: hidden;
}

.hero-content {
    z-index: 2;
    animation: fadeInUp 1s ease-out;
}

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
}

.hero-subtitle {
    font-size: 1.5rem;
    font-style: italic;
    color: #ffc107;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.7);
}

.hero-buttons .btn {
    margin: 0 10px;
    padding: 12px 30px;
    font-weight: 600;
    border-radius: 30px;
    transition: all var(--transition-speed);
}

.btn-warning {
    background-color: #ffc107;
    border: none;
    color: #000;
}

.btn-warning:hover {
    background-color: #ffb300;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 193, 7, 0.4);
}

.btn-outline-light:hover {
    background-color: white;
    color: #000;
    transform: translateY(-3px);
}

/* ================================
   CATEGORY CARDS
   ================================ */
.categories-section {
    padding: 80px 0;
}

/* Light mode - Koyu arka plan */
[data-bs-theme="light"] .categories-section {
    background-color: #e8e8e8;
}

/* Light mode - Kategori kartlarında beyaz kenarlık */
[data-bs-theme="light"] .category-card {
    border: 3px solid #ffffff;
}

[data-bs-theme="light"] .category-card:hover {
    border-color: #ffc107;
}

[data-bs-theme="light"] .category-card:hover .category-card-overlay {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent) !important;
    opacity: 1 !important;
    filter: none !important;
    transform: none !important;
    /* Light mode'da da overlay hiç değişmeyecek */
}

[data-bs-theme="light"] .category-card:hover .category-card-img {
    transform: none !important;
    opacity: 1 !important;
    filter: none !important;
    /* Light mode'da resim de hiç değişmeyecek */
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: #ffc107;
    margin: 20px auto 0;
}

.category-card {
    position: relative;
    height: 300px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: all var(--transition-speed);
    cursor: pointer;
    margin-bottom: 30px;
    border: 3px solid transparent; /* Başlangıçta görünmez border */
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    border-color: #ffc107; /* Hover'da sarı çizgi belir */
}

.category-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: none !important;
    /* Zoom efekti ve tüm transition'lar kaldırıldı */
}

.category-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    padding: 20px;
    /* Transition tamamen kaldırıldı - hiçbir değişim yok */
}

.category-card:hover .category-card-overlay {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent) !important;
    opacity: 1 !important;
    filter: none !important;
    transform: none !important;
    /* Hover'da hiçbir görsel değişiklik yok */
}

.category-card-title {
    color: white;
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.category-card-desc {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

.category-card:hover .category-card-img {
    transform: none !important;
    opacity: 1 !important;
    filter: none !important;
    /* Resimde hiçbir görsel değişiklik yok */
}

/* ================================
   PRODUCT CARDS
   ================================ */
.product-card {
    border-radius: 15px;
    overflow: hidden;
    transition: all var(--transition-speed);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
    border: 3px solid transparent; /* Başlangıçta görünmez border */
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border-color: #ffc107; /* Hover'da sarı çizgi belir */
}

.product-card-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform var(--transition-speed);
}

.product-card:hover .product-card-img {
    transform: scale(1.05);
}

.product-card-body {
    padding: 20px;
}

.product-card-title {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: inherit;
}

.product-card-category {
    color: #ffc107;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.product-card-desc {
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

/* ================================
   FOOTER
   ================================ */
footer {
    margin-top: auto;
}

.hover-link {
    transition: all var(--transition-speed);
}

.hover-link:hover {
    color: #ffc107 !important;
    padding-left: 5px;
}

footer a {
    transition: all var(--transition-speed);
}

footer a:hover {
    opacity: 0.7;
}

/* ================================
   DARK MODE STYLES
   ================================ */
[data-bs-theme="dark"] body {
    background-color: #1a1a1a;
    color: #e0e0e0;
}

[data-bs-theme="dark"] .card {
    background-color: #2c2c2c;
    border-color: #3c3c3c;
}

[data-bs-theme="dark"] .product-card {
    background-color: #2c2c2c;
    border: 3px solid transparent; /* Başlangıçta görünmez border */
}

[data-bs-theme="dark"] .product-card:hover {
    border-color: #ffc107; /* Dark mode'da da sarı çizgi */
}

[data-bs-theme="dark"] .product-card-title {
    color: #ffffff;
}

[data-bs-theme="dark"] .product-card-desc {
    color: #b0b0b0;
}

[data-bs-theme="dark"] .dropdown-menu {
    background-color: #2c2c2c;
    border-color: #3c3c3c;
}

[data-bs-theme="dark"] .dropdown-item {
    color: #e0e0e0;
}

[data-bs-theme="dark"] .dropdown-item:hover {
    background-color: #3c3c3c;
    color: #ffc107;
}

[data-bs-theme="dark"] .section-title {
    color: #ffffff;
}

[data-bs-theme="dark"] .category-card {
    border: 3px solid transparent;
}

[data-bs-theme="dark"] .category-card:hover {
    border-color: #ffc107;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

[data-bs-theme="dark"] .category-card:hover .category-card-overlay {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent) !important;
    opacity: 1 !important;
    filter: none !important;
    transform: none !important;
    /* Overlay'de hiçbir görsel değişiklik yok */
}

[data-bs-theme="dark"] .category-card:hover .category-card-img {
    transform: none !important;
    opacity: 1 !important;
    filter: none !important;
    /* Resimde hiçbir görsel değişiklik yok */
}

/* ================================
   ANIMATIONS
   ================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* ================================
   RESPONSIVE DESIGN
   ================================ */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .category-card {
        height: 250px;
    }

    .brand-name {
        font-size: 1.2rem;
    }

    .brand-slogan {
        font-size: 0.65rem;
    }
}

/* ================================
   UTILITY CLASSES
   ================================ */
.text-gold {
    color: #ffc107 !important;
}

.bg-gold {
    background-color: #ffc107 !important;
}

.overlay-gradient {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.4));
}

.shadow-lg-hover {
    transition: box-shadow var(--transition-speed);
}

.shadow-lg-hover:hover {
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.175) !important;
}

/* ================================
   CONTACT FORM
   ================================ */
.contact-form {
    background: #d1d5db;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid #9ca3af;
}

[data-bs-theme="dark"] .contact-form {
    background: #2c2c2c;
}

.form-control {
    border-radius: 10px;
    padding: 12px 20px;
    border: 2px solid #e0e0e0;
    transition: all var(--transition-speed);
}

.form-control:focus {
    border-color: #ffc107;
    box-shadow: 0 0 0 0.2rem rgba(255, 193, 7, 0.25);
}

[data-bs-theme="dark"] .form-control {
    background-color: #1a1a1a;
    border-color: #3c3c3c;
    color: #e0e0e0;
}

[data-bs-theme="dark"] .form-control:focus {
    background-color: #2c2c2c;
    border-color: #ffc107;
}

/* Marble Background for CTA Section */
.cta-marble-bg {
    --light-bg-image: url('/images/bg/bg_amermer_002.jpeg');
    --dark-bg-image: url('/images/bg/bg_kmermer_006.jpg');
    background-image: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)),
                      var(--light-bg-image);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: rgba(255, 255, 255, 0.9);
}

[data-bs-theme="dark"] .cta-marble-bg {
    background-image: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)),
                      var(--dark-bg-image);
    color: #fff;
}

/* Marble Background for Categories Section */
.categories-marble-bg {
    background-image: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)),
                      url('/images/bg/bg_amermer_003.jpeg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

[data-bs-theme="dark"] .categories-marble-bg {
    background-image: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)),
                      url('/images/bg/bg_kmermer_007.jpg');
}

/* Map Section Dark Mode */
[data-bs-theme="dark"] .map-section-title {
    color: #6c757d !important;
}

/* Navbar - Bright White */
.nav-link {
    color: #ffffff !important;
}

.brand-name {
    color: #ffffff !important;
}

.navbar-dark .nav-link:hover {
    color: #ffc107 !important;
}

/* Light Mode - Same as Dark Mode (100% White) */
[data-bs-theme="light"] .nav-link {
    color: #ffffff !important;
}

[data-bs-theme="light"] .brand-name {
    color: #ffffff !important;
}

/* İlgili Ürünler başlığı her zaman beyaz olsun (koyu arka plan var) */

[data-bs-theme="light"] .dropdown-item:hover {
    background-color: #3c3c3c;
    color: #ffc107 !important;
}

/* Footer - Same colors in both modes */
footer .text-muted,
footer a.text-muted {
    color: #9ca3af !important;
}

[data-bs-theme="light"] footer .text-muted,
[data-bs-theme="light"] footer a.text-muted {
    color: #9ca3af !important;
}

footer a.text-muted:hover {
    color: #ffc107 !important;
}

/* Footer Background - Dramatic */
footer {
    background-image: linear-gradient(rgba(0,0,0,0.9), rgba(0,0,0,0.9)),
                      url('/images/bg/bg_mermer(17).png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

/* Telefon numarası parlama efekti */
.footer-phone-sparkle {
    color: #ffc107 !important;
    font-weight: 600;
    text-shadow: 0 0 10px rgba(255, 193, 7, 0.8),
                 0 0 20px rgba(255, 193, 7, 0.6),
                 0 0 30px rgba(255, 193, 7, 0.4);
    animation: phone-sparkle 2s ease-in-out infinite;
}

.footer-phone-sparkle:hover {
    color: #FFF !important;
    text-shadow: 0 0 15px rgba(255, 193, 7, 1),
                 0 0 30px rgba(255, 193, 7, 0.8),
                 0 0 45px rgba(255, 193, 7, 0.6);
}

/* WhatsApp ikonu parlama efekti */
.footer-whatsapp-icon {
    animation: twinkle 1.5s ease-in-out infinite;
    color: #ffc107 !important;
    filter: drop-shadow(0 0 8px rgba(255, 193, 7, 0.6));
}

@keyframes phone-sparkle {
    0%, 100% {
        text-shadow: 0 0 10px rgba(255, 193, 7, 0.8),
                     0 0 20px rgba(255, 193, 7, 0.6),
                     0 0 30px rgba(255, 193, 7, 0.4);
    }
    50% {
        text-shadow: 0 0 15px rgba(255, 193, 7, 1),
                     0 0 30px rgba(255, 193, 7, 0.8),
                     0 0 45px rgba(255, 193, 7, 0.6);
    }
}

@keyframes twinkle {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(0.8);
    }
}

/* Breadcrumb Section Styles */
.breadcrumb-section {
    background-color: #1a1a1a;
}

[data-bs-theme="light"] .breadcrumb-section {
    background-color: #f8f9fa;
}

[data-bs-theme="dark"] .breadcrumb-active-item {
    color: #ffffff !important;
}

[data-bs-theme="light"] .breadcrumb-active-item {
    color: #212529 !important;
}

/* ================================
   SCROLL TO TOP BUTTON
   ================================ */
.scroll-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1a1a1a 0%, #2c2c2c 100%);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: scale(0.8);
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.scroll-top-btn.show {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

.scroll-top-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.4);
}

.scroll-top-btn i {
    color: #ffc107;
    font-size: 24px;
    position: absolute;
    z-index: 2;
}

.progress-ring {
    position: absolute;
    top: 0;
    left: 0;
    transform: rotate(-90deg);
}

.progress-ring-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.1);
    stroke-width: 3;
}

.progress-ring-circle {
    fill: none;
    stroke: #ffc107;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-dasharray: 163.36; /* 2 * PI * 26 = circumference */
    stroke-dashoffset: 163.36;
    transition: stroke-dashoffset 0.1s linear;
}

/* Light mode adjustments */
[data-bs-theme="light"] .scroll-top-btn {
    background: linear-gradient(135deg, #343a40 0%, #495057 100%);
}

[data-bs-theme="light"] .progress-ring-bg {
    stroke: rgba(255, 255, 255, 0.2);
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .scroll-top-btn {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
    }

    .scroll-top-btn i {
        font-size: 20px;
    }

    .progress-ring {
        width: 50px;
        height: 50px;
    }

    .progress-ring-bg,
    .progress-ring-circle {
        cx: 25;
        cy: 25;
        r: 22;
    }

    .progress-ring-circle {
        stroke-dasharray: 138.23; /* 2 * PI * 22 */
        stroke-dashoffset: 138.23;
    }
}
