/* =================================
   Global Inter Font for All Content
   ================================= */

/* Apply Inter font to ALL text content on projects page */
body:has(#projects-main-container),
body:has(.projects-gallery-section) {
    font-family: var(--site-font-family, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif) !important;
}

#projects-main-container,
#projects-main-container *,
.projects-gallery-section,
.projects-gallery-section *,
#projects-gallery-section,
#projects-gallery-section *,
main.min-h-screen,
main.min-h-screen * {
    font-family: inherit !important;
}

/* =================================
   Theme-based Colors and Styling
   ================================= */

/* Force dark theme colors for project cards */
body.theme-dark .project-item,
body.theme-dark .project-content-area,
body.theme-dark .project-description-wrapper,
body.theme-dark [data-theme-bg="light"] {
    background-color: #000000 !important;
}

body.theme-dark .project-title,
body.theme-dark h3.text-gray-900,
body.theme-dark [data-theme-color="title"] {
    color: #ffffff !important;
}

body.theme-dark .project-description,
body.theme-dark [data-theme-color="description"],
body.theme-dark .text-gray-600.dark\:text-gray-300 {
    color: #d1d5db !important;
}

body.theme-dark .project-location,
body.theme-dark [data-theme-color="location"],
body.theme-dark .text-gray-500.dark\:text-gray-300 {
    color: #d1d5db !important;
}

body.theme-dark .project-location svg {
    color: #d1d5db !important;
}

/* Force light theme colors for project cards */
body.theme-light .project-item,
body.theme-light .project-content-area,
body.theme-light .project-description-wrapper,
body.theme-light [data-theme-bg="light"] {
    background-color: #ffffff !important;
}

body.theme-light .project-title,
body.theme-light h3.text-gray-900,
body.theme-light [data-theme-color="title"] {
    color: #111827 !important;
}

body.theme-light .project-description,
body.theme-light [data-theme-color="description"],
body.theme-light .text-gray-600.dark\:text-gray-300 {
    color: #4b5563 !important;
}

body.theme-light .project-location,
body.theme-light [data-theme-color="location"],
body.theme-light .text-gray-500.dark\:text-gray-300 {
    color: #6b7280 !important;
}

body.theme-light .project-location svg {
    color: #6b7280 !important;
}

/* Force dark mode colors for empty state buttons */
body.theme-dark .empty-state-container a:not(.empty-state-action-btn),
body.theme-dark .empty-state-filtered a,
body.theme-dark .empty-state-filtered button {
    background-color: #1f2937 !important;
    border-color: #4b5563 !important;
    color: #f3f4f6 !important;
    transition: background-color 0.3s ease !important;
}

body.theme-dark .empty-state-container a:not(.empty-state-action-btn):hover,
body.theme-dark .empty-state-filtered a:hover,
body.theme-dark .empty-state-filtered button:hover {
    background-color: #374151 !important;
    border-color: #6b7280 !important;
}

/* Force light mode colors for empty state buttons */
body.theme-light .empty-state-container a:not(.empty-state-action-btn),
body.theme-light .empty-state-filtered a,
body.theme-light .empty-state-filtered button {
    background-color: #ffffff !important;
    border-color: #d1d5db !important;
    color: #1f2937 !important;
    transition: background-color 0.3s ease !important;
}

body.theme-light .empty-state-container a:not(.empty-state-action-btn):hover,
body.theme-light .empty-state-filtered a:hover,
body.theme-light .empty-state-filtered button:hover {
    background-color: #f3f4f6 !important;
    border-color: #9ca3af !important;
}

/* Responsive Grid Styles */
/* Mobile: 1 column */
@media (max-width: 639px) {
    #projects-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

/* Tablet: 2 columns */
@media (min-width: 640px) and (max-width: 1023px) {
    #projects-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }
}

/* Desktop: 3 columns */
@media (min-width: 1024px) {
    #projects-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }
}

/* Large Desktop: 3 columns with more spacing */
@media (min-width: 1280px) {
    #projects-grid {
        gap: 2.5rem;
    }
}

/* Theme-based background classes */
.projects-bg-dark {
    background-color: #000000 !important;
}

.projects-bg-light {
    background-color: #ffffff !important;
}

/* CRITICAL: Light temada projects-bg-dark class'ını override et */
html body.theme-light .projects-bg-dark,
html body.theme-light main.projects-bg-dark,
html body.theme-light section.projects-bg-dark,
html body.theme-light .empty-state-container.projects-bg-dark,
html body.theme-light .empty-state-container.projects-bg-dark.empty-state-container,
html body.theme-light #empty-state-container.projects-bg-dark,
html body.theme-light div.empty-state-container.projects-bg-dark {
    background-color: #ffffff !important;
    background: #ffffff !important;
    color: #111827 !important;
}

body.theme-dark #projects-main-container,
body.theme-dark #projects-gallery-section,
body.theme-dark .empty-state-container,
body.theme-dark .empty-state-filtered,
body.theme-dark main#projects-main-container,
body.theme-dark section#projects-gallery-section {
    background-color: #000000 !important;
}

