/**
 * Custom Post Types Styles
 *
 * Styles for single-band.php, single-veranstaltung.php, single-location.php
 * Design: White backgrounds, clean layout, matching homepage style
 *
 * @package Blocksy Child
 * @since 1.0.0
 */

/* ==========================================================================
   Common Styles for All Custom Post Types
   ========================================================================== */

.band-single,
.event-single,
.location-single {
    background: #fff;
    border-radius: 8px;
    padding: 32px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
}

/* ==========================================================================
   Headers (Band/Event/Location)
   ========================================================================== */

.band-header,
.event-header,
.location-header {
    margin-bottom: 32px;
    text-align: center;
}

.band-featured-image,
.event-featured-image,
.location-featured-image {
    margin-bottom: 24px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.band-featured-image img,
.event-featured-image img,
.location-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

.band-title,
.event-title,
.location-title {
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 12px;
    color: #1a1a1a;
}

/* ==========================================================================
   Band Specific Styles
   ========================================================================== */

/* Remove excessive top margin on the post title block */
.single-band .wp-block-post-title {
    margin-top: 0 !important;
}

/* Genre Tag */
.band-genre-tag {
    display: inline-block;
    padding: 6px 16px;
    background: #e5e5e5;
    color: #333;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: capitalize;
    margin-top: 8px;
}

/* Info Section (Website & Social) */
.band-info-section {
    background: #f9f9f9;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 32px;
}

.band-website,
.band-social-media {
    margin-bottom: 16px;
}

.band-website:last-child,
.band-social-media:last-child {
    margin-bottom: 0;
}

.band-website strong,
.band-social-media strong {
    display: block;
    margin-bottom: 8px;
    color: #666;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.band-website a {
    color: #0066cc;
    text-decoration: none;
    font-weight: 500;
}

.band-website a:hover {
    text-decoration: underline;
}

/* Social Links */
.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    color: #333;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s;
}

.social-link:hover {
    background: #f0f0f0;
    border-color: #ccc;
    transform: translateY(-1px);
}

/* Description */
.band-description,
.event-description,
.location-description {
    margin-bottom: 32px;
    line-height: 1.8;
    color: #333;
}

/* Discography Section */
.band-discography-section {
    margin-bottom: 40px;
}

.band-discography-section h2 {
    font-size: 1.75rem;
    margin-bottom: 20px;
    color: #1a1a1a;
}

.discography-table-wrapper {
    overflow-x: auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.discography-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
}

.discography-table thead {
    background: #f5f5f5;
}

.discography-table th {
    padding: 12px 16px;
    text-align: left;
    font-size: 0.875rem;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #e0e0e0;
}

.discography-table td {
    padding: 12px 16px;
    border-bottom: 1px solid #f0f0f0;
    color: #333;
}

.discography-table tbody tr:hover {
    background: #fafafa;
}

.discography-table tbody tr:last-child td {
    border-bottom: none;
}

.discography-table td.year {
    font-weight: 600;
    color: #666;
    width: 80px;
}

.discography-table td.title {
    font-weight: 600;
}

.discography-table td.type {
    color: #666;
    font-size: 0.875rem;
}

.discography-table td.label {
    color: #999;
    font-size: 0.875rem;
}

/* ==========================================================================
   Event Specific Styles
   ========================================================================== */

/* Event Date (Prominent) */
.event-date-wrapper {
    margin-top: 16px;
}

.event-date {
    display: inline-block;
    padding: 12px 24px;
    background: #333;
    color: #fff;
    border-radius: 8px;
    font-size: 1.25rem;
    font-weight: 700;
}

.event-date .date-separator {
    margin: 0 8px;
    opacity: 0.7;
}

/* ==========================================================================
   Cards (Events, Bands, Locations)
   ========================================================================== */

.event-cards,
.band-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 24px;
}

.event-card,
.band-card,
.location-card {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.2s;
}

.event-card:hover,
.band-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.event-card-image,
.band-card-image {
    width: 100%;
    height: 180px;
    overflow: hidden;
}

.event-card-image img,
.band-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.event-card:hover .event-card-image img,
.band-card:hover .band-card-image img {
    transform: scale(1.05);
}

.event-card-content,
.band-card-content {
    padding: 16px;
}

.event-card-title,
.band-card-title {
    font-size: 1.125rem;
    margin-bottom: 8px;
    line-height: 1.4;
}

.event-card-title a,
.band-card-title a {
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.2s;
}

.event-card-title a:hover,
.band-card-title a:hover {
    color: #0066cc;
}

.event-card-date {
    display: block;
    font-size: 0.875rem;
    color: #666;
    margin-top: 4px;
}

