/*
Theme Name: FotoApartamenty
Theme URI: https://fotoapartamenty.pl
Author: Trae AI
Description: A high-performance photography theme for real estate, converted from HTML.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: fotoapartamenty
*/

/* 
 * NOTE: This theme uses Tailwind CSS via CDN for 1:1 fidelity with the original HTML.
 * In a production environment, you should set up a build process to compile 
 * Tailwind into this file or a separate assets/css/main.css.
 */

/* ==========================================================================
   Custom Theme Styles (from home.html)
   ========================================================================== */

.font-poppins { font-family: 'Poppins', sans-serif; }
.font-inter { font-family: 'Inter', sans-serif; }
.soft-shadow { box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04); }

/* Smooth scrolling */
html { scroll-behavior: smooth; }

/* Marquee Animation */
@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}
@keyframes marquee-reverse {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(0); }
}
.animate-marquee {
    animation: marquee 40s linear infinite;
}
.animate-marquee-reverse {
    animation: marquee-reverse 40s linear infinite;
}
.pause-on-hover:hover .animate-marquee,
.pause-on-hover:hover .animate-marquee-reverse {
    animation-play-state: paused;
}

/* Hero Animations */
@keyframes kenburns {
    0% { transform: scale(1); }
    100% { transform: scale(1.1); }
}
.animate-kenburns {
    animation: kenburns 20s ease-out infinite alternate;
}

/* Reveal on Scroll */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    will-change: opacity, transform;
}
.reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Fade In Up Animation */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

/* Before/After Slider */
.ba-container {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
    border-radius: 12px;
    cursor: col-resize;
    user-select: none;
    touch-action: pan-y;
}
@media (min-width: 768px) {
    .ba-container { height: 600px; }
}
.ba-container.hero-slider {
    height: 100%;
    border-radius: 0;
}
.ba-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}
.ba-img-before {
    filter: grayscale(100%) contrast(80%) brightness(60%) blur(1px);
}
.ba-img-after {
    clip-path: inset(0 50% 0 0);
    z-index: 10;
}
.ba-handle {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    background: white;
    z-index: 20;
    pointer-events: none;
    box-shadow: 0 0 10px rgba(0,0,0,0.3);
}
.ba-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 48px;
    height: 48px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    color: #2F3A20;
}
.ba-badge {
    position: absolute;
    top: 20px;
    padding: 6px 12px;
    background: rgba(0,0,0,0.6);
    color: white;
    font-size: 12px;
    font-weight: 600;
    border-radius: 4px;
    z-index: 15;
    pointer-events: none;
    font-family: 'Poppins', sans-serif;
    letter-spacing: 0.05em;
}
.ba-badge-before { left: 20px; }
.ba-badge-after { right: 20px; }

/* Hide scrollbar for Chrome, Safari and Opera */
.scrollbar-hide::-webkit-scrollbar {
    display: none;
}
/* Hide scrollbar for IE, Edge and Firefox */
.scrollbar-hide {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}