body.theme-light #projects-main-container,
body.theme-light #projects-gallery-section,
body.theme-light .empty-state-container,
body.theme-light .empty-state-filtered,
body.theme-light main#projects-main-container,
body.theme-light section#projects-gallery-section,
html body.theme-light .empty-state-container,
html body.theme-light #empty-state-container,
html body.theme-light div.empty-state-container {
    background-color: #ffffff !important;
    background: #ffffff !important;
    color: #111827 !important;
}

/* Light theme hero override (Projects): keep media dark, text off-white, NO brightening overlay */
body.theme-light .projects-hero {
    /* Keep a dark fallback behind image/video; do NOT force light bg (prevents "illumination" look) */
    background-color: #0a0a0a !important;
}

body.theme-light .projects-hero-overlay {
    /* Dark overlay (no white wash / illumination) */
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.45), rgba(10, 10, 10, 0.85)) !important;
}

body.theme-light .projects-hero h1,
body.theme-light .projects-hero p {
    color: rgba(255, 255, 255, 0.95) !important;
    text-shadow: none !important;
}

body.theme-light .projects-hero .bg-marque-gold,
body.theme-light .projects-hero .w-24.h-1.bg-marque-gold {
    background-color: #A89F91 !important;
}

/* Ensure all text in empty state container is visible in light theme */
body.theme-light .empty-state-container *,
body.theme-light .empty-state-container p,
body.theme-light .empty-state-container span,
html body.theme-light .empty-state-container *,
html body.theme-light #empty-state-container *,
html body.theme-light div.empty-state-container * {
    color: inherit;
}

body.theme-light .empty-state-container .text-gray-900,
html body.theme-light .empty-state-container .text-gray-900,
html body.theme-light #empty-state-container .text-gray-900 {
    color: #111827 !important;
}

body.theme-light .empty-state-container .text-gray-600,
html body.theme-light .empty-state-container .text-gray-600,
html body.theme-light #empty-state-container .text-gray-600 {
    color: #4b5563 !important;
}

/* Animation classes */
.project-item-fade-out {
    transition: all 0.3s ease-out;
    opacity: 0;
    transform: scale(0.95) translateY(10px);
}

.project-item-fade-in {
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    opacity: 1;
    transform: scale(1) translateY(0);
}

