/* assets/style.css */

/* Style dla list spektakli - elegancka lista pionowa */

.meta-value {
    font-weight: normal;
    color: #666;
}

.meta-label {
    font-weight: bold;
    color: #333;
    margin-right: 8px;
}

.spektakle-lista {
   max-width: 90%; 
    margin: 20px 0;
}

.spektakl-item {
    position: relative;
    margin-bottom: 0;
}

.spektakl-separator {
    height: 1px;
    background: repeating-linear-gradient(
        to right,
        #ddd 0px,
        #ddd 8px,
        transparent 8px,
        transparent 16px
    );
    margin: 25px 0;
}

.spektakl-link-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    text-decoration: none;
    color: inherit;
    padding: 20px 0;
    transition: all 0.3s ease;
}

.spektakl-link-wrapper:hover {
    text-decoration: none;
    color: inherit;
    transform: translateX(5px);
}

.spektakl-image {
    flex-shrink: 0;
    width: 400px;
    height: 250px;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.spektakl-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.spektakl-link-wrapper:hover .spektakl-image img {
    transform: scale(1.05);
}

.spektakl-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-weight: bold;
    font-size: 12px;
    letter-spacing: 1px;
}

.spektakl-content {
    flex: 1;
    min-width: 0;
}

.spektakl-title {
    margin: 0 0 8px 0;
    font-size: 22px;
    font-weight: 600;
    color: #333;
    line-height: 1.3;
}

.spektakl-lokalizacja {
    font-size: 16px;
    color: #666;
    margin-bottom: 6px;
    font-style: italic;
}

.spektakl-data-godzina {
    font-size: 16px;
    color: #333;
    font-weight: 500;
    margin-bottom: 12px;
}

.spektakl-excerpt {
    color: #666;
    line-height: 1.5;
    font-size: 15px;
    margin-top: 8px;
}

/* Stare style dla meta informacji - zachowane dla kompatybilności */
.spektakl-meta {
    margin-bottom: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.spektakl-meta > div {
    display: flex;
    align-items: center;
    font-size: 14px;
    color: #666;
}

.meta-icon {
    margin-right: 8px;
    font-size: 16px;
}

.spektakl-date {
    font-weight: 500;
    color: #666;
}

.spektakl-duration {
    color: #666;
}

.spektakl-prices {
    color: #666;
    font-weight: 500;
}

.price-student {
    color: #666;
}

.price-normal {
    color: #666;
}

/* Style dla meta informacji pojedynczego spektaklu */
.spektakl-meta-info {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

.spektakl-meta-item {
    margin-bottom: 15px;
}

.spektakl-meta-item:last-child {
    margin-bottom: 0;
}

.spektakl-meta-item strong {
    color: #333;
    display: inline-block;
    min-width: 120px;
}

.spektakl-ceny {
    margin-top: 5px;
}

.spektakl-ceny span {
    display: inline-block;
    margin-right: 15px;
    padding: 5px 10px;
    background: #e3f2fd;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
}

.cena-studencka {
    background: #e8f5e8 !important;
    color: #2e7d32;
}

.cena-zwykla {
    background: #fff3e0 !important;
    color: #f57c00;
}

/* Komunikat o braku spektakli */
.brak-spektakli {
    text-align: center;
    padding: 40px 20px;
    color: #666;
    font-style: italic;
    background: #f8f9fa;
    border-radius: 8px;
    margin: 20px 0;
}

/* Responsywność */
@media (max-width: 768px) {
    .spektakl-link-wrapper {
        flex-direction: column;
        gap: 15px;
    }
    
    .spektakl-image {
        width: 100%;
        height: 200px;
    }
    
    .spektakl-title {
        font-size: 20px;
    }
    
    .spektakl-lokalizacja {
        font-size: 15px;
    }
    
    .spektakl-data-godzina {
        font-size: 15px;
    }
    
    .spektakl-excerpt {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .spektakle-lista {
        margin: 15px 0;
    }
    
    .spektakl-link-wrapper {
        padding: 15px 0;
    }
    
    .spektakl-separator {
        margin: 20px 0;
    }
    
    .spektakl-image {
        height: 160px;
    }
    
    .spektakl-title {
        font-size: 18px;
        margin-bottom: 8px;
    }
    
    .spektakl-lokalizacja {
        font-size: 14px;
    }
    
    .spektakl-data-godzina {
        font-size: 14px;
    }
}

/* Hover efekty */
@media (min-width: 769px) {
    .spektakl-link-wrapper:hover {
        background: rgba(102, 126, 234, 0.02);
        margin: 0 -20px;
        padding: 20px;
        border-radius: 8px;
    }
}

/* Animacje */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.spektakle-lista .spektakl-item {
    animation: fadeInUp 0.6s ease forwards;
}

.spektakle-lista .spektakl-item:nth-child(1) { animation-delay: 0.1s; }
.spektakle-lista .spektakl-item:nth-child(2) { animation-delay: 0.2s; }
.spektakle-lista .spektakl-item:nth-child(3) { animation-delay: 0.3s; }
.spektakle-lista .spektakl-item:nth-child(4) { animation-delay: 0.4s; }
.spektakle-lista .spektakl-item:nth-child(5) { animation-delay: 0.5s; }

/* Style dla edytora blokowego */
.spektakl-meta-panel .components-panel__body-title {
    font-weight: bold;
}

.spektakl-meta-panel .components-text-control__input {
    margin-bottom: 10px;
}