/***************************************************
*                                                  *
*          WPD Swan Lake Modern CSS                *
*          Unified with Homepage Design            *
*                                                  *
***************************************************/

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&family=Prata:wght@400&display=swap');

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    letter-spacing: 0.5px;
    background-color: #f3f3f3;
}

/* Header Typography Hierarchy */
h1, h2, h3, h4, h5, h6 {
    font-weight: 400;
    line-height: 1.2;
}

h1 {
    font-family: 'Prata', serif;
    font-weight: 400;
    font-size: 3rem;
}

h2 {
    font-family: 'Prata', serif;
    font-weight: 400;
    font-size: 2.5rem;
}

h3 {
    font-family: 'Prata', serif;
    font-weight: 400;
    font-size: 2rem;
}

h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
}

/* ==========================================================================
   Root Variables
   ========================================================================== */
:root {
  --primary-color: #8f4c73;
  --primary-hover: #631641;
  --dark-purple: #631641;
  --medium-purple: #7a3960;
  --green: #2F855A;
  --text-dark: #333;
  --text-light: #666;
  --bg-light: #f3f3f3;
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
}

/* Screen reader only utility class */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/***************************************************
*                                                  *
*              Swan Lake Page Styles               *
*                                                  *
***************************************************/

/* Main page container */
.wpd-swan-lake-page {
    background-color: #ffffff;
    padding: 10rem 1.5rem 4rem;
    position: relative;
}

.wpd-swan-lake-page__container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

/* Page Header */
.wpd-swan-lake-page__header {
    text-align: center;
    margin-bottom: 4rem;
}

.wpd-swan-lake-page__title {
    font-family: 'Prata', serif;
    font-size: 2.2rem;
    font-weight: 400;
    color: var(--text-dark);
    margin-bottom: var(--spacing-md);
    position: relative;
    padding-bottom: var(--spacing-sm);
    letter-spacing: -0.5px;
}

.wpd-swan-lake-page__title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 2px;
    background-color: var(--primary-color);
}

.wpd-swan-lake-page__subtitle {
    font-family: 'Poppins', sans-serif;
    font-size: 1.1rem;
    font-weight: 300;
    color: var(--text-light);
}

/* Media Section */
.wpd-swan-lake-page__media {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    margin-bottom: 4rem;
}

/* Individual Media Items */
.wpd-swan-lake-media {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.wpd-swan-lake-media:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

/* Image Media */
.wpd-swan-lake-media__image {
    width: 100%;
    height: 400px;
    overflow: hidden;
    position: relative;
}

.wpd-swan-lake-media__bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: transform 0.3s ease;
}

.wpd-swan-lake-media:hover .wpd-swan-lake-media__bg {
    transform: scale(1.05);
}

/* Video Media */
.wpd-swan-lake-media__video-container {
    background-color: #000;
    position: relative;
    width: 100%;
    height: 400px; /* Match the image height */
}

.wpd-swan-lake-media__video-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.wpd-swan-lake-media__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    vertical-align: top;
}

/* Video Controls */
.wpd-swan-lake-media__controls {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.3);
    opacity: 1;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.wpd-swan-lake-media__play-button {
    background: none;
    border: none;
    cursor: pointer;
    width: 80px;
    height: 80px;
    padding: 20px;
    border-radius: 50%;
    background-color: rgba(143, 76, 115, 0.9);
    transition: transform 0.3s ease, background-color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
}

.wpd-swan-lake-media__play-button:hover {
    transform: scale(1.1);
    background-color: var(--primary-color);
}

.wpd-swan-lake-media__play-button:focus {
    outline: 3px solid var(--primary-color);
    outline-offset: 4px;
}

.wpd-swan-lake-media__play-icon,
.wpd-swan-lake-media__pause-icon {
    width: 100%;
    height: 100%;
    fill: #ffffff;
}

/* Content Section */
.wpd-swan-lake-page__content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.wpd-swan-lake-page__description {
    margin-bottom: var(--spacing-xl);
}

.wpd-swan-lake-page__description p {
    font-family: 'Poppins', sans-serif;
    font-size: 1.1rem;
    font-weight: 300;
    line-height: 1.7;
    color: var(--text-light);
    margin-bottom: var(--spacing-lg);
}

.wpd-swan-lake-page__description p:last-child {
    margin-bottom: 0;
}

/* Call to Action */
.wpd-swan-lake-page__cta {
    text-align: center;
}