.project-item-load-more {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
    transition: all 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.project-item-load-more-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Display utilities */
.hidden-display {
    display: none !important;
}

.flex-display {
    display: flex !important;
}

/* Aspect ratio utilities */
.aspect-4-3 {
    aspect-ratio: 4/3;
}

/* Empty state text colors */
.empty-state-title-dark {
    color: #ffffff;
}

.empty-state-title-light {
    color: #111827;
}

.empty-state-text-dark {
    color: #d1d5db;
}

.empty-state-text-light {
    color: #4b5563;
}

body.theme-dark .empty-state-filtered h3 {
    color: #ffffff !important;
}

body.theme-light .empty-state-filtered h3 {
    color: #111827 !important;
}

body.theme-dark .empty-state-filtered p {
    color: #d1d5db !important;
}

body.theme-light .empty-state-filtered p {
    color: #4b5563 !important;
}

/* Project card theme classes */
.project-card-bg-dark {
    background-color: #000000 !important;
}

.project-card-bg-light {
    background-color: #ffffff !important;
}

.project-image-bg-dark {
    background-color: #000000 !important;
}

.project-image-bg-light {
    background-color: #f3f4f6 !important;
}

/* Force dark background for image containers in dark theme */
body.theme-dark .project-item-image-container,
body.theme-dark .project-item-image-container > div {
    background-color: #000000 !important;
    background: #000000 !important;
}

body.theme-dark .project-item-image-container img {
    background-color: #000000 !important;
    background: #000000 !important;
}

/* Filter button theme classes */
.filter-btn-bg-dark {
    background-color: #000000 !important;
}

.filter-btn-bg-light-all {
    background-color: #111827 !important;
}

.filter-btn-bg-light {
    background-color: #e5e7eb !important;
}

/* Filter button base styles - Her iki tema için */
button.filter-btn,
.filter-btn {
    min-height: 2.5rem !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: relative !important;
    z-index: 0 !important;
}

/* Filter button text/span - Base styles */
button.filter-btn span,
.filter-btn span,
button.filter-btn .relative.z-10,
.filter-btn .relative.z-10 {
    position: relative !important;
    z-index: 10 !important;
    display: inline-block !important;
    white-space: nowrap !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Filter button active state - Dark theme */
body.theme-dark button.filter-btn.active,
body.theme-dark .filter-btn.active,
body.theme-dark button.filter-btn.active span,
body.theme-dark .filter-btn.active span {
    background: linear-gradient(to right, #A89F91, rgba(168, 159, 145, 0.9)) !important;
    background-color: #A89F91 !important;
    color: #ffffff !important;
    border: none !important;
    border-color: transparent !important;
    border-width: 0 !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06) !important;
    position: relative !important;
    z-index: 1 !important;
}

/* Active button içindeki span/text */
body.theme-dark button.filter-btn.active .relative.z-10,
body.theme-dark .filter-btn.active .relative.z-10 {
    color: #ffffff !important;
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Filter button inactive state - Dark theme */
body.theme-dark button.filter-btn:not(.active),
body.theme-dark .filter-btn:not(.active) {
    background-color: rgba(0, 0, 0, 0.2) !important;
    background-image: none !important;
    color: #d1d5db !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-width: 1px !important;
    box-shadow: none !important;
}

/* Inactive button içindeki text */
body.theme-dark button.filter-btn:not(.active) .relative.z-10,
body.theme-dark .filter-btn:not(.active) .relative.z-10 {
    color: #d1d5db !important;
    display: inline-block !important;
}

body.theme-dark button.filter-btn:not(.active):hover,
body.theme-dark .filter-btn:not(.active):hover {
    background-color: rgba(0, 0, 0, 0.4) !important;
    background-image: none !important;
    color: #A89F91 !important;
    border: 1px solid rgba(168, 159, 145, 0.5) !important;
}

/* Filter button active state - Light theme */
body.theme-light button.filter-btn.active,
body.theme-light .filter-btn.active,
body.theme-light button.filter-btn.active span,
body.theme-light .filter-btn.active span {
    background: linear-gradient(to right, #A89F91, rgba(168, 159, 145, 0.9)) !important;
    background-color: #A89F91 !important;
    color: #ffffff !important;
    border: none !important;
    border-color: transparent !important;
    border-width: 0 !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06) !important;
    position: relative !important;
    z-index: 1 !important;
}

/* Active button içindeki span/text */
body.theme-light button.filter-btn.active .relative.z-10,
body.theme-light .filter-btn.active .relative.z-10 {
    color: #ffffff !important;
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Filter button inactive state - Light theme */
body.theme-light button.filter-btn:not(.active),
body.theme-light .filter-btn:not(.active) {
    background-color: rgba(229, 231, 235, 0.8) !important;
    background-image: none !important;
    color: #4b5563 !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    border-width: 1px !important;
    box-shadow: none !important;
}

/* Inactive button içindeki text */
body.theme-light button.filter-btn:not(.active) .relative.z-10,
body.theme-light .filter-btn:not(.active) .relative.z-10 {
    color: #4b5563 !important;
    display: inline-block !important;
}

body.theme-light button.filter-btn:not(.active):hover,
body.theme-light .filter-btn:not(.active):hover {
    background-color: rgba(209, 213, 219, 0.8) !important;
    background-image: none !important;
    color: #A89F91 !important;
    border: 1px solid rgba(168, 159, 145, 0.5) !important;
}

/* Empty state info box - Dark theme */
body.theme-dark .empty-state-info-box {
    background-color: transparent !important;
    border-color: rgba(75, 85, 99, 0.5) !important;
    border-style: solid !important;
}

body.theme-dark .empty-state-info-text {
    color: #d1d5db !important;
}

/* Empty state info box - Light theme */
body.theme-light .empty-state-info-box,
html body.theme-light .empty-state-info-box,
html body.theme-light .empty-state-container .empty-state-info-box {
    background-color: #ffffff !important;
    background: #ffffff !important;
    border-color: #d1d5db !important;
    border-style: solid !important;
    border-width: 2px !important;
}

body.theme-light .empty-state-info-text,
html body.theme-light .empty-state-info-text,
html body.theme-light .empty-state-container .empty-state-info-text,
html body.theme-light .empty-state-info-box p {
    color: #4b5563 !important;
}

/* Empty state icon container - Light theme */
body.theme-light .empty-state-container .bg-gradient-to-br,
body.theme-light .empty-state-container div[class*="from-marque-gold"],
body.theme-light .empty-state-container .rounded-full[class*="bg-gradient"],
body.theme-light .empty-state-container div[class*="rounded-full"][class*="bg-gradient"],
body.theme-light .empty-state-container div.rounded-full {
    background: linear-gradient(to bottom right, rgba(168, 159, 145, 0.3), rgba(168, 159, 145, 0.2)) !important;
    background-color: rgba(168, 159, 145, 0.15) !important;
    border: 1px solid rgba(168, 159, 145, 0.85) !important;
    border-color: rgba(168, 159, 145, 0.85) !important;
    border-width: 1px !important;
    border-style: solid !important;
}

body.theme-light .empty-state-container svg.text-marque-gold,
body.theme-light .empty-state-container svg[class*="text-marque-gold"] {
    color: #A89F91 !important;
    stroke: #A89F91 !important;
    fill: none !important;
    opacity: 1 !important;
}

/* Empty state icon container - Dark theme */
body.theme-dark .empty-state-container .bg-gradient-to-br,
body.theme-dark .empty-state-container div[class*="from-marque-gold"],
body.theme-dark .empty-state-container .rounded-full[class*="bg-gradient"],
body.theme-dark .empty-state-container div[class*="rounded-full"][class*="bg-gradient"],
body.theme-dark .empty-state-container div.rounded-full {
    background: linear-gradient(to bottom right, rgba(168, 159, 145, 0.25), rgba(168, 159, 145, 0.15)) !important;
    background-color: rgba(168, 159, 145, 0.1) !important;
    border: 1px solid rgba(168, 159, 145, 0.6) !important;
    border-color: rgba(168, 159, 145, 0.6) !important;
    border-width: 1px !important;
    border-style: solid !important;
}

body.theme-dark .empty-state-container svg.text-marque-gold,
body.theme-dark .empty-state-container svg[class*="text-marque-gold"] {
    color: #A89F91 !important;
    stroke: #A89F91 !important;
    fill: none !important;
    opacity: 1 !important;
}

/* Icon container visibility - Her iki tema için */
.empty-state-container .rounded-full[class*="bg-gradient"],
.empty-state-container div[class*="rounded-full"] {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Icon SVG visibility - Her iki tema için */
.empty-state-container svg {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 100% !important;
    height: 100% !important;
}

/* Projects count text - Dark theme */
body.theme-dark .projects-count-text {
    color: #d1d5db !important;
}

/* Projects count text - Light theme */
body.theme-light .projects-count-text,
body.theme-light .projects-count-text.text-gray-600 {
    color: #4b5563 !important;
}

body.theme-light .projects-count-text span.text-marque-gold {
    color: #A89F91 !important;
}

/* Empty state description - Dark theme */
body.theme-dark .empty-state-description {
    color: #d1d5db !important;
}

/* Empty state description - Light theme */
body.theme-light .empty-state-description,
body.theme-light .empty-state-container p.text-gray-600,
html body.theme-light .empty-state-description,
html body.theme-light .empty-state-container p.text-gray-600,
html body.theme-light #empty-state-container p.text-gray-600,
html body.theme-light .empty-state-container p {
    color: #4b5563 !important;
}

/* Empty state title - Dark theme */
body.theme-dark .empty-state-title {
    color: #ffffff !important;
}

/* Empty state title - Light theme */
body.theme-light .empty-state-title,
body.theme-light .empty-state-container h2,
body.theme-light .empty-state-container h2.text-gray-900,
html body.theme-light .empty-state-title,
html body.theme-light .empty-state-container h2,
html body.theme-light #empty-state-container h2,
html body.theme-light .empty-state-container h2.text-gray-900 {
    color: #111827 !important;
}

/* Empty state action buttons (Contact Us / Back to Home) */
body.theme-dark .empty-state-action-btn {
    background-color: transparent !important;
    color: #f3f4f6 !important;
    border-color: #4b5563 !important;
    box-shadow: none !important;
}

body.theme-dark .empty-state-action-btn:hover,
body.theme-dark .empty-state-action-btn:focus-visible {
    background-color: transparent !important;
    border-color: #A89F91 !important;
    color: #A89F91 !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35) !important;
    outline: none !important;
}

body.theme-light .empty-state-action-btn {
    background-color: transparent !important;
    color: #111827 !important;
    border-color: #9ca3af !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08) !important;
}

body.theme-light .empty-state-action-btn:hover,
body.theme-light .empty-state-action-btn:focus-visible {
    background-color: rgba(168, 159, 145, 0.05) !important;
    border-color: #A89F91 !important;
    color: #A89F91 !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12) !important;
    outline: none !important;
}

/* Ensure empty state action buttons are visible in light theme */
body.theme-light .empty-state-action-btn {
    border-color: #9ca3af !important;
    border-width: 2px !important;
}

/* Empty state buttons - Dark theme (override Tailwind dark: classes) */
body.theme-dark .empty-state-container .bg-white,
body.theme-dark .empty-state-container a.bg-white {
    background-color: #1f2937 !important;
}

body.theme-dark .empty-state-container .text-gray-900,
body.theme-dark .empty-state-container a.text-gray-900 {
    color: #f3f4f6 !important;
}

body.theme-dark .empty-state-container .border-gray-400,
body.theme-dark .empty-state-container a.border-gray-400 {
    border-color: #4b5563 !important;
}

body.theme-dark .empty-state-container a:hover.bg-gray-50 {
    background-color: #374151 !important;
}

body.theme-dark .empty-state-container a:hover.border-gray-500 {
    border-color: #6b7280 !important;
}

body.theme-dark .empty-state-container .shadow-sm {
    box-shadow: none !important;
}

body.theme-dark .empty-state-container .shadow-lg {
    box-shadow: none !important;
}

/* Empty state buttons - Light theme */
body.theme-light .empty-state-container .bg-white,
body.theme-light .empty-state-container a.bg-white {
    background-color: #ffffff !important;
}

body.theme-light .empty-state-container .text-gray-900,
body.theme-light .empty-state-container a.text-gray-900 {
    color: #111827 !important;
}

body.theme-light .empty-state-container .border-gray-400,
body.theme-light .empty-state-container a.border-gray-400 {
    border-color: #9ca3af !important;
}

body.theme-light .empty-state-container a:hover.bg-gray-50 {
    background-color: #f9fafb !important;
}

body.theme-light .empty-state-container a:hover.border-gray-500 {
    border-color: #6b7280 !important;
}

/* Body overflow utility */
.body-overflow-hidden {
    overflow: hidden !important;
}

/* =================================
   Projects Hero: Inter Font and Responsive Sizes
   ================================= */

/* Target hero section in projects page - override font classes and Tailwind text sizes */
/* Same font sizes as stone collection page */
section.projects-hero h1,
section.projects-hero h1.font-playfair,
section.projects-hero h1.text-4xl,
section.projects-hero h1.text-5xl,
section.projects-hero h1.text-6xl,
section.projects-hero h1.text-7xl {
    font-size: 1.1875rem !important; /* 19px - mobile */
    font-weight: 300 !important;
}

@media (min-width: 640px) {
    section.projects-hero h1,
    section.projects-hero h1.text-4xl,
    section.projects-hero h1.text-5xl {
        font-size: 1.375rem !important; /* 22px - sm */
    }
}

@media (min-width: 768px) {
    section.projects-hero h1,
    section.projects-hero h1.text-4xl,
    section.projects-hero h1.text-5xl,
    section.projects-hero h1.text-6xl {
        font-size: 1.625rem !important; /* 26px - md */
    }
}

@media (min-width: 1024px) {
    section.projects-hero h1,
    section.projects-hero h1.text-4xl,
    section.projects-hero h1.text-5xl,
    section.projects-hero h1.text-6xl,
    section.projects-hero h1.text-7xl {
        font-size: 2.0625rem !important; /* 33px - lg */
    }
}

@media (min-width: 1280px) {
    section.projects-hero h1,
    section.projects-hero h1.text-4xl,
    section.projects-hero h1.text-5xl,
    section.projects-hero h1.text-6xl,
    section.projects-hero h1.text-7xl {
        font-size: 2.5rem !important; /* 40px - xl */
    }
}

section.relative.min-h-\[44vh\].md\:min-h-\[53vh\].bg-marque-black p,
section.relative.min-h-\[44vh\].md\:min-h-\[53vh\].bg-marque-black p.font-manrope {
    font-size: 1rem !important; /* text-base - mobile */
}

@media (min-width: 768px) {
    section.relative.min-h-\[44vh\].md\:min-h-\[53vh\].bg-marque-black p {
        font-size: 1.125rem !important; /* text-lg - md */
    }
}

/* =================================
   CRITICAL FIX: Projects Hero Light Theme
   ================================= */

/* Projects hero - Light temada GÖRSELİ AYDINLATMA: KAPALI (en yüksek öncelik) */
html body.theme-light section.projects-hero.bg-marque-black,
html body.theme-light section.projects-hero.relative.bg-marque-black,
html body.theme-light section.projects-hero.relative.min-h-\[44vh\],
html body.theme-light section.relative.min-h-\[44vh\].md\:min-h-\[53vh\].bg-marque-black.projects-hero,
html body.theme-light section.projects-hero {
    background-color: #0a0a0a !important;
    border-bottom: none !important;
    border: none !important;
    margin-bottom: 0 !important;
}

/* Hero section'dan sonra gelen breadcrumb ve main arasında siyah alan olmasın */
html body.theme-light section.projects-hero + .breadcrumb-wrapper,
html body.theme-light section.projects-hero ~ .breadcrumb-wrapper,
html body.theme-light section.projects-hero ~ main {
    border-top: none !important;
    margin-top: 0 !important;
}

/* Projects hero overlay - Light temada dark overlay (aydınlatma yok) */
html body.theme-light section.projects-hero .projects-hero-overlay {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.45), rgba(10, 10, 10, 0.85)) !important;
}

/* NOT: .absolute.inset-0 selector'ü background media container'ını da hedefliyordu (img/video). */

/* Projects hero text - Light temada beyaz, gölge yok */
html body.theme-light section.projects-hero h1,
html body.theme-light section.projects-hero p,
html body.theme-light section.projects-hero p.text-white\/70 {
    color: rgba(255, 255, 255, 0.95) !important;
    text-shadow: none !important;
}

/* =================================
   CRITICAL: En yüksek öncelik - Light tema override
   Bu kurallar EN SONDA olmalı - tüm diğer kuralları override eder
   MUTLAK ÜSTÜNLÜK İÇİN: Her türlü kombinasyonu kapsıyoruz
   ================================= */

/* Main ve Section Arka Planı - Light Tema */
html body.theme-light main#projects-main-container,
html body.theme-light section#projects-gallery-section,
html body.theme-light .projects-gallery-section {
    background-color: #ffffff !important;
    background: #ffffff !important;
    border: none !important;
    box-shadow: none !important;
}

/* Breadcrumb sonrası siyah şeridi yok et */
html body.theme-light .breadcrumb-wrapper {
    background-color: #ffffff !important;
    border-bottom: none !important;
    margin-bottom: 0 !important;
}

/* Filtre butonları alanındaki siyahlığı yok et */
html body.theme-light #projects-gallery-section > div {
    background-color: #ffffff !important;
    background: #ffffff !important;
}

/* Body arka planını light modda zorla beyaz yap */
html body.theme-light {
    background-color: #ffffff !important;
}

/* Hero sonrası tüm elementlerin üst border'ını temizle */
html body.theme-light .projects-hero + *,
html body.theme-light .projects-hero ~ * {
    border-top: none !important;
}

/* =================================
   ULTRA AGGRESSIVE: JavaScript tarafından eklenen class'ları da override et
   ================================= */

/* Projects-bg-dark class'ını light temada override et */
html body.theme-light main.projects-bg-dark#projects-main-container,
html body.theme-light section.projects-bg-dark#projects-gallery-section,
html body.theme-light .projects-bg-dark.empty-state-container,
html body.theme-light #empty-state-container.projects-bg-dark,
html body.theme-light div.empty-state-container.projects-bg-dark,
html body.theme-light .empty-state-container.projects-bg-dark {
    background-color: #ffffff !important;
    background: #ffffff !important;
    color: #111827 !important;
}

/* Tüm olası background class kombinasyonları */
html body.theme-light main[class*="bg-"]#projects-main-container,
html body.theme-light section[class*="bg-"]#projects-gallery-section {
    background-color: #ffffff !important;
}

/* Body element'inin kendisini de kontrol et - eğer body dark ise */
html.theme-light body.theme-light main#projects-main-container,
html.theme-light body.theme-light section#projects-gallery-section {
    background-color: #ffffff !important;
}

