/**
 * Radio Station Theme - Page Template Styles
 * Styles for all custom page templates, CPTs, and components
 * 
 * @package Radio_Station_Theme
 */

/* ==========================================================================
   Full Width Template
   ========================================================================== */

.main-container--full-width {
    grid-template-columns: 1fr !important;
}

.main-container--full-width .content-area {
    grid-column: 1 / -1;
}

.page-thumbnail--full {
    margin: -30px -30px 30px;
    border-radius: 8px 8px 0 0;
    overflow: hidden;
}

@media (max-width: 600px) {
    .page-thumbnail--full {
        margin: -15px -15px 20px;
    }
}

@media (min-width: 783px) {
    .page-thumbnail--full {
        margin: -40px -40px 40px;
    }
}

.page-thumbnail--full img {
    width: 100%;
    height: auto;
    display: block;
}

/* ==========================================================================
   Sidebar Left Template
   ========================================================================== */

@media (min-width: 1024px) {
    .main-container--sidebar-left {
        grid-template-columns: 300px 1fr;
    }

    .main-container--sidebar-left .sidebar {
        grid-column: 1;
        grid-row: 1;
    }

    .main-container--sidebar-left .content-area {
        grid-column: 2;
        grid-row: 1;
    }
}

/* ==========================================================================
   Schedule Template
   ========================================================================== */

.schedule-page .entry-content {
    margin-bottom: 40px;
}

