/* Theater Archive Public Styles */

/* General Layout */
.theater-archive-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Archive Header */
.theater-archive-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 40px 0;
    border-bottom: 2px solid #e0e0e0;
}

.theater-archive-title {
    font-size: 2.5em;
    color: #333;
    margin-bottom: 10px;
    font-weight: 300;
}

.theater-archive-description {
    font-size: 1.1em;
    color: #666;
    margin-bottom: 15px;
}

.theater-archive-count {
    font-size: 0.9em;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Archive Filters */
.theater-archive-filters {
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
}

.theater-filter-row {
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
}

.theater-filter-genre,
.theater-filter-year,
.theater-filter-sort {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 200px;
}

.theater-filter-genre label,
.theater-filter-year label,
.theater-filter-sort label {
    font-weight: 600;
    color: #333;
    white-space: nowrap;
}

.theater-filter-genre select,
.theater-filter-year select,
.theater-filter-sort select {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background: white;
    font-size: 14px;
}

/* Productions Grid */
.theater-productions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.theater-production-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.theater-production-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.theater-card-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.theater-card-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.theater-production-card:hover .theater-card-thumb {
    transform: scale(1.05);
}

.theater-card-year-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.theater-card-no-image {
    height: 200px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.theater-card-year-large {
    font-size: 3em;
    color: white;
    font-weight: 300;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.theater-card-content {
    padding: 20px;
}

.theater-card-title {
    margin: 0 0 8px 0;
    font-size: 1.4em;
    line-height: 1.3;
}

.theater-card-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.2s ease;
}

.theater-card-title a:hover {
    color: #667eea;
}

.theater-card-subtitle {
    margin: 0 0 15px 0;
    color: #666;
    font-style: italic;
    font-size: 0.95em;
}

.theater-card-meta {
    margin-bottom: 15px;
}

.theater-card-genres {
    margin-bottom: 10px;
}

.theater-genre-tag {
    display: inline-block;
    background: #667eea;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    text-decoration: none;
    margin-right: 5px;
    margin-bottom: 5px;
    transition: background 0.2s ease;
}

.theater-genre-tag:hover {
    background: #5a67d8;
    color: white;
}

.theater-card-premiere,
.theater-card-performances {
    font-size: 0.9em;
    color: #666;
    margin-bottom: 5px;
}

.theater-card-excerpt {
    color: #666;
    line-height: 1.5;
    margin-bottom: 15px;
    font-size: 0.95em;
}

.theater-card-footer {
    border-top: 1px solid #f0f0f0;
    padding-top: 15px;
}

.theater-card-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9em;
    transition: color 0.2s ease;
}

.theater-card-link:hover {
    color: #5a67d8;
}

/* Single Production */
.theater-single-production {
    max-width: 800px;
    margin: 0 auto;
}

.theater-production-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 40px 0;
    border-bottom: 2px solid #e0e0e0;
}

.theater-production-title {
    font-size: 2.8em;
    color: #333;
    margin-bottom: 10px;
    font-weight: 300;
    line-height: 1.2;
}

.theater-production-subtitle {
    font-size: 1.3em;
    color: #666;
    font-style: italic;
    margin-bottom: 20px;
    font-weight: 300;
}

.theater-production-meta {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.theater-meta-year,
.theater-meta-premiere,
.theater-meta-last-show,
.theater-meta-performances {
    font-size: 0.9em;
    color: #666;
}

.theater-production-genres {
    margin-top: 20px;
}

.theater-genre-link {
    color: #667eea;
    text-decoration: none;
    margin-right: 10px;
    padding: 4px 8px;
    border: 1px solid #667eea;
    border-radius: 4px;
    font-size: 0.9em;
    transition: all 0.2s ease;
}

.theater-genre-link:hover {
    background: #667eea;
    color: white;
}

.theater-production-image {
    text-align: center;
    margin-bottom: 40px;
}

.theater-featured-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
}

.theater-production-content {
    font-size: 1.1em;
    line-height: 1.8;
    color: #444;
    margin-bottom: 50px;
}

.theater-production-content p {
    margin-bottom: 20px;
}

/* Cast and Crew Sections */
.theater-cast-section,
.theater-crew-section {
    margin-bottom: 40px;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 30px;
}

.theater-cast-section h3,
.theater-crew-section h3 {
    margin-top: 0;
    margin-bottom: 25px;
    font-size: 1.8em;
    color: #333;
    text-align: center;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 15px;
}

.theater-cast-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.theater-cast-item {
    background: white;
    padding: 15px;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
    text-align: center;
}

.theater-role {
    font-weight: 600;
    color: #667eea;
    margin-bottom: 8px;
    font-size: 1.1em;
}

.theater-actor {
    color: #333;
}

.theater-actor a {
    color: #333;
    text-decoration: none;
    transition: color 0.2s ease;
}

.theater-actor a:hover {
    color: #667eea;
}

.theater-crew-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.theater-crew-group {
    background: white;
    padding: 20px;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
}

.theater-task-title {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.2em;
    color: #667eea;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 8px;
}