/* =================================
   ULTRA CRITICAL: Empty State Container - Light Tema FİX
   EN YÜKSEK ÖNCELİK - MUTLAK OVERRIDE
   ================================= */

/* Empty state container background - tüm olası class kombinasyonları */
html body.theme-light .empty-state-container,
html body.theme-light #empty-state-container,
html body.theme-light div.text-center.empty-state-container,
html body.theme-light div.text-center.py-8.empty-state-container,
html body.theme-light div.text-center.py-8.sm\:py-12.empty-state-container,
html body.theme-light main .empty-state-container,
html body.theme-light main#projects-main-container .empty-state-container,
html body.theme-light section .empty-state-container,
html body.theme-light section#projects-gallery-section .empty-state-container,
html body.theme-light .empty-state-container[class*="projects-bg-"],
html body.theme-light .empty-state-container.projects-bg-dark,
html body.theme-light .empty-state-container.projects-bg-light,
html body.theme-light div[id="empty-state-container"],
html body.theme-light main div.empty-state-container,
html body.theme-light section div.empty-state-container {
    background-color: #ffffff !important;
    background: #ffffff !important;
    color: #111827 !important;
}

/* Empty state başlık - tüm olası selectorler */
html body.theme-light .empty-state-container h2,
html body.theme-light .empty-state-container .empty-state-title,
html body.theme-light #empty-state-container h2,
html body.theme-light .empty-state-container h2.text-lg,
html body.theme-light .empty-state-container h2.text-gray-900,
html body.theme-light .empty-state-container h2[class*="text-"],
html body.theme-light div.empty-state-container h2 {
    color: #111827 !important;
}

