/**
 * Minimalist Theme CSS - Refined
 * 
 * Overrides for "Glass" design system to create a clean, flat, white-based theme.
 */

:root {
    --minimal-bg: #ffffff;
    --minimal-bg-secondary: #f9fafb;
    /* gray-50 */
    --minimal-text-main: #111827;
    /* gray-900 */
    --minimal-text-secondary: #4b5563;
    /* gray-600 */
    --minimal-text-muted: #9ca3af;
    /* gray-400 */
    --minimal-border: #e5e7eb;
    /* gray-200 */
    --minimal-accent: #000000;
}

body.theme-minimal {
    background-color: var(--minimal-bg) !important;
    background-image: none !important;
    /* Remove any hero bg images */
    color: var(--minimal-text-main) !important;
}

/* --- Global Text Overrides --- */
/* Force text colors to be dark on the white background */
.theme-minimal .text-white {
    color: var(--minimal-text-main) !important;
}

.theme-minimal .text-gray-200,
.theme-minimal .text-gray-300,
.theme-minimal .text-gray-400,
.theme-minimal .text-gray-500 {
    color: var(--minimal-text-secondary) !important;
}

/* Adjust Accent Colors for better contrast if needed (e.g. Purples) */
/* We can keep them or darken them slightly. Let's keep distinct colors but ensure they aren't "glowing" light colors designed for dark mode */

/* --- Card & Panel Overrides (The core "Glass" removal) --- */
.theme-minimal .glass-panel,
.theme-minimal .glass-card,
.theme-minimal .modern-card,
.theme-minimal .bg-white\/5,
.theme-minimal .bg-white\/10,
.theme-minimal .bg-gray-800,
.theme-minimal .bg-gray-900 {
    background: #ffffff !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    /* Fix for Safari */
    border: 1px solid var(--minimal-border) !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) !important;
    border-radius: 12px !important;
    /* Slightly less rounded than the glass theme usually is */
}

/* Hover effects for cards */
.theme-minimal .glass-card:hover,
.theme-minimal .product-card:hover {
    border-color: #d1d5db !important;
    /* gray-300 */
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06) !important;
    transform: translateY(-2px);
}

/* --- Navigation/Header Overrides --- */
.theme-minimal .header-wrapper,
.theme-minimal nav,
.theme-minimal .glass-header {
    background-color: rgba(255, 255, 255, 0.95) !important;
    border-bottom: 1px solid var(--minimal-border) !important;
    box-shadow: none !important;
}

/* Search inputs in header or elsewhere */
.theme-minimal input[type="text"],
.theme-minimal input[type="search"],
.theme-minimal input[type="email"],
.theme-minimal input[type="password"],
.theme-minimal textarea {
    background-color: #ffffff !important;
    color: var(--minimal-text-main) !important;
    border: 1px solid var(--minimal-border) !important;
}

.theme-minimal input::placeholder {
    color: var(--minimal-text-muted) !important;
}

.theme-minimal input:focus {
    border-color: var(--minimal-text-main) !important;
    outline: 2px solid rgba(0, 0, 0, 0.1) !important;
}

/* --- Comments & Reviews Section --- */
/* The review cards usually inherit .glass-card, so they are already white. 
   We just need to ensure the user info and text look good. */

.theme-minimal .review-item,
.theme-minimal .comment-item {
    border-bottom: 1px solid var(--minimal-border);
    padding-bottom: 1rem;
    margin-bottom: 1rem;
}

/* Avatar backgrounds */
.theme-minimal .bg-gray-700,
.theme-minimal .bg-gray-800 {
    background-color: #f3f4f6 !important;
    /* gray-100 */
    color: var(--minimal-text-main) !important;
    /* Make initials dark */
}

/* Star ratings - keep them yellow, looks fine on white */

/* --- Tabs --- */
.theme-minimal .modern-tab-btn {
    color: var(--minimal-text-secondary);
}

.theme-minimal .modern-tab-btn.active {
    color: var(--minimal-text-main) !important;
    border-bottom-color: var(--minimal-accent) !important;
    background: transparent !important;
}

.theme-minimal .modern-tab-btn:hover {
    color: var(--minimal-text-main);
    background-color: #f3f4f6;
    /* Hover state background */
}

/* Tab container header */
.theme-minimal #product-tabs .border-b {
    border-color: var(--minimal-border) !important;
    background-color: transparent !important;
}

/* --- Footer --- */
.theme-minimal footer {
    background-color: var(--minimal-bg-secondary) !important;
    border-top: 1px solid var(--minimal-border) !important;
}

.theme-minimal footer .text-gray-400 {
    color: var(--minimal-text-secondary) !important;
}

/* Remove decorative glows/blobs */
.theme-minimal .animate-blob,
.theme-minimal .footer-pattern,
.theme-minimal .footer-glow {
    display: none !important;
}

/* --- Buttons --- */
/* Flatten gradients for a truer minimalist feel, or keep them but clean up shadows */
.theme-minimal button.bg-gradient-to-r,
.theme-minimal a.bg-gradient-to-r {
    /* Optional: make them solid colors or flatter gradients */
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1) !important;
    /* Softer shadow */
}

/* Specific fix for "Benzer Ürünler" or "Related Products" grid background */
.theme-minimal .bg-gradient-to-br {
    /* If used for backgrounds behind images */
    background: #f3f4f6 !important;
}

