/* Stylizacja dla pluginu Wystawy */

/* Integracja z motywem Extendable */
.single-wystawa .post-content,
.post-type-archive-wystawa .post-content {
    background: #fff;
    margin-bottom: 30px;
}

.single-wystawa .post-header,
.post-type-archive-wystawa .post-header {
    margin-bottom: 20px;
}

.single-wystawa .post-title,
.post-type-archive-wystawa .post-title {
    margin-bottom: 10px;
    font-weight: bold;
}

.single-wystawa .post-thumbnail,
.post-type-archive-wystawa .post-thumbnail {
    margin-bottom: 20px;
    text-align: center;
}

.single-wystawa .post-thumbnail img,
.post-type-archive-wystawa .post-thumbnail img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

/* Stylizacja meta details dla motywu Extendable */
.wystawa-meta-details {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 20px;
    margin: 20px 0;
    border-left: 4px solid #007cba;
}

.wystawa-meta-details .meta-row {
    margin-bottom: 12px;
    line-height: 1.6;
}

.wystawa-meta-details .meta-row:last-child {
    margin-bottom: 0;
}

.wystawa-meta-details strong {
    color: #2c3e50;
    font-weight: 600;
}

.dni-do-konca {
    background: #e3f2fd;
    padding: 10px;
    border-radius: 4px;
    border-left: 4px solid #2196f3;
}

/* Przycisk powrotu */
.wystawa-navigation {
    margin-top: 30px;
    text-align: center;
}

.wystawa-navigation .btn {
    display: inline-block;
    padding: 10px 20px;
    background: #007cba;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.3s ease;
}

.wystawa-navigation .btn:hover {
    background: #005a87;
    color: white;
    text-decoration: none;
}



.miasto-filter-form {
    display: flex;
    align-items: center;
    gap: 10px;
}

.miasto-filter-form label {
    font-weight: bold;
    color: #2c3e50;
    margin-right: 10px;
}

.miasto-filter-form select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    background: white;
    min-width: 200px;
}

.miasto-filter-form select:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

/* Stylizacja listy wystaw w archiwum */
.posts-container .post-item {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    margin-bottom: 30px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: box-shadow 0.3s ease;
}

.posts-container .post-item:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.posts-container .post-header {
    margin-bottom: 15px;
}

.posts-container .post-title a {
    color: #2c3e50;
    text-decoration: none;
    font-weight: bold;
}

.posts-container .post-title a:hover {
    color: #007cba;
}

.posts-container .post-meta {
    color: #666;
    font-size: 0.9em;
    margin-bottom: 10px;
}

.posts-container .post-thumbnail {
    float: left;
    margin-right: 20px;
    margin-bottom: 15px;
    max-width: 200px;
}

.posts-container .post-excerpt {
    overflow: hidden;
}

.posts-container .wystawa-meta {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 15px;
    border-left: 3px solid #007cba;
}

.posts-container .wystawa-meta p {
    margin: 8px 0;
    line-height: 1.4;
}

.posts-container .wystawa-meta strong {
    color: #2c3e50;
}

.posts-container .post-footer {
    margin-top: 15px;
    clear: both;
}

.posts-container .btn-primary {
    background: #007cba;
    border-color: #007cba;
    color: white;
    padding: 8px 16px;
    text-decoration: none;
    border-radius: 4px;
    display: inline-block;
    transition: background 0.3s ease;
}

.posts-container .btn-primary:hover {
    background: #005a87;
    border-color: #005a87;
    color: white;
    text-decoration: none;
}

.wystawy-lista,
.wystawy-archive {
    margin: 20px 0;
}

.wystawa-item {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: box-shadow 0.3s ease;
}

.wystawa-item:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.wystawa-item h2,
.wystawa-item h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #333;
    font-size: 1.3em;
}

.wystawa-item h2 a,
.wystawa-item h3 a {
    text-decoration: none;
    color: #2c3e50;
}

.wystawa-item h2 a:hover,
.wystawa-item h3 a:hover {
    color: #3498db;
}

.wystawa-thumbnail {
    float: left;
    margin-right: 20px;
    margin-bottom: 15px;
    max-width: 200px;
}

.wystawa-thumbnail img {
    width: 100%;
    height: auto;
    border-radius: 4px;
}

.wystawa-meta {
    margin-bottom: 15px;
}

.wystawa-meta p {
    margin: 8px 0;
    line-height: 1.5;
}

.wystawa-meta strong {
    color: #2c3e50;
}

.dni-do-konca {
    background: #e8f4f8;
    padding: 8px 12px;
    border-radius: 4px;
    display: inline-block;
    margin: 10px 0;
}

.dni-do-konca strong {
    color: #2980b9;
}

.wystawa-excerpt {
    clear: both;
    margin: 15px 0;
    color: #666;
    line-height: 1.6;
}

.wystawa-link {
    display: inline-block;
    background: #3498db;
    color: white;
    padding: 8px 16px;
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.3s ease;
}

.wystawa-link:hover {
    background: #2980b9;
    color: white;
}

/* Strona pojedynczej wystawy */
.wystawa-single {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.wystawa-featured-image {
    text-align: center;
    margin: 20px 0;
}

.wystawa-featured-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.wystawa-meta-details {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
    border-left: 4px solid #3498db;
}

.meta-row {
    margin: 10px 0;
    line-height: 1.6;
}

.meta-row strong {
    color: #2c3e50;
}

.wystawa-content {
    margin: 30px 0;
    line-height: 1.8;
}

.wystawa-navigation {
    margin: 30px 0;
    text-align: center;
}

.back-to-exhibitions {
    display: inline-block;
    background: #95a5a6;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.3s ease;
}

.back-to-exhibitions:hover {
    background: #7f8c8d;
    color: white;
}

/* Responsywność */
@media (max-width: 768px) {
    .miasto-filter-form {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .miasto-filter-form select {
        width: 100%;
        min-width: auto;
    }
    
    .wystawa-thumbnail {
        float: none;
        margin-right: 0;
        max-width: 100%;
        text-align: center;
    }
    
    .wystawa-item {
        padding: 15px;
    }
    
    .wystawa-meta-details {
        padding: 15px;
    }
}

/* Stylizacja dla panelu administracyjnego */
.form-table th {
    width: 150px;
    font-weight: bold;
}

.form-table td input[type="text"],
.form-table td input[type="url"],
.form-table td input[type="date"],
.form-table td textarea {
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 8px;
}

.form-table td textarea {
    resize: vertical;
}

/* Paginacja */
.navigation.pagination {
    margin: 30px 0;
    text-align: center;
}

.page-numbers {
    display: inline-block;
    padding: 8px 12px;
    margin: 0 4px;
    background: #f8f9fa;
    border: 1px solid #ddd;
    text-decoration: none;
    color: #333;
    border-radius: 4px;
}

.page-numbers:hover,
.page-numbers.current {
    background: #3498db;
    color: white;
    border-color: #3498db;
}

/* Clearfix */
.wystawa-item::after {
    content: "";
    display: table;
    clear: both;
}