.event-card-bands {
    font-size: 0.875rem;
    color: #999;
    margin-top: 4px;
    margin-bottom: 0;
}

.band-card-genre {
    display: inline-block;
    padding: 4px 10px;
    background: #f0f0f0;
    color: #666;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: capitalize;
}

/* ==========================================================================
   Location Card (in Event template)
   ========================================================================== */

.location-card {
    display: flex;
    gap: 20px;
    padding: 20px;
}

.location-card-image {
    width: 200px;
    height: 150px;
    flex-shrink: 0;
    border-radius: 6px;
    overflow: hidden;
}

.location-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.location-card-content {
    flex: 1;
}

.location-name {
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.location-name a {
    color: #1a1a1a;
    text-decoration: none;
}

.location-name a:hover {
    color: #0066cc;
}

.location-address,
.location-website {
    margin-bottom: 8px;
    color: #666;
}

.location-address .address-icon {
    margin-right: 6px;
}

.location-website a {
    color: #0066cc;
    text-decoration: none;
}

.location-website a:hover {
    text-decoration: underline;
}

/* ==========================================================================
   Location Specific Styles
   ========================================================================== */

.location-info-section {
    background: #f9f9f9;
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 32px;
}

.location-address-wrapper,
.location-website-wrapper {
    margin-bottom: 20px;
}

.location-address-wrapper:last-child,
.location-website-wrapper:last-child {
    margin-bottom: 0;
}

.location-info-section h2 {
    font-size: 1.25rem;
    margin-bottom: 12px;
    color: #1a1a1a;
}

.location-info-section h3 {
    font-size: 1.125rem;
    margin-bottom: 8px;
    color: #333;
}

.location-coordinates {
    color: #999;
    font-size: 0.875rem;
}

/* ==========================================================================
   Sections
   ========================================================================== */

.band-events-section,
.event-lineup-section,
.event-location-section,
.location-events-section {
    margin-bottom: 40px;
}

.band-events-section h2,
.event-lineup-section h2,
.event-location-section h2,
.location-events-section h2 {
    font-size: 1.75rem;
    margin-bottom: 20px;
    color: #1a1a1a;
}

.event-organizer-section {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid #e5e5e5;
}

.event-organizer-section h3 {
    font-size: 1.125rem;
    margin-bottom: 8px;
    color: #666;
}

.event-organizer-section a {
    color: #0066cc;
    text-decoration: none;
    font-weight: 500;
}

.event-organizer-section a:hover {
    text-decoration: underline;
}

/* ==========================================================================
   Layout Wrappers (No Sidebar - Content Only)
   ========================================================================== */

.band-layout-wrapper,
.event-layout-wrapper,
.location-layout-wrapper {
    width: 100%;
    max-width: var(--theme-block-max-width, 1140px);
    margin: 0 auto;
}

.band-main-content,
.event-main-content,
.location-main-content {
    min-width: 0; /* Prevent overflow */
}

/* ==========================================================================
   Responsive: Tablet
   ========================================================================== */

@media (max-width: 1023px) {
    .band-layout-wrapper,
    .event-layout-wrapper,
    .location-layout-wrapper {
        padding: 0 20px;
    }

    .band-single,
    .event-single,
    .location-single {
        padding: 24px;
    }

    .band-title,
    .event-title,
    .location-title {
        font-size: 2rem;
    }

    .event-cards,
    .band-cards {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 16px;
    }

    .location-card {
        flex-direction: column;
    }

    .location-card-image {
        width: 100%;
        height: 200px;
    }
}

/* ==========================================================================
   Responsive: Mobile
   ========================================================================== */

@media (max-width: 767px) {
    .band-single,
    .event-single,
    .location-single {
        padding: 20px;
        border-radius: 6px;
    }

    .band-title,
    .event-title,
    .location-title {
        font-size: 1.75rem;
    }

    .band-discography-section h2,
    .band-events-section h2,
    .event-lineup-section h2,
    .event-location-section h2,
    .location-events-section h2 {
        font-size: 1.5rem;
    }

    .event-cards,
    .band-cards {
        grid-template-columns: 1fr;
    }

    .social-links {
        flex-direction: column;
    }

    .social-link {
        width: 100%;
        justify-content: center;
    }

    .discography-table {
        font-size: 0.875rem;
    }

    .discography-table th,
    .discography-table td {
        padding: 8px 10px;
    }

    .discography-table td.label {
        display: none; /* Hide label column on mobile */
    }

    .discography-table th:last-child {
        display: none;
    }

    .event-date {
        font-size: 1rem;
        padding: 10px 18px;
    }
}
