/* Enhanced front-end styling for Listen Again */

/* Base styling */
:root {
    --primary-color: #dc3545;
    --secondary-color: #6c757d;
    --light-color: #f8f9fa;
    --dark-color: #333;
    --border-radius: 12px;
    --box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    --transition: all 0.3s ease;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: #f8f9fa;
    color: #333;
}

.container {
    max-width: 1200px;
    padding-bottom: 40px;
}

/* Enhanced presenter images */
.presenter-image {
    width: 180px !important;
    height: 180px !important;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
    border: 5px solid white;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 15px;
}

.presenter-image:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(220, 53, 69, 0.3);
}

/* Show cards styling */
.show-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.show-item {
    background-color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.show-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(220, 53, 69, 0.2);
}

.show-item a {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.show-item-header {
    background-color: var(--primary-color);
    color: white;
    padding: 12px 15px;
    font-weight: 600;
    font-size: 1.1rem;
}

.show-item-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex-grow: 1;
}

.show-name {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 15px;
    line-height: 1.3;
}

.show-presenter {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: auto;
}

.presenter-info {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.presenter-name {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--primary-color);
    margin-top: 10px;
}

.show-presenter-image {
    width: 120px !important;
    height: 120px !important;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-color);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    transition: transform 0.3s ease;
    margin-bottom: 15px;
}

.show-presenter-image:hover {
    transform: scale(1.1);
}

/* Day tabs styling */
.day-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
    position: sticky;
    top: 0;
    z-index: 10;
    background: #f5f5f5;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

/* Date tabs styling */
.date-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 25px 0;
    justify-content: center;
    background: white;
    padding: 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.date-tab {
    padding: 12px 18px;
    background-color: var(--primary-color);
    color: white;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(220, 53, 69, 0.3);
    text-align: center;
    min-width: 140px;
}

.date-tab:hover {
    background-color: #c82333;
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(220, 53, 69, 0.4);
    color: white;
    text-decoration: none;
}

.day-tab {
    padding: 10px 18px;
    background-color: #f0f0f0;
    border-radius: 20px;
    color: var(--secondary-color);
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: var(--transition);
}

.day-tab:hover {
    background-color: #e0e0e0;
}

.day-tab.active {
    background-color: var(--primary-color);
    color: white;
}

/* Show header styling */
.show-header {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 40px;
    background-color: white;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.show-header h4 {
    color: var(--primary-color);
    font-size: 1.8rem;
    font-weight: 700;
    margin-top: 15px;
}

/* Recording styling */
.recording {
    background: white;
    border-radius: var(--border-radius);
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: var(--box-shadow);
}

/* Player control buttons */
.rewind, .fast-forward {
    background-color: #f0f0f0;
    color: #333;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.2s ease;
}

.rewind:hover, .fast-forward:hover {
    background-color: #e0e0e0;
    color: #333;
}

.recording-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.recording-image {
    width: 120px !important;
    height: 120px !important;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-color);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    margin-right: 20px;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .container {
        max-width: 95%;
        padding: 0 10px 30px;
    }
    
    .show-list {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 20px;
    }
    
    .date-tabs {
        padding: 15px;
    }
    
    .date-tab {
        min-width: 130px;
        padding: 10px 15px;
    }
}

@media (max-width: 768px) {
    .show-list {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 15px;
    }
    
    .presenter-image {
        width: 150px !important;
        height: 150px !important;
    }
    
    .show-presenter-image {
        width: 100px !important;
        height: 100px !important;
    }
    
    .recording-image {
        width: 100px !important;
        height: 100px !important;
    }
    
    .recording {
        padding: 15px;
    }
    
    .recording-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .recording-image {
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .day-tabs {
        padding: 10px 0;
        justify-content: center;
    }
    
    .day-tab {
        padding: 8px 12px;
        font-size: 0.9rem;
    }
    
    .date-tab {
        min-width: 120px;
        padding: 8px 12px;
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .container {
        max-width: 100%;
        padding: 0 10px 20px;
    }
    
    h1.text-center {
        font-size: 1.8rem;
        margin: 15px 0;
    }
    
    .show-list {
        grid-template-columns: 1fr;
    }
    
    .presenter-image {
        width: 130px !important;
        height: 130px !important;
    }
    
    .recording-image {
        width: 100px !important;
        height: 100px !important;
    }
    
    .show-header {
        padding: 20px 15px;
    }
    
    .show-header h4 {
        font-size: 1.5rem;
    }
    
    .date-tabs {
        flex-direction: column;
        gap: 10px;
    }
    
    .date-tab {
        width: 100%;
    }
    
    .custom-controls {
        flex-direction: column;
        width: 100%;
    }
    
    .rewind, .fast-forward {
        width: 100%;
        margin-bottom: 10px;
    }
    
    .share-controls {
        width: 100%;
        justify-content: space-between;
    }
}

/* Small phone screens */
@media (max-width: 375px) {
    .day-tabs {
        gap: 5px;
    }
    
    .day-tab {
        padding: 6px 8px;
        font-size: 0.8rem;
    }
    
    .presenter-image {
        width: 110px !important;
        height: 110px !important;
    }
}
