/* Frontend Styles for Naatak Play Manager */

:root {
    /* Use Astra theme colors where available, fallback to defaults */
    --npm-primary: var(--ast-global-color-0, #DD183B);
    --npm-secondary: var(--ast-global-color-5, #FFEDE6);
    --npm-text: var(--ast-global-color-3, #333);
    --npm-text-light: #666;
    --npm-border: #e0e0e0;
    --npm-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.npm-play-page {
    max-width: 100%;
}

.npm-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Play Header */
.npm-play-header {
    background: linear-gradient(135deg, var(--npm-primary) 0%, #a01328 100%);
    color: white;
    padding: 60px 20px;
    text-align: center;
    margin-bottom: 40px;
}

.npm-play-subtitle {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
    opacity: 0.9;
}

.npm-play-title {
    font-size: 48px;
    font-weight: 700;
    margin: 0 0 20px 0;
    line-height: 1.2;
}

.npm-play-credits {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
    font-size: 14px;
}

.npm-credit-item {
    display: inline-block;
}

.npm-credit-item strong {
    font-weight: 600;
}

/* Sections */
.npm-section {
    padding: 60px 0;
    border-bottom: 1px solid var(--npm-border);
}

.npm-section:last-child {
    border-bottom: none;
}

.npm-section-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--npm-primary);
    margin-bottom: 30px;
    text-align: center;
}

/* Ticketing Section */
.npm-ticketing-section {
    background: var(--npm-secondary);
}

.naatak-tickets {
    max-width: 800px;
    margin: 0 auto;
    padding: 30px;
    background: white;
    border-radius: 8px;
    box-shadow: var(--npm-shadow);
}

/* Description Section */
.npm-description-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 40px;
    align-items: start;
}

.npm-play-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: var(--npm-shadow);
}

.npm-play-content {
    padding: 20px 0;
}

.npm-show-dates {
    background: var(--npm-secondary);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    border-left: 4px solid var(--npm-primary);
}

.npm-show-dates h3 {
    font-size: 18px;
    color: var(--npm-primary);
    margin: 0 0 10px 0;
}

.npm-play-description h2 {
    font-size: 24px;
    margin: 0 0 15px 0;
    color: var(--npm-text);
}

.npm-play-description p {
    line-height: 1.7;
    color: var(--npm-text);
    margin-bottom: 15px;
}

/* Slider Section */
.npm-slider-section {
    background: #f8f8f8;
}

.npm-slider-wrapper {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

.npm-slider {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: var(--npm-shadow);
    background: white;
}

.npm-slide {
    display: none;
    animation: fadeIn 0.5s;
}

.npm-slide.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.npm-slide-image img {
    width: 100%;
    height: auto;
    display: block;
}

.npm-slide-info {
    padding: 30px;
    background: white;
}

.npm-slide-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--npm-primary);
    margin: 0 0 10px 0;
}

.npm-slide-caption {
    color: var(--npm-text);
    line-height: 1.6;
    margin: 0;
}

/* Slider Navigation */
.npm-slider-prev,
.npm-slider-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(221, 24, 59, 0.9);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    z-index: 10;
}

.npm-slider-prev {
    left: 20px;
}

.npm-slider-next {
    right: 20px;
}

.npm-slider-prev:hover,
.npm-slider-next:hover {
    background: rgba(160, 19, 40, 1);
    transform: translateY(-50%) scale(1.1);
}

/* Slider Dots */
.npm-slider-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.npm-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid var(--npm-primary);
    background: white;
    cursor: pointer;
    padding: 0;
    transition: all 0.3s;
}

.npm-dot.active,
.npm-dot:hover {
    background: var(--npm-primary);
}

/* Playbill Section */
.npm-playbill-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.npm-playbill-download {
    padding: 30px;
    background: white;
    border-radius: 8px;
    box-shadow: var(--npm-shadow);
}

.npm-button {
    display: inline-block;
    padding: 15px 30px;
    font-size: 18px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s;
}

.npm-button-primary {
    background: var(--npm-primary);
    color: white;
}

.npm-button-primary:hover {
    background: #a01328;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(221, 24, 59, 0.3);
}

.npm-playbill-filename {
    margin-top: 15px;
    color: var(--npm-text-light);
    font-size: 14px;
}

/* Video Section */
.npm-video-section {
    background: #000;
    color: white;
}

.npm-video-section .npm-section-title {
    color: white;
}

.npm-video-content {
    max-width: 900px;
    margin: 0 auto;
}

.npm-video-content iframe,
.npm-video-content video {
    width: 100%;
    max-width: 100%;
    height: auto;
    aspect-ratio: 16/9;
    border-radius: 8px;
}

/* FAQ Section */
.npm-faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.npm-faq-item {
    border: 1px solid var(--npm-border);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    background: white;
    transition: box-shadow 0.3s;
}

.npm-faq-item:hover {
    box-shadow: var(--npm-shadow);
}

.npm-faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    background: white;
    border: none;
    cursor: pointer;
    text-align: left;
    font-size: 16px;
    font-weight: 600;
    color: var(--npm-text);
    transition: background 0.3s;
}