/* Empty state açıklama */
html body.theme-light .empty-state-container p,
html body.theme-light .empty-state-container .empty-state-description,
html body.theme-light .empty-state-container .empty-state-info-text,
html body.theme-light #empty-state-container p,
html body.theme-light .empty-state-container p.text-gray-600,
html body.theme-light .empty-state-container p[class*="text-gray"],
html body.theme-light div.empty-state-container p {
    color: #4b5563 !important;
}

/* Empty state icon container - gradient background override */
html body.theme-light .empty-state-container .bg-gradient-to-br,
html body.theme-light .empty-state-container div[class*="from-marque-gold"],
html body.theme-light .empty-state-container .rounded-full[class*="bg-gradient"],
html body.theme-light .empty-state-container div[class*="rounded-full"][class*="bg-gradient"],
html body.theme-light .empty-state-container div.rounded-full,
html body.theme-light .empty-state-container div.rounded-full[class*="from-"],
html body.theme-light #empty-state-container div.rounded-full {
    background: linear-gradient(to bottom right, rgba(168, 159, 145, 0.3), rgba(168, 159, 145, 0.2)) !important;
    background-color: rgba(168, 159, 145, 0.15) !important;
    border: 1px solid rgba(168, 159, 145, 0.85) !important;
    border-color: rgba(168, 159, 145, 0.85) !important;
    border-width: 1px !important;
    border-style: solid !important;
}