.wpd-swan-lake-page__button {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    background-color: var(--primary-color);
    color: #ffffff;
    text-decoration: none;
    border-radius: 25px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    font-weight: 300;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 4px 12px rgba(143, 76, 115, 0.2);
}

.wpd-swan-lake-page__button:hover {
    background-color: var(--primary-hover);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(143, 76, 115, 0.3);
    text-decoration: none;
}

/***************************************************
*                                                  *
*              Responsive Design                   *
*                                                  *
***************************************************/

/* Tablet Large Responsive Styles (1024px and below) */
@media (max-width: 1024px) {
    .wpd-swan-lake-page {
        padding: 11.5rem 1.5rem 6rem;
    }

    .wpd-swan-lake-page__title {
        font-size: 2rem;
    }

    .wpd-swan-lake-page__media {
        gap: calc(var(--spacing-xl) * 0.85);
        margin-bottom: var(--spacing-xl);
    }

    .wpd-swan-lake-media__image {
        height: 350px;
    }

    .wpd-swan-lake-media__play-button {
        width: 70px;
        height: 70px;
        padding: 18px;
    }
}

/* Tablet Responsive Styles (768px and below) */
@media (max-width: 768px) {
    .wpd-swan-lake-page {
        padding: 10.5rem 1.5rem 5rem;
    }

    .wpd-swan-lake-page__title {
        font-size: 2rem;
        margin-bottom: var(--spacing-sm);
    }

    .wpd-swan-lake-page__subtitle {
        font-size: 1rem;
    }

    .wpd-swan-lake-page__header {
        margin-bottom: var(--spacing-xl);
    }

    .wpd-swan-lake-page__media {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
        margin-bottom: var(--spacing-xl);
    }

    .wpd-swan-lake-media__image {
        height: 300px;
    }

    .wpd-swan-lake-media__play-button {
        width: 60px;
        height: 60px;
        padding: 15px;
    }

    .wpd-swan-lake-page__description p {
        font-size: 1rem;
    }

    .wpd-swan-lake-page__button {
        padding: 0.7rem 1.6rem;
        font-size: 0.9rem;
    }
}

/* Mobile Responsive Styles (480px and below) */
@media (max-width: 480px) {
    .wpd-swan-lake-page {
        padding: 9rem 1rem 4rem;
    }

    .wpd-swan-lake-page__title {
        font-size: 1.75rem;
        padding-bottom: var(--spacing-xs);
    }

    .wpd-swan-lake-page__title::after {
        width: 60px;
        height: 2px;
    }

    .wpd-swan-lake-page__subtitle {
        font-size: 0.95rem;
    }

    .wpd-swan-lake-page__header {
        margin-bottom: var(--spacing-lg);
    }

    .wpd-swan-lake-page__media {
        gap: var(--spacing-md);
        margin-bottom: var(--spacing-lg);
    }

    .wpd-swan-lake-media__image {
        height: 250px;
    }

    .wpd-swan-lake-media__play-button {
        width: 50px;
        height: 50px;
        padding: 12px;
    }

    .wpd-swan-lake-page__description {
        margin-bottom: var(--spacing-lg);
    }

    .wpd-swan-lake-page__description p {
        font-size: 0.9rem;
        line-height: 1.6;
        margin-bottom: var(--spacing-md);
    }

    .wpd-swan-lake-page__button {
        padding: 0.6rem 1.4rem;
        font-size: 0.85rem;
        min-width: 180px;
    }
}

/***************************************************
*                                                  *
*              Accessibility & Focus Styles        *
*                                                  *
***************************************************/

/* Focus styles for accessibility */
.wpd-swan-lake-page__button:focus {
    outline: 3px solid var(--primary-color);
    outline-offset: 2px;
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    .wpd-swan-lake-media,
    .wpd-swan-lake-media__bg,
    .wpd-swan-lake-media__play-button,
    .wpd-swan-lake-page__button {
        transition: none;
    }
    
    .wpd-swan-lake-media:hover,
    .wpd-swan-lake-media:hover .wpd-swan-lake-media__bg {
        transform: none;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .wpd-swan-lake-page__button {
        border: 3px solid #ffffff;
    }
    
    .wpd-swan-lake-page__title::after {
        height: 4px;
    }
    
    .wpd-swan-lake-media {
        border: 2px solid var(--text-dark);
    }
    
    .wpd-swan-lake-media__play-button {
        border: 3px solid #ffffff;
    }
}