/* ==========================================================================
   YALÇIN KAYA PORTFOLIO - MODERN CUSTOM STYLES
   ========================================================================== */

body {
    font-family: 'Inter', sans-serif;
    scroll-behavior: smooth;
    user-select: none;
    -webkit-user-select: none;
}

/* Allow text selection in form inputs and admin modals */
input, textarea, select, [contenteditable="true"] {
    user-select: text;
    -webkit-user-select: text;
}

/* Custom Webkit Scrollbars */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: #171717; 
}
::-webkit-scrollbar-thumb {
    background: #404040; 
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #fd6a01; 
}

/* Gallery Item Styling */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 0.75rem;
    cursor: pointer;
    background: #262626;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
}
.gallery-item img {
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    -webkit-user-drag: none;
}
.gallery-item:hover img {
    transform: scale(1.06);
}
.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.2) 60%, rgba(0, 0, 0, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.35s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.25rem;
}
.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

/* Watermark Badge */
.watermark-tag {
    font-size: 0.65rem;
    letter-spacing: 0.08em;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Instagram Grid */
.insta-item {
    position: relative;
    overflow: hidden;
    border-radius: 0.5rem;
}
.insta-item img {
    transition: transform 0.5s ease;
    -webkit-user-drag: none;
}
.insta-item:hover img {
    transform: scale(1.08);
}
.insta-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
    color: white;
}
.insta-item:hover .insta-overlay {
    opacity: 1;
}

/* Shimmer Skeleton Loading */
@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}
.skeleton {
    background: linear-gradient(90deg, #262626 25%, #333333 50%, #262626 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

/* Before / After Comparison Slider */
.ba-container {
    position: relative;
    width: 100%;
    height: 480px;
    overflow: hidden;
    border-radius: 1rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    touch-action: pan-y;
}
@media (max-width: 768px) {
    .ba-container {
        height: 320px;
    }
}
.ba-before-img,
.ba-after-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
    -webkit-user-drag: none;
}
.ba-after-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 50%;
    overflow: hidden;
    border-right: 2px solid #fd6a01;
}
.ba-slider-handle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 44px;
    height: 44px;
    background-color: #fd6a01;
    color: #171717;
    border: 3px solid #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: ew-resize;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
    z-index: 20;
    transition: transform 0.15s ease, background-color 0.15s ease;
}
.ba-slider-handle:hover,
.ba-slider-handle:active {
    transform: translate(-50%, -50%) scale(1.1);
    background-color: #fe852b;
}

/* Custom Scrollbar for Modals */
.custom-scrollbar::-webkit-scrollbar {
    width: 6px;
}
.custom-scrollbar::-webkit-scrollbar-thumb {
    background: #404040; 
    border-radius: 3px;
}
.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: #fd6a01; 
}

/* Hide scrollbar completely (useful for mobile tabs) */
.hide-scrollbar::-webkit-scrollbar {
    display: none;
}
.hide-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Leaflet Dark Map Customization */
#photo-map {
    width: 100%;
    height: 480px;
    min-height: 480px;
    border-radius: 1rem;
    z-index: 10;
    position: relative;
    background-color: #171717;
}
.custom-map-pin {
    background: transparent !important;
    border: none !important;
}
.leaflet-popup-content-wrapper {
    background: #171717 !important;
    color: #f3f4f6 !important;
    border-radius: 0.75rem !important;
    border: 1px solid #333333 !important;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.6) !important;
}
.leaflet-popup-tip {
    background: #171717 !important;
}
.leaflet-popup-content {
    margin: 12px 14px !important;
    line-height: 1.5 !important;
}
.leaflet-container {
    background-color: #121212 !important;
    font-family: inherit !important;
}
.leaflet-tile-pane {
    filter: invert(100%) hue-rotate(180deg) brightness(95%) contrast(90%);
}

/* Video Card Play Overlay */
.video-card {
    position: relative;
    cursor: pointer;
    overflow: hidden;
    border-radius: 0.75rem;
    background: #262626;
    transition: transform 0.3s ease;
}
.video-card:hover {
    transform: translateY(-4px);
}
.video-play-btn {
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.2s ease;
}
.video-card:hover .video-play-btn {
    transform: scale(1.15);
    background-color: #fd6a01;
    color: #000000;
}

/* Floating WhatsApp Button Pulse */
@keyframes pulse-subtle {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.4);
    }
    50% {
        box-shadow: 0 0 0 14px rgba(37, 211, 102, 0);
    }
}
.whatsapp-float {
    animation: pulse-subtle 2.5s infinite;
}

/* Google Translate Widget Override */
body {
    top: 0 !important;
}
.skiptranslate, .goog-te-banner-frame {
    display: none !important;
}
#google_translate_element {
    display: none !important;
}

/* ==========================================================================
   PRELOADER & ANIMATIONS
   ========================================================================== */
.preloader-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* Scroll Reveal Classes */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Dynamic Gallery Item Animation */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
.gallery-item, .video-card {
    animation: fadeInUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* ==========================================================================
   PRELOADER & ANIMATIONS
   ========================================================================== */
.preloader-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* Scroll Reveal Classes */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Dynamic Gallery Item Animation */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
.gallery-item, .video-card {
    animation: fadeInUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* Admin Panel Professional Styling */
.admin-tab-active {
    background-color: rgba(253, 106, 1, 0.1);
    border-radius: 0.5rem;
}
@media (min-width: 640px) {
    .admin-tab-active {
        border-bottom: none;
        border-left: 3px solid #fd6a01;
        border-radius: 0 0.5rem 0.5rem 0;
    }
}
@media (max-width: 639px) {
    .admin-tab-active {
        border-bottom: 2px solid #fd6a01;
        border-left: none;
        border-radius: 0.5rem 0.5rem 0 0;
    }
}

/* Fix for slider raw image */
.ba-after-img {
    max-width: none !important;
}