/* Empty state SVG icon */
html body.theme-light .empty-state-container svg.text-marque-gold,
html body.theme-light .empty-state-container svg[class*="text-marque-gold"],
html body.theme-light #empty-state-container svg,
html body.theme-light .empty-state-container div.rounded-full svg {
    color: #A89F91 !important;
    stroke: #A89F91 !important;
    fill: none !important;
    opacity: 1 !important;
}

/* Empty state action buttons */
html body.theme-light .empty-state-container .empty-state-action-btn,
html body.theme-light .empty-state-action-btn,
html body.theme-light #empty-state-container a,
html body.theme-light .empty-state-container a[class*="border-"] {
    background-color: transparent !important;
    color: #111827 !important;
    border-color: #9ca3af !important;
    border-width: 2px !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08) !important;
}

html body.theme-light .empty-state-container .empty-state-action-btn:hover,
html body.theme-light .empty-state-action-btn:hover,
html body.theme-light #empty-state-container a:hover,
html body.theme-light .empty-state-container a:hover {
    background-color: rgba(168, 159, 145, 0.05) !important;
    border-color: #A89F91 !important;
    color: #A89F91 !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12) !important;
}

/* Gold divider in hero - Light theme */
html body.theme-light .projects-hero .bg-marque-gold,
html body.theme-light section.projects-hero .bg-marque-gold,
html body.theme-light section.projects-hero .w-24.h-1.bg-marque-gold,
html body.theme-light section.projects-hero div.bg-marque-gold {
    background-color: #A89F91 !important;
}