.theater-crew-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.theater-crew-member {
    padding: 5px 0;
    color: #333;
}

.theater-crew-member a {
    color: #333;
    text-decoration: none;
    transition: color 0.2s ease;
}

.theater-crew-member a:hover {
    color: #667eea;
}

/* Navigation */
.theater-production-footer {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 2px solid #e0e0e0;
}

.theater-navigation {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

.theater-nav-prev,
.theater-nav-next {
    flex: 1;
    max-width: 45%;
}

.theater-nav-next {
    text-align: right;
}

.theater-nav-prev a,
.theater-nav-next a {
    display: block;
    color: #333;
    text-decoration: none;
    padding: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.theater-nav-prev a:hover,
.theater-nav-next a:hover {
    border-color: #667eea;
    background: #f8f9ff;
}

.theater-nav-label {
    display: block;
    font-size: 0.85em;
    color: #666;
    margin-bottom: 5px;
}

.theater-nav-title {
    display: block;
    font-weight: 600;
    color: #333;
}

.theater-back-to-archive {
    text-align: center;
}

.theater-back-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.theater-back-link:hover {
    color: #5a67d8;
}

/* Persons Grid */
.theater-persons-grid {
    margin-bottom: 40px;
}

.theater-person-item {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.theater-person-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.theater-person-thumb {
    margin-bottom: 15px;
}

.theater-person-thumb img {
    border-radius: 50%;
    width: 80px;
    height: 80px;
    object-fit: cover;
}

.theater-person-name {
    margin: 0 0 10px 0;
    font-size: 1.2em;
}

.theater-person-name a {
    color: #333;
    text-decoration: none;
    transition: color 0.2s ease;
}

.theater-person-name a:hover {
    color: #667eea;
}

.theater-person-functions {
    margin-bottom: 15px;
}

.theater-function-tag {
    display: inline-block;
    background: #764ba2;
    color: white;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 11px;
    margin-right: 4px;
    margin-bottom: 4px;
}

.theater-person-bio {
    color: #666;
    font-size: 0.9em;
    line-height: 1.4;
}

/* Pagination */
.theater-archive-pagination {
    margin: 40px 0;
    text-align: center;
}

.theater-archive-pagination .nav-links {
    display: inline-flex;
    gap: 10px;
    align-items: center;
}

.theater-archive-pagination .nav-links a,
.theater-archive-pagination .nav-links span {
    padding: 8px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    color: #333;
    text-decoration: none;
    transition: all 0.2s ease;
}

.theater-archive-pagination .nav-links a:hover {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.theater-archive-pagination .nav-links .current {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

/* Search Form */
.theater-search-form {
    margin: 30px 0;
}

.theater-search-form form {
    display: flex;
    gap: 10px;
    max-width: 400px;
    margin: 0 auto;
}

.theater-search-form input[type="search"] {
    flex: 1;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
}

.theater-search-form button {
    padding: 10px 20px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.theater-search-form button:hover {
    background: #5a67d8;
}

/* No Results */
.theater-no-results {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.theater-no-results h2 {
    color: #333;
    margin-bottom: 20px;
}

.theater-search-alternative {
    margin-top: 40px;
}

/* Shortcodes */
.theater-single-production,
.theater-single-person {
    margin: 30px 0;
}

.theater-cast-list,
.theater-crew-list,
.theater-functions-list {
    list-style: none;
    padding: 0;
    margin: 15px 0;
}

.theater-cast-list li,
.theater-crew-list li,
.theater-functions-list li {
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.theater-cast-list li:last-child,
.theater-crew-list li:last-child,
.theater-functions-list li:last-child {
    border-bottom: none;
}

.theater-role,
.theater-task {
    font-weight: 600;
    color: #667eea;
    margin-right: 10px;
}

.theater-period {
    color: #999;
    font-size: 0.9em;
    font-style: italic;
}

/* Responsive Design */
@media (max-width: 768px) {
    .theater-archive-wrapper {
        padding: 0 15px;
    }
    
    .theater-archive-title {
        font-size: 2em;
    }
    
    .theater-production-title {
        font-size: 2.2em;
    }
    
    .theater-filter-row {
        flex-direction: column;
        gap: 15px;
    }
    
    .theater-filter-genre,
    .theater-filter-year,
    .theater-filter-sort {
        width: 100%;
        min-width: auto;
    }
    
    .theater-productions-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .theater-production-meta {
        flex-direction: column;
        gap: 10px;
    }
    
    .theater-cast-grid {
        grid-template-columns: 1fr;
    }
    
    .theater-crew-grid {
        grid-template-columns: 1fr;
    }
    
    .theater-navigation {
        flex-direction: column;
        gap: 15px;
    }
    
    .theater-nav-prev,
    .theater-nav-next {
        max-width: 100%;
    }
    
    .theater-nav-next {
        text-align: left;
    }
    
    .theater-persons-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media (max-width: 480px) {
    .theater-archive-title {
        font-size: 1.6em;
    }
    
    .theater-production-title {
        font-size: 1.8em;
    }
    
    .theater-card-content {
        padding: 15px;
    }
}