/* 
 * Amoja Premium Pokoje
 * Wersja finalna - 383x391px cards
 * Zdjęcia wyśrodkowane, tekst na zdjęciu
 */

:root {
    --amoja-gold: #AB8A62;
    --amoja-dark: #2C2416;
    --amoja-beige: #F5F1E8;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Kontener główny */
.amoja-pokoje-container {
    width: 100%;
    max-width: 100%;
    padding: 0;
    margin: 0;
    background: #ffffff;
}

/* Nagłówek sekcji */
.amoja-pokoje-header {
    text-align: center;
    padding: 100px 40px 80px;
    background: var(--amoja-beige);
}

.amoja-pokoje-header h1 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 52px;
    font-weight: 300;
    color: var(--amoja-dark);
    margin-bottom: 24px;
    letter-spacing: 2px;
    line-height: 1.2;
}

.amoja-pokoje-subtitle {
    font-family: 'Montserrat', sans-serif;
    font-size: 17px;
    font-weight: 300;
    color: #666;
    line-height: 1.8;
    max-width: 850px;
    margin: 0 auto;
}

/* SIATKA - 3 kolumny */
.amoja-pokoje-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 40px;
    margin: 0;
    background: #ffffff;
    max-width: 1400px;
    margin: 0 auto;
}

/* KARTA pokoju - proporcje 383x391 */
.amoja-pokoj-card {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 102.09%; /* 391/383 * 100 = 102.09% */
    overflow: hidden;
    cursor: pointer;
    background: #000;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.amoja-pokoj-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* Obrazek tła - WYŚRODKOWANY */
.amoja-pokoj-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background: #f5f5f5;
}

/* Obrazek tła - FULL WIDTH & HEIGHT jako background */
.amoja-pokoj-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.amoja-pokoj-card:hover .amoja-pokoj-image {
    transform: scale(1.05);
}


/* Gradient dolny - delikatny, tylko pod tekstem */
.amoja-pokoj-gradient {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40%; /* Mniejszy gradient */
    background: linear-gradient(
        to top, 
        rgba(0,0,0,0.8) 0%, 
        rgba(0,0,0,0.4) 50%, 
        transparent 100%
    );
    z-index: 2;
    pointer-events: none;
}

/* Info BEZ HOVERA - tekst na zdjęciu */
.amoja-pokoj-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 22px 20px;
    color: #ffffff;
    z-index: 3;
    transition: opacity 0.3s ease;
}

.amoja-pokoj-card:hover .amoja-pokoj-info {
    opacity: 0;
}

.amoja-info-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 8px;
    color: #ffffff;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

.amoja-info-details {
    display: flex;
    gap: 12px;
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    font-weight: 500;
    color: rgba(255,255,255,0.95);
    text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}

.amoja-info-detail {
    display: flex;
    align-items: center;
    gap: 5px;
}

.amoja-info-detail i {
    font-size: 12px;
    opacity: 0.9;
}

/* NAKŁADKA HOVER - czarna, minimalistyczna */
.amoja-pokoj-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.92);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 45px 35px;
    text-align: center;
    z-index: 4;
}

.amoja-pokoj-card:hover .amoja-pokoj-overlay {
    opacity: 1;
    visibility: visible;
}

/* Treść na overlay */
.amoja-overlay-content {
    color: #ffffff;
    transform: translateY(15px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) 0.1s;
}

.amoja-pokoj-card:hover .amoja-overlay-content {
    transform: translateY(0);
    opacity: 1;
}

/* CENA na hover - duża, elegancka */
.amoja-overlay-price {
    font-family: 'Montserrat', sans-serif;
    color: #ffffff;
    margin-bottom: 35px;
}

.amoja-overlay-price-amount {
    font-size: 68px;
    font-weight: 300;
    color: #ffffff;
    line-height: 1;
    letter-spacing: -2px;
}

.amoja-overlay-price-label {
    font-size: 11px;
    font-weight: 500;
    display: block;
    margin-top: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(255,255,255,0.75);
}

/* Przycisk - minimalistyczny */
.amoja-overlay-btn {
    display: inline-block;
    padding: 12px 30px;
    background: transparent;
    color: #ffffff;
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    border: 1px solid rgba(255,255,255,0.35);
    transition: all 0.3s ease;
}