/* Projects hero - Çizgiyi kaldır ve sloganı yukarı yaklaştır */
.projects-hero .w-24.h-1.bg-marque-gold,
.projects-hero div.w-24.h-1.bg-marque-gold,
section.projects-hero .w-24.h-1.bg-marque-gold,
section.projects-hero div.w-24.h-1.bg-marque-gold {
    display: none !important; /* Çizgiyi kaldır */
}

/* Sloganı yukarı yaklaştır */
.projects-hero h1,
section.projects-hero h1 {
    margin-bottom: 0.5rem !important; /* mb-4'ten mb-2'ye yaklaştır */
}

.projects-hero p,
section.projects-hero p {
    margin-top: 0 !important; /* Üst margin yok */
}

/* Line clamp utilities */
.line-clamp-5 {
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Responsive improvements */
@media (max-width: 639px) {
    /* Mobile: Smaller project card padding */
    .project-item {
        border-radius: 1rem;
    }
    
    /* Mobile: Smaller thumbnail images in lightbox */
    #project-lightbox-thumbnails img {
        width: 3rem;
        height: 3rem;
    }
    
    /* Mobile: Better spacing for filter buttons */
    .filter-btn {
        font-size: 0.75rem;
        padding: 0.5rem 0.75rem;
    }
    
    /* Mobile: Adjust hero section */
    .projects-hero h1 {
        font-size: 2rem;
        line-height: 1.2;
    }
    
    .projects-hero p {
        font-size: 0.875rem;
    }
}

@media (min-width: 640px) and (max-width: 1023px) {
    /* Tablet: Medium thumbnail images in lightbox */
    #project-lightbox-thumbnails img {
        width: 4rem;
        height: 4rem;
    }
}

@media (min-width: 1024px) {
    /* Desktop: Full size thumbnail images in lightbox */
    #project-lightbox-thumbnails img {
        width: 4rem;
        height: 4rem;
    }
}

/* Responsive lightbox image */
#project-lightbox-image {
    max-width: 100%;
    max-height: calc(100vh - 12rem);
}

@media (max-width: 639px) {
    #project-lightbox-image {
        max-height: calc(100vh - 12rem);
    }
    
    /* Mobile: Ensure thumbnails are visible below image */
    #project-lightbox-thumbnails {
        min-height: 3.5rem;
        padding: 0.5rem;
    }
    
    #project-lightbox-counter {
        margin-bottom: 0.25rem;
    }
}