.schedule-grid {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.schedule-slot {
    background: var(--color-content-bg, #fff);
    border-radius: 8px;
    padding: 25px;
    border-left: 4px solid var(--color-primary, #667eea);
}

.schedule-time {
    font-size: 20px;
    color: var(--color-primary, #667eea);
    margin: 0 0 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.schedule-show {
    display: flex;
    gap: 20px;
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
    align-items: center;
}

.schedule-show:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.schedule-show-thumb {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
}

.schedule-show-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.schedule-show-info {
    flex: 1;
}

.schedule-show-title {
    margin: 0 0 5px;
    font-size: 18px;
}

.schedule-show-title a {
    color: var(--color-heading, #1a1a1a);
    text-decoration: none;
    transition: color 0.3s ease;
}

.schedule-show-title a:hover {
    color: var(--color-primary, #667eea);
}

.schedule-show-genre {
    display: inline-block;
    padding: 2px 10px;
    background: var(--color-primary, #667eea);
    color: #fff;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 5px;
}

.schedule-show-desc {
    margin: 5px 0 0;
    font-size: 14px;
    color: #666;
    line-height: 1.5;
}

@media (max-width: 600px) {
    .schedule-show {
        flex-direction: column;
        align-items: flex-start;
    }

    .schedule-show-thumb {
        width: 100%;
        height: 200px;
    }
}

/* ==========================================================================
   Contact Template
   ========================================================================== */

.contact-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

@media (min-width: 783px) {
    .contact-layout {
        grid-template-columns: 1fr 350px;
    }
}

.contact-content .entry-content {
    font-size: 17px;
}

.contact-info-card {
    background: var(--color-primary, #667eea);
    color: #fff;
    padding: 35px;
    border-radius: 12px;
    align-self: start;
}

.contact-card-title {
    margin: 0 0 25px;
    font-size: 24px;
    color: #fff;
}

.contact-detail {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
    font-size: 15px;
}

.contact-detail svg {
    flex-shrink: 0;
    opacity: 0.9;
}

.contact-detail a {
    color: #fff;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.4);
    transition: border-color 0.3s ease;
}

.contact-detail a:hover {
    border-bottom-color: #fff;
}

.contact-social {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.contact-social .social-links {
    display: flex;
    gap: 12px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.contact-social .social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
}

.contact-social .social-links a svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
    flex-shrink: 0;
}

.contact-social .social-links a:hover {
    background: #fff;
    color: var(--color-primary, #667eea);
    transform: translateY(-3px);
}

/* ==========================================================================
   Single Radio Show
   ========================================================================== */

.show-hero {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 30px;
    max-height: 400px;
}

.show-hero img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
}

.show-hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px 30px 30px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
}

.show-hero-overlay .entry-title {
    color: #fff;
    margin: 0;
    font-size: 36px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.show-details {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding: 20px 0;
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.show-detail-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.show-detail-label {
    font-weight: 600;
    color: var(--color-heading, #1a1a1a);
    font-size: 15px;
}

.show-detail-value {
    font-size: 15px;
    color: var(--color-text, #333);
}

.show-detail-value a {
    color: var(--color-primary, #667eea);
    text-decoration: none;
}

.show-detail-value a:hover {
    text-decoration: underline;
}

.related-shows {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 2px solid #eee;
}

.related-shows h2 {
    font-size: 24px;
    margin-bottom: 25px;
    color: var(--color-heading, #1a1a1a);
}

/* ==========================================================================
   Single DJ/Host
   ========================================================================== */

.dj-profile {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
    align-items: flex-start;
}

.dj-avatar {
    width: 250px;
    flex-shrink: 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.dj-avatar img {
    width: 100%;
    height: auto;
    display: block;
}

.dj-info {
    flex: 1;
}

.dj-bio-short {
    font-size: 18px;
    color: #555;
    line-height: 1.7;
}

.dj-shows {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid #eee;
}

.dj-shows h2 {
    margin-bottom: 25px;
}

@media (max-width: 600px) {
    .dj-profile {
        flex-direction: column;
    }

    .dj-avatar {
        width: 100%;
        max-width: 300px;
    }
}

/* ==========================================================================
   Archive - Shows Grid
   ========================================================================== */

.shows-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-bottom: 30px;
    padding: 20px 0;
}

.filter-label {
    font-weight: 600;
    font-size: 15px;
    color: var(--color-heading, #1a1a1a);
    margin-right: 5px;
}

.filter-tag {
    display: inline-block;
    padding: 6px 16px;
    background: #f0f0f0;
    color: #555;
    text-decoration: none;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.filter-tag:hover,
.filter-tag.active {
    background: var(--color-primary, #667eea);
    color: #fff;
}

.shows-grid .radio-show {
    background: var(--color-content-bg, #fff);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.shows-grid .radio-show:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.shows-grid .show-thumbnail {
    margin: 0;
    border-radius: 0;
}

.shows-grid .show-thumbnail img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.shows-grid .entry-header,
.shows-grid .entry-content {
    padding: 0 20px;
}

.shows-grid .entry-content {
    padding-bottom: 20px;
}

/* ==========================================================================
   Archive - DJs Grid
   ========================================================================== */

.djs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.dj-card {
    background: var(--color-content-bg, #fff);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.dj-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.dj-card-avatar {
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.dj-card-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.dj-card:hover .dj-card-avatar img {
    transform: scale(1.05);
}

.dj-card-info {
    padding: 25px;
}

.dj-card-name {
    margin: 0 0 10px;
    font-size: 22px;
}

.dj-card-name a {
    color: var(--color-heading, #1a1a1a);
    text-decoration: none;
}

.dj-card-name a:hover {
    color: var(--color-primary, #667eea);
}

.dj-card-bio {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
    line-height: 1.5;
}

/* ==========================================================================
   Search Results
   ========================================================================== */

.search-query {
    color: var(--color-primary, #667eea);
    font-style: italic;
}

/* ==========================================================================
   Comments
   ========================================================================== */

.comments-area {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 2px solid #eee;
}

.comments-title {
    font-size: 24px;
    margin-bottom: 30px;
    color: var(--color-heading, #1a1a1a);
}

.comment-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.comment-list li {
    border: none;
    padding: 0;
    margin: 0;
}

.comment-list .comment {
    padding: 20px 0;
    border-bottom: 1px solid #eee;
}

.comment-list .comment:last-child {
    border-bottom: none;
}

.comment-list .comment-body {
    display: flex;
    gap: 15px;
}

.comment-list .comment-author {
    flex-shrink: 0;
}

.comment-list .comment-author img {
    border-radius: 50%;
}

.comment-list .comment-author .fn {
    font-weight: 600;
    font-style: normal;
}

.comment-list .comment-metadata {
    font-size: 13px;
    color: #999;
    margin-bottom: 10px;
}

.comment-list .comment-metadata a {
    color: #999;
    text-decoration: none;
}

.comment-list .reply a {
    font-size: 13px;
    color: var(--color-primary, #667eea);
    text-decoration: none;
    font-weight: 500;
}

.comment-list .children {
    margin-left: 40px;
    padding-left: 20px;
    border-left: 2px solid #eee;
    list-style: none;
}

/* Comment form */
.comment-respond {
    margin-top: 40px;
}

.comment-respond .comment-reply-title {
    font-size: 22px;
    margin-bottom: 20px;
    color: var(--color-heading, #1a1a1a);
}

.comment-respond .comment-form {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}

@media (min-width: 600px) {
    .comment-respond .comment-form {
        grid-template-columns: 1fr 1fr;
    }

    .comment-respond .comment-form-comment,
    .comment-respond .form-submit {
        grid-column: 1 / -1;
    }
}

.comment-respond label {
    display: block;
    font-weight: 500;
    margin-bottom: 5px;
    font-size: 14px;
}

.comment-notes {
    font-size: 14px;
    color: #666;
    grid-column: 1 / -1;
}

.no-comments {
    font-style: italic;
    color: #999;
    margin-top: 20px;
}

/* ==========================================================================
   404 Page
   ========================================================================== */

.error-404-content {
    text-align: center;
    padding: 60px 20px;
}

.error-404-content .page-title {
    font-size: 120px;
    color: var(--color-primary, #667eea);
    line-height: 1;
    margin-bottom: 10px;
    opacity: 0.3;
}

.error-message {
    font-size: 28px;
    margin-bottom: 20px;
    color: var(--color-heading, #1a1a1a);
}

.error-404-body {
    max-width: 600px;
    margin: 0 auto;
}

.error-404-body p {
    font-size: 17px;
    color: #666;
    margin-bottom: 30px;
}

.error-404-search {
    margin-bottom: 25px;
}

.error-404-actions {
    margin-top: 20px;
}

/* ==========================================================================
   No Results
   ========================================================================== */

.no-results {
    text-align: center;
    padding: 60px 20px;
}

.no-results h1,
.no-results h2 {
    color: var(--color-heading, #1a1a1a);
    margin-bottom: 15px;
}

.no-results p {
    color: #666;
    font-size: 17px;
    margin-bottom: 25px;
}

/* ==========================================================================
   Blog List Layout
   ========================================================================== */

.posts-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-bottom: 40px;
}

.posts-list article {
    display: flex;
    gap: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid #eee;
    margin-bottom: 0;
}

.posts-list article:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.posts-list .post-thumbnail {
    width: 200px;
    height: 150px;
    flex-shrink: 0;
    margin-bottom: 0;
}

.posts-list .post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 600px) {
    .posts-list article {
        flex-direction: column;
    }

    .posts-list .post-thumbnail {
        width: 100%;
        height: 200px;
    }
}

/* ==========================================================================
   Show Meta (in archive/content templates)
   ========================================================================== */

.show-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 10px;
    font-size: 14px;
    color: #666;
}

.show-meta span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.show-meta svg {
    opacity: 0.7;
}