/* Exception for small icons/badges using gradients - might need to be specific */
.theme-minimal .badge,
.theme-minimal .icon-box {
    /* Keep these colorful or reset? Let's reset purely decorational big backgrounds */
}

/* Product Image Backgrounds */
.theme-minimal .aspect-square {
    background: #f9fafb !important;
    /* Light gray background for product images */
}

/* Breadcrumbs */
.theme-minimal nav.backdrop-blur-md {
    background: rgba(255, 255, 255, 0.8) !important;
    border: 1px solid var(--minimal-border) !important;
}

/* Flatten 3D Promo Cards */
.theme-minimal .promo-banner-card {
    transform: none !important;
    perspective: none !important;
    box-shadow: none !important;
}

.theme-minimal .promo-banner-card:hover {
    transform: translateY(-5px) !important;
    /* Simple lift */
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1) !important;
}

.theme-minimal .banner-inner {
    transform: none !important;
}

.theme-minimal .banner-back {
    display: none !important;
    /* Hide back face */
}

/* Ensure the front face is visible and styled */
.theme-minimal .banner-face {
    position: relative !important;
    background: #ffffff !important;
    border: 1px solid var(--minimal-border) !important;
    color: var(--minimal-text-main) !important;
}

/* --- Dynamic Home Components Fixes --- */

/* 1. Stories Override */
.theme-minimal .stories-wrapper .bg-gray-900,
.theme-minimal .stories-wrapper .bg-gray-800 {
    background-color: #f3f4f6 !important;
    /* Light gray circle bg */
    border-color: #e5e7eb !important;
}

.theme-minimal .stories-wrapper p.text-gray-300 {
    color: var(--minimal-text-secondary) !important;
    font-weight: 600 !important;
}

/* 2. Offer Cards (Fırsat Ürünleri) */
.theme-minimal .offer-item .bg-gradient-to-br {
    background: #ffffff !important;
    border: 1px solid var(--minimal-border) !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05) !important;
}

/* Remove inner gradient overlay on images */
.theme-minimal .offer-item .absolute.inset-0.bg-gradient-to-t {
    display: none !important;
}

/* Text Color Fixes in Offers */
.theme-minimal .offer-item h3.text-white,
.theme-minimal .offer-item span.text-white,
.theme-minimal .offer-item .text-gray-400 {
    color: var(--minimal-text-main) !important;
}

.theme-minimal .offer-item span.text-gray-500 {
    color: #9ca3af !important;
    /* Keep strikethrough gray */
}

/* 3. Promo Banners (Kampanyalar) */
/* Remove dark gradient overlay */
.theme-minimal .promo-banner .absolute.inset-0.bg-gradient-to-t {
    background: linear-gradient(to top, rgba(255, 255, 255, 0.95), transparent) !important;
    opacity: 1 !important;
}

/* Ensure text is dark and visible on top of likely light image/gradient */
.theme-minimal .promo-banner h2.text-white,
.theme-minimal .promo-banner h3.text-white {
    color: #000000 !important;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 1) !important;
}

/* 4. Testimonials / Reviews (Müşteri Yorumları) */
.theme-minimal section.relative.overflow-hidden .bg-\[\#0B0F19\] {
    background-color: #ffffff !important;
}

.theme-minimal .testimonial-card,
.theme-minimal .bg-white\/5 {
    background-color: #ffffff !important;
    border: 1px solid var(--minimal-border) !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05) !important;
}

.theme-minimal .testimonial-card .text-gray-400,
.theme-minimal .testimonial-card .text-gray-300 {
    color: var(--minimal-text-secondary) !important;
}

.theme-minimal h2.text-white {
    color: var(--minimal-text-main) !important;
}

/* 5. Broadcasters (Yayıncılar) */
.theme-minimal section .bg-\[\#151921\] {
    background-color: #ffffff !important;
}

/* Remove dark overlays */
.theme-minimal .absolute.inset-0.bg-\[\#151921\] {
    background-color: #f3f4f6 !important;
}

.theme-minimal .absolute.inset-0.bg-gradient-to-t {
    display: none !important;
    /* Remove dark gradient */
}

/* Text Colors */
.theme-minimal .group h3.text-white {
    color: var(--minimal-text-main) !important;
}

/* Broadcaster Avatar Border */
.theme-minimal .rounded-full.bg-gray-900 {
    background-color: #ffffff !important;
    border-color: var(--minimal-border) !important;
}

/* 6. Section Backgrounds General Fix */
/* Some sections have inline bg colors or heavy dark classes. Force white/light. */
.theme-minimal main.min-h-screen {
    background-color: #f9fafb !important;
}

/* Button & Badge Resets for Minimal Theme */
.theme-minimal button.bg-white\/10 {
    background-color: rgba(0, 0, 0, 0.05) !important;
    color: var(--minimal-text-main) !important;
    border-color: rgba(0, 0, 0, 0.1) !important;
}

.theme-minimal button.bg-white\/10:hover {
    background-color: rgba(0, 0, 0, 0.1) !important;
}

/* Scrollbar styling for horizontal scrolls */
.theme-minimal ::-webkit-scrollbar-thumb {
    background-color: #d1d5db !important;
}

.theme-minimal ::-webkit-scrollbar-track {
    background-color: #f3f4f6 !important;
}