/* Lightbox container flex layout */
#project-lightbox {
    display: flex;
    flex-direction: column;
}

/* Swipe area: allow horizontal swipe for prev/next, no inline styles */
#project-lightbox-image-area {
    touch-action: pan-y;
}

/* Close button: always top-right, above image - works on mobile and desktop */
#project-lightbox button[data-lightbox-close] {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    z-index: 60;
}
@media (max-width: 639px) {
    #project-lightbox button[data-lightbox-close] {
        width: 3.5rem;
        height: 3.5rem;
        min-width: 3.5rem;
        min-height: 3.5rem;
        font-size: 1.75rem;
    }
}
@media (min-width: 640px) {
    #project-lightbox button[data-lightbox-close] {
        top: 1rem;
        right: 1rem;
    }
}

#project-lightbox [data-lightbox-content] {
    display: flex;
    flex-direction: column;
    min-height: 0;
}

#project-lightbox [data-lightbox-content] > div:first-of-type {
    flex: 1;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Responsive project card images */
.project-item-image-container img {
    width: 100%;
    height: auto;
}

/* Responsive empty state */
@media (max-width: 639px) {
    .empty-state-container {
        padding: 1.5rem 0;
    }
    
    .empty-state-info-box {
        padding: 1rem;
    }
    
    .empty-state-action-btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
}

/* Mobile: project card text */
@media (max-width: 767px) {
    .project-item .project-title {
        font-size: 1.125rem;
    }
    .project-item .project-description {
        font-size: 0.9375rem !important;
    }
}

/* Lightbox navigation buttons - Responsive positioning */
.lightbox-nav-btn {
    display: flex !important;
}

/* Mobile: Position buttons below image, above thumbnails (not over image) */
@media (max-width: 767px) {
    .lightbox-nav-btn {
        top: auto !important;
        bottom: 2.5rem !important;
        left: 1rem !important;
        right: auto !important;
    }
    
    .lightbox-nav-btn[data-lightbox-next] {
        left: auto !important;
        right: 1rem !important;
    }
    
    /* Minimize spacing between image and buttons/thumbnails */
    #project-lightbox [data-lightbox-content] > div:first-of-type {
        padding-bottom: 2.5rem !important;
        margin-bottom: 0 !important;
    }
    
    /* Minimize gap in thumbnail container */
    #project-lightbox [data-lightbox-content] > div:last-of-type {
        margin-top: 0 !important;
        gap: 0.25rem !important;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }
    
    /* Remove gap between counter and thumbnails */
    #project-lightbox-counter {
        margin-bottom: 0 !important;
        margin-top: 0 !important;
        padding: 0.5rem 0.75rem !important;
    }
    
    /* Reduce thumbnail container padding */
    #project-lightbox-thumbnails {
        padding: 0.25rem 0.5rem !important;
        margin-top: 0 !important;
    }
}

/* Desktop: Position buttons on sides of image (left/right) */
@media (min-width: 768px) {
    .lightbox-nav-btn {
        top: 50% !important;
        bottom: auto !important;
        transform: translateY(-50%) !important;
    }
    
    .lightbox-nav-btn[data-lightbox-prev] {
        left: 1rem !important;
        right: auto !important;
    }
    
    /* Right arrow button: Keep centered on right side */
    .lightbox-nav-btn[data-lightbox-next] {
        left: auto !important;
        right: 1rem !important;
    }
    
    /* Close button z-index (position already set globally) */
    #project-lightbox button[data-lightbox-close] {
        z-index: 60 !important;
    }
    
    /* Right arrow button z-index lower than close button */
    .lightbox-nav-btn[data-lightbox-next] {
        z-index: 20 !important;
    }
    
    /* Remove padding on desktop */
    #project-lightbox [data-lightbox-content] > div:first-of-type {
        padding-bottom: 0 !important;
    }
}

/* =================================
   Motion Reduction – Projects Page (WCAG 2.1)
   ================================= */

@media (prefers-reduced-motion: reduce) {
    /* Proje kartları – geçiş ve ölçek animasyonlarını kapat */
    .project-item,
    .project-item *,
    .project-item-image-container,
    .project-main-image {
        transition: none !important;
        transform: none !important;
    }

    /* Filtre butonları – hover scale kapat */
    .filter-btn,
    .filter-btn * {
        transition: none !important;
        transform: none !important;
    }

    /* Load more ve fade animasyonları */
    .project-item-fade-out,
    .project-item-fade-in,
    .project-item-load-more,
    .project-item-load-more-visible {
        transition: none !important;
        transform: none !important;
    }

    /* Lightbox butonları */
    #project-lightbox button,
    #project-lightbox .lightbox-nav-btn {
        transition: none !important;
    }

    /* Lightbox thumbnail geçişleri */
    #project-lightbox-thumbnails img {
        transition: none !important;
    }
}