/* Fonts - Preload için @import yerine link kullan (layout'ta) */
/* Google Fonts zaten display=swap ile yükleniyor */

/* Bootstrap Icons Font Display Override */
@font-face {
    font-family: 'bootstrap-icons';
    src: url('https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/font/fonts/bootstrap-icons.woff2') format('woff2'),
         url('https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/font/fonts/bootstrap-icons.woff') format('woff');
    font-display: swap; /* FOUC önleme ama performance artışı */
    font-weight: normal;
    font-style: normal;
}

:root {
    --primary-yellow: #efc51b;
    --accent-pink: #f70364;
    --black: #000000;
    --dark-grey: #161616;
    --white: #ffffff;
    --font-heading: 'Bungee', cursive;
    --font-body: 'Jost', sans-serif;
}

/* Font Loading - Fallback fonts for better performance */
body {
    font-family: var(--font-body), -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

body {
    font-family: var(--font-body);
    color: var(--white);
}

h1,
h2,
h3,
h4,
h5,
h6,
.h1,
.h2,
.h3,
.h4,
.h5,
.h6 {
    font-family: var(--font-heading);
    color: var(--white) !important;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

/* Override Bootstrap primary color to yellow */
.btn-primary {
    background-color: var(--primary-yellow) !important;
    border-color: var(--primary-yellow) !important;
    color: var(--black) !important;
}

.btn-primary:hover {
    background-color: var(--accent-pink) !important;
    border-color: var(--accent-pink) !important;
    color: var(--white) !important;
}

.text-primary {
    color: var(--primary-yellow) !important;
}

.border-primary {
    border-color: var(--primary-yellow) !important;
}

.bg-primary {
    background-color: var(--primary-yellow) !important;
}

/* Logo styling */
.navbar-brand {
    font-family: 'Bungee', cursive;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Make sure text is visible */
p,
span,
div {
    color: inherit;
}

/* Form labels should be white */
.form-label,
label {
    color: var(--white) !important;
}

/* ===============================================
   Accessibility - Kontrast İyileştirmeleri
   =============================================== */

/* Outline Primary Button - Daha yüksek kontrast */
.btn-outline-primary {
    color: var(--primary-yellow) !important;
    border-color: var(--primary-yellow) !important;
    border-width: 2px !important;
    font-weight: 500 !important;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
    background-color: var(--primary-yellow) !important;
    border-color: var(--primary-yellow) !important;
    color: var(--black) !important;
    font-weight: 500 !important;
}

/* Outline Light Button - Daha iyi kontrast */
.btn-outline-light {
    color: #ffffff !important;
    border-color: #ffffff !important;
    border-width: 2px !important;
    font-weight: 500 !important;
}

.btn-outline-light:hover,
.btn-outline-light:focus {
    background-color: #ffffff !important;
    border-color: #ffffff !important;
    color: #000000 !important;
}

/* Text white-50 yerine daha koyu - WCAG AA uyumlu */
.text-white-50 {
    color: rgba(255, 255, 255, 0.85) !important; /* 0.5'ten 0.85'e çıkarıldı */
}

/* Card text kontrastı artırıldı */
.card.bg-dark .card-text,
.card.bg-dark p {
    color: rgba(255, 255, 255, 0.9) !important;
}

/* Link hover states - daha belirgin */
a.text-white-50:hover,
a.text-white-50:focus {
    color: #ffffff !important;
    text-decoration: underline !important;
}

.hover-primary:hover,
.hover-primary:focus {
    color: var(--primary-yellow) !important;
    text-decoration: underline !important;
}

/* Secondary text - daha okunabilir */
.text-secondary {
    color: #adb5bd !important; /* Daha açık gri */
}

/* Badge contrast */
.badge.bg-primary {
    color: #000000 !important;
    font-weight: 600 !important;
}

/* Focus states - accessibility */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 2px solid var(--primary-yellow) !important;
    outline-offset: 2px !important;
}

/* Skip to main content - Kaldırıldı (kullanıcı isteği üzerine) */

/* ===============================================
   Hover Efektleri ve Transition
   =============================================== */

.transition-all {
    transition: all 0.3s ease;
}

/* Grayscale hover efekti - Başlangıç durumu */
.grayscale-hover {
    filter: grayscale(100%);
    transition: filter 0.4s ease, transform 0.4s ease;
}

/* Gallery image hover efekti - Özel class */
.gallery-image-hover {
    filter: grayscale(100%);
    transition: filter 0.4s ease, transform 0.4s ease;
}

/* Container overflow kontrolü */
.card,
.group {
    overflow: hidden;
}

/* Gallery container'lar için overflow */
.gallery-preview .group,
.gallery .group {
    overflow: hidden;
}

/* Hover durumları - Container'a hover yapınca görsel renkleniyor */
.gallery-preview .group:hover .gallery-image-hover,
.gallery .group:hover .gallery-image-hover,
.gallery-preview .group:hover img.gallery-image-hover,
.gallery .group:hover img.gallery-image-hover,
.gallery .group:hover .ratio .gallery-image-hover,
.gallery .group:hover .ratio img.gallery-image-hover,
.gallery-image-hover:hover {
    filter: grayscale(0%) !important;
    transform: scale(1.05) !important;
}

/* Grayscale hover için genel selector'lar */
.group:hover .grayscale-hover,
.group:hover img.grayscale-hover,
img.grayscale-hover:hover,
.grayscale-hover:hover,
.card:hover .grayscale-hover,
.card:hover img.grayscale-hover {
    filter: grayscale(0%) !important;
    transform: scale(1.05) !important;
}

.hover-underline:hover {
    text-decoration: underline !important;
}

.hover-bg-opacity-50:hover {
    background-color: rgba(0, 0, 0, 0.5) !important;
}

.hover-opacity-100:hover {
    opacity: 1 !important;
}

.hover-opacity-100 {
    transition: opacity 0.3s ease;
}

/* Sıralama başlığı hover efekti */
th[style*="cursor: pointer"]:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

th[style*="cursor: pointer"] {
    transition: background-color 0.2s ease;
}

/* Group hover effects for gallery */
.group:hover .hover-opacity-100 {
    opacity: 1;
}

.group:hover .hover-bg-opacity-50 {
    background-color: rgba(0, 0, 0, 0.5) !important;
}

/* Gallery overlay - sadece hover'da görünür */
.gallery-overlay {
    background-color: transparent;
    pointer-events: none;
    transition: background-color 0.3s ease;
}

.group:hover .gallery-overlay {
    background-color: rgba(0, 0, 0, 0.5);
}

.gallery-zoom-icon {
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 10;
    position: relative;
}

.group:hover .gallery-zoom-icon {
    opacity: 1;
}

/* Gallery title overlay - hover'da görünür */
.gallery-title-overlay {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.group:hover .gallery-title-overlay {
    opacity: 1;
}

.hover-bg-opacity-0 {
    background-color: rgba(0, 0, 0, 0);
    transition: background-color 0.3s ease;
}

.cursor-pointer {
    cursor: pointer;
}

/* Cookie Consent Banner */
.cookie-consent-banner {
    transition: transform 0.3s ease;
    animation: slideUp 0.3s ease forwards;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}