/*
 * Voices Grid Styles - Tell The People Voice Over Agency
 * Uses brand colors including key yellow #f5ea54
 * Includes Featured Voices section for homepage
 */

/* Featured Voices Section */
#featured-voices-section {
    padding: 30px 0 80px;
    background: transparent;
}

.featured-voices-header {
    text-align: center;
    margin-bottom: 50px;
}

.featured-voices-header h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--key-yellow);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 2px;
}

.featured-voices-intro {
    font-size: 1.2rem;
    color: #ffffff;
    margin: 50px 0;
    line-height: 1.6;
}

.featured-voices-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 60px 60px;
    margin-top: 40px;
    max-width: 1090px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
}

.featured-voices-grid .voice-card {
    position: relative;
    background: var(--key-yellow) !important;
    border-radius: 0;
    overflow: hidden;
    aspect-ratio: 2.2/2;
    transition: transform 0.3s ease;
    box-shadow: none !important;
    border: none !important;
}

/* Column-based scroll parallax - All columns have different movement speeds */
.featured-voices-grid .voice-card:nth-child(3n+1) {
    /* Left column - subtle parallax (starts 30px lower, slowest movement) */
    will-change: transform;
    transform: translateY(30px);
    margin-bottom: 20px;
}

.featured-voices-grid .voice-card:nth-child(3n+2) {
    /* Center column - most dramatic parallax (starts 100px lower, most movement) */
    will-change: transform;
    transform: translateY(100px);
    margin-bottom: -20px;
}

.featured-voices-grid .voice-card:nth-child(3n+3) {
    /* Right column - medium parallax (starts 60px lower, medium movement) */
    will-change: transform;
    transform: translateY(60px);
    margin-bottom: 10px;
}

.featured-voices-grid .voice-card:hover {
    transform: scale(1.02);
}

.voice-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
    position: relative;
}

.featured-voices-grid .voice-card-image {
    position: absolute;
    top: 20px;
    left: 20px;
    right: 50px;
    bottom: 20px;
    overflow: hidden;
    background: #000;
}

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

.featured-voices-grid .voice-card:hover .voice-card-image img {
    transform: scale(1.05);
}

.featured-voices-grid .voice-card-title {
    position: absolute;
    right: 10px;
    bottom: 20px;
    transform: rotate(0deg);
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    color: #000;
    text-transform: uppercase;
    letter-spacing: 1px;
    writing-mode: vertical-lr;
    text-orientation: mixed;
    line-height: 1;
    width: 25px;
    text-align: end;
    white-space: nowrap;
    overflow: visible;
    padding-bottom: 25px;
}

.featured-voices-grid .voice-card-title::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 3px;
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 8px solid #ffffff;
}

.no-voices-message {
    text-align: center;
    font-size: 1.1rem;
    color: #666;
    font-style: italic;
    padding: 40px 0;
}

/* Responsive Design for Featured Voices */
@media screen and (max-width: 768px) {
    #featured-voices-section {
        padding: 60px 20px;
    }

    .featured-voices-header h1 {
        font-size: 2rem;
        margin-bottom: 15px;
    }

    .featured-voices-intro {
        font-size: 1.1rem;
    }

    .featured-voices-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 0 10px;
    }
    
    /* Disable animations on mobile for better performance */
    .featured-voices-grid .voice-card {
        animation: none !important;
        transform: none !important;
    }

    .featured-voices-grid .voice-card-image {
        top: 15px;
        left: 15px;
        right: 70px;
        bottom: 15px;
    }

    .featured-voices-grid .voice-card-title {
        font-size: 0.9rem;
        right: 8px;
        width: 50px;
    }
    
    .featured-voices-grid .voice-card-title::after {
        bottom: -6px;
        border-left: 5px solid transparent;
        border-right: 5px solid transparent;
        border-top: 7px solid #ffffff;
    }
}

.voices-section {
    padding: 80px 0;
}

.voices-section .section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: #2D3748;
}

.voices-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.voice-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
}

.voice-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 30px rgba(245, 234, 84, 0.2);
    border-top: 3px solid #f5ea54;
}

.voice-image {
    position: relative;
    overflow: hidden;
    height: 250px;
}

.voice-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.voice-card:hover .voice-image img {
    transform: scale(1.05);
}

.voice-content {
    padding: 25px;
}

/* Voice card title for grid view */
.voice-card .voice-title {
    margin: 0 0 15px 0;
    font-size: 1.4rem;
    font-weight: 600;
}

/* Single voice template title */
.single-voice .voice-title {
    color: var(--key-yellow);
    font-size: 4.5rem;
    margin: 0 0 20px 0;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    line-height: 1em;
    text-align: center;
}

.voice-card .voice-title a {
    color: #2D3748;
    text-decoration: none;
    transition: color 0.3s ease;
}

.voice-card .voice-title a:hover {
    color: #f5ea54;
}

.voice-excerpt {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.voice-link {
    display: inline-block;
    padding: 12px 24px;
    background: #f5ea54;
    color: #2D3748;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 2px solid #f5ea54;
}

.voice-link:hover {
    background: transparent;
    color: #f5ea54;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(245, 234, 84, 0.3);
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .voices-section {
        padding: 60px 0;
    }

    .voices-section .section-title {
        font-size: 2rem;
        margin-bottom: 30px;
    }

    .voices-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .voice-content {
        padding: 20px;
    }

    .voice-card .voice-title {
        font-size: 1.2rem;
    }
}

/* ========================================
   SINGLE VOICE TEMPLATE STYLES
   ======================================== */

/* Fixed Header on Voice Template */
.single-voice .site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0) 100%);
    z-index: 1000;
}