.npm-faq-question:hover {
    background: var(--npm-secondary);
}

.npm-faq-question[aria-expanded="true"] {
    background: var(--npm-secondary);
    color: var(--npm-text) !important;
}

.npm-faq-icon {
    font-size: 24px;
    color: var(--npm-primary);
    font-weight: 700;
    transition: transform 0.3s;
    min-width: 24px;
    text-align: center;
}

.npm-faq-question[aria-expanded="true"] .npm-faq-icon {
    transform: rotate(45deg);
}

.npm-faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.npm-faq-answer.open {
    max-height: 500px;
    transition: max-height 0.5s ease-in;
}

.npm-faq-answer-content {
    padding: 0 25px 20px 25px;
    color: var(--npm-text-light);
    line-height: 1.7;
}

/* Responsive Design */
@media (max-width: 768px) {
    .npm-play-title {
        font-size: 32px;
    }

    .npm-play-credits {
        flex-direction: column;
        gap: 10px;
    }

    .npm-description-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .npm-section {
        padding: 40px 0;
    }

    .npm-section-title {
        font-size: 24px;
    }

    .npm-slider-prev,
    .npm-slider-next {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }

    .npm-slider-prev {
        left: 10px;
    }

    .npm-slider-next {
        right: 10px;
    }

    .npm-slide-info {
        padding: 20px;
    }

    .npm-slide-title {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .npm-play-header {
        padding: 40px 20px;
    }

    .npm-play-title {
        font-size: 24px;
    }

    .npm-ticketing-widget {
        padding: 20px;
    }
}

/* Season Page Styles */
.npm-season-plays-list {
    margin-top: 40px;
}

.npm-season-play-item {
    margin-bottom: 50px !important;
    padding-bottom: 50px !important;
    border-bottom: 2px solid #ccc !important;
}

.npm-season-play-item:last-child {
    border-bottom: none !important;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

.npm-season-play-item .npm-season-play-row {
    display: grid !important;
    grid-template-columns: 250px 1fr !important;
    gap: 30px !important;
    align-items: start !important;
}

.npm-season-play-item .npm-season-play-image {
    position: relative;
    width: 250px !important;
    max-width: 250px !important;
}

.npm-season-play-item .npm-season-play-image img {
    width: 100% !important;
    height: auto !important;
    border-radius: 8px;
    box-shadow: var(--npm-shadow);
    transition: transform 0.3s;
    display: block !important;
}

.npm-season-play-item .npm-season-play-image:hover img {
    transform: scale(1.05);
}

.npm-season-play-item .npm-play-status-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 6px 12px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 15px;
    color: white;
}

.npm-season-play-item .npm-status-current {
    background: var(--npm-primary);
}

.npm-season-play-item .npm-status-future {
    background: #666;
}

.npm-season-play-item .npm-season-play-content {
    width: 100% !important;
    max-width: 100% !important;
}

.npm-season-play-tagline {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--npm-primary);
    margin: 0 0 8px 0;
    font-weight: 600;
}

.npm-season-play-title {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 15px 0;
    line-height: 1.2;
}

.npm-season-play-title a {
    color: var(--npm-text);
    text-decoration: none;
    transition: color 0.3s;
}

.npm-season-play-title a:hover {
    color: var(--npm-primary);
}

.npm-season-play-meta {
    margin: 15px 0;
    font-size: 14px;
    color: var(--npm-text-light);
    line-height: 1.6;
}

.npm-season-play-meta p {
    margin: 3px 0;
}

.npm-season-play-description {
    margin: 20px 0;
    font-size: 15px;
    line-height: 1.7;
    color: var(--npm-text);
}

.npm-season-play-description p {
    margin-bottom: 12px;
}

.npm-season-play-dates,
.npm-season-play-location {
    margin: 12px 0;
    font-size: 14px;
}

.npm-season-play-dates strong,
.npm-season-play-location strong {
    color: var(--npm-primary);
    display: inline;
    margin-right: 5px;
}

.npm-season-play-dates p,
.npm-season-play-location p {
    display: inline;
    margin: 0;
    color: var(--npm-text);
}

.npm-season-play-content .npm-button {
    margin-top: 20px;
}

/* Single Play Page Layout */
.npm-single-play-row {
    display: grid !important;
    grid-template-columns: 250px 1fr !important;
    gap: 30px !important;
    align-items: start !important;
}

.npm-single-play-image {
    width: 250px !important;
    max-width: 250px !important;
}

.npm-single-play-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    box-shadow: var(--npm-shadow);
}

@media (max-width: 768px) {
    .npm-season-play-row {
        flex-direction: column;
        gap: 20px;
    }

    .npm-season-play-image {
        width: 100%;
        max-width: 300px;
    }

    .npm-season-play-title {
        font-size: 24px;
    }

    .npm-season-play-item {
        margin-bottom: 40px;
        padding-bottom: 40px;
    }

    /* Single Play Page Mobile */
    .npm-single-play-row {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }

    .npm-single-play-image {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 auto !important;
    }

    .npm-single-play-image img {
        max-width: 400px !important;
        margin: 0 auto !important;
    }
}