.amoja-overlay-btn:hover {
    background: #ffffff;
    color: #000000;
    border-color: #ffffff;
    transform: translateY(-2px);
}

/* Responsive - 2 kolumny na tabletach */
@media (max-width: 1200px) {
    .amoja-pokoje-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px;
        padding: 30px;
    }
    
    .amoja-pokoj-card {
        padding-bottom: 105%;
    }
    
    .amoja-pokoje-header h1 {
        font-size: 44px;
    }
}

/* Responsive - 1 kolumna na mobile */
@media (max-width: 768px) {
    .amoja-pokoje-grid {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 20px;
    }
    
    .amoja-pokoj-card {
        padding-bottom: 120%;
    }
    
    .amoja-pokoje-header {
        padding: 60px 20px 50px;
    }
    
    .amoja-pokoje-header h1 {
        font-size: 36px;
    }
    
    .amoja-pokoje-subtitle {
        font-size: 15px;
    }
    
    .amoja-overlay-price-amount {
        font-size: 52px;
    }
    
    .amoja-info-title {
        font-size: 18px;
    }
}

/* Responsive - bardzo małe ekrany */
@media (max-width: 480px) {
    .amoja-pokoje-grid {
        padding: 15px;
        gap: 12px;
    }
    
    .amoja-pokoj-card {
        padding-bottom: 130%;
    }
}

/* Animacja wejścia kart */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(25px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.amoja-pokoj-card {
    animation: fadeInUp 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    opacity: 0;
}

/* Opóźnienia animacji dla każdej karty */
.amoja-pokoj-card:nth-child(1) { animation-delay: 0.05s; }
.amoja-pokoj-card:nth-child(2) { animation-delay: 0.1s; }
.amoja-pokoj-card:nth-child(3) { animation-delay: 0.15s; }
.amoja-pokoj-card:nth-child(4) { animation-delay: 0.2s; }
.amoja-pokoj-card:nth-child(5) { animation-delay: 0.25s; }
.amoja-pokoj-card:nth-child(6) { animation-delay: 0.3s; }
.amoja-pokoj-card:nth-child(7) { animation-delay: 0.35s; }
.amoja-pokoj-card:nth-child(8) { animation-delay: 0.4s; }
.amoja-pokoj-card:nth-child(9) { animation-delay: 0.45s; }
.amoja-pokoj-card:nth-child(10) { animation-delay: 0.5s; }
.amoja-pokoj-card:nth-child(11) { animation-delay: 0.55s; }
.amoja-pokoj-card:nth-child(12) { animation-delay: 0.6s; }
.amoja-pokoj-card:nth-child(13) { animation-delay: 0.65s; }
.amoja-pokoj-card:nth-child(14) { animation-delay: 0.7s; }
.amoja-pokoj-card:nth-child(15) { animation-delay: 0.75s; }
.amoja-pokoj-card:nth-child(16) { animation-delay: 0.8s; }
.amoja-pokoj-card:nth-child(17) { animation-delay: 0.85s; }
.amoja-pokoj-card:nth-child(18) { animation-delay: 0.9s; }
.amoja-pokoj-card:nth-child(19) { animation-delay: 0.95s; }
.amoja-pokoj-card:nth-child(20) { animation-delay: 1s; }
.amoja-pokoj-card:nth-child(21) { animation-delay: 1.05s; }
.amoja-pokoj-card:nth-child(22) { animation-delay: 1.1s; }
.amoja-pokoj-card:nth-child(23) { animation-delay: 1.15s; }
.amoja-pokoj-card:nth-child(24) { animation-delay: 1.2s; }

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

/* Loading placeholder dla obrazków */
.amoja-pokoj-image img:not([src]),
.amoja-pokoj-image img[src=""] {
    background: linear-gradient(
        90deg,
        #f0f0f0 0%,
        #e0e0e0 50%,
        #f0f0f0 100%
    );
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

/* Fix dla WordPress admin bar */
.admin-bar .amoja-pokoje-container {
    margin-top: 0;
}

/* Print styles */
@media print {
    .amoja-pokoj-overlay,
    .amoja-pokoj-gradient {
        display: none;
    }
    
    .amoja-pokoj-info {
        opacity: 1 !important;
    }
}