/* Hide sticky header on voice template since regular header is already fixed */
.single-voice .sticky-header {
    display: none !important;
}

.single-voice .site-content {
    padding-top: 80px; /* Account for fixed header height */
}

/* Voice Layout */
.single-voice-layout {
    display: flex;
    min-height: 100vh;
    position: relative;
}

.voice-fixed-column {
    position: fixed;
    left: 0;
    top: 0;
    width: 50%;
    height: 100vh;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
}

.voice-fixed-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.4) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.voice-fixed-content {
    text-align: center;
    padding: 40px;
    max-width: 500px;
    width: 100%;
}

.voice-category-pill {
    display: inline-block;
    background: var(--key-yellow);
    color: #000;
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 30px;
}

/* Voice Audio Tracks in Left Column */
.voice-audio-tracks {
    width: 100%;
    margin: 0;
    padding: 0;
}

.voice-track-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 10px 0;
    margin: 0 0 2px 0;
    transition: all 0.3s ease;
    cursor: pointer;
    font-family: var(--navigation-font);
    width: 100%;
    box-sizing: border-box;
}

.voice-track-item:hover {
    background: var(--off-black) !important;
}

.voice-track-item.playing {
    background: var(--key-yellow) !important;
}

.voice-track-item.playing * {
    color: #000 !important;
}

.track-info {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 15px;
    padding-left: 15px;
}

.track-number {
    color: #ffffff;
    font-weight: 600;
    font-size: 1.5rem;
    min-width: 35px;
    font-family: var(--navigation-font);
}

.track-title {
    color: #ffffff;
    font-weight: 600;
    font-size: 1.3rem;
    width: 200px;
    min-width: 200px;
    max-width: 200px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: var(--navigation-font);
    white-space: nowrap;
    overflow: hidden;
    text-align: left;
    position: relative;
}

.track-title-text {
    display: inline-block;
    transition: transform 0.3s ease;
}

.voice-track-item.playing .track-title-text.needs-animation {
    animation: marquee 8s linear infinite;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }
    25% {
        transform: translateX(0);
    }
    75% {
        transform: translateX(calc(-100% + 200px));
    }
    100% {
        transform: translateX(calc(-100% + 200px));
    }
}

.track-duration {
    color: #ffffff;
    font-size: 1.3rem;
    font-weight: 600;
    min-width: 75px;
    text-align: right;
    font-family: var(--navigation-font);
}

.track-play-btn {
    background: transparent;
    border: none;
    color: #ffffff;
    cursor: pointer;
    padding: 0 15px 0 0;
    margin-left: 15px;
    transition: none;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 30px;
    height: 30px;
}

.track-play-btn .play-icon,
.track-play-btn .pause-icon {
    font-size: 1.8rem;
    line-height: 1;
}

/* Voice Supporting Video Section */
.voice-supporting-video-section {
    margin-bottom: 40px;
}

.voice-video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    background: #000;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.voice-video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 8px;
}

/* Scrollable Right Column */
.voice-scrollable-column {
    margin-left: 50%;
    width: 50%;
    min-height: 100vh;
    background: var(--site-background);
    z-index: 2;
    position: relative;
}

.voice-content-wrapper {
    padding: 130px 60px 100px;
    max-width: 800px;
}

/* Voice Main Content */
.single-voice-main-content {
    color: #ffffff;
    flex: 1;
}

.voice-bio-section .entry-content {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 40px;
}

.single-voice .entry-content p {
    color: var(--key-yellow);
}

/* Voice Social Media Section */
.voice-social-media-section {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(245, 234, 84, 0.3);
}

.voice-social-media-section .social-media-icons {
    display: flex;
    gap: 15px;
    justify-content: flex-start;
}

/* Responsive Design for Voice Template */
@media screen and (max-width: 1024px) {
    .voice-fixed-column {
        width: 50%;
    }
    
    .voice-scrollable-column {
        margin-left: 50%;
        width: 50%;
    }
    
    .voice-content-wrapper {
        padding: 40px;
    }
}

@media screen and (max-width: 768px) {
    .single-voice-layout {
        flex-direction: column;
    }
    
    .voice-fixed-column {
        position: relative;
        width: 100%;
        height: 60vh;
        min-height: 400px;
    }
    
    .voice-scrollable-column {
        margin-left: 0;
        width: 100%;
    }
    
    .voice-content-wrapper {
        padding: 30px 20px;
    }
    
    .voice-title {
        font-size: 2.5rem;
    }
    
    .voice-fixed-content {
        padding: 30px 20px;
    }
}

@media screen and (max-width: 480px) {
    .voice-title {
        font-size: 2rem;
    }
    
    .voice-fixed-column {
        height: 50vh;
        min-height: 300px;
    }
    
    .voice-content-wrapper {
        padding: 20px 15px;
    }
    
    .single-voice-sidebar {
        padding: 20px;
    }
} 