/**
 * Custom Components CSS
 * Replace inline styles dengan reusable CSS classes
 * 
 * @author Cascade AI
 * @date April 2026
 */

/* ===================================
   Page Layout
   =================================== */

.page-title {
    font-size: 28px;
    margin-bottom: 20px;
    font-weight: bold;
    color: #ffffff;
}

.back-button {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s;
}

.back-button:hover {
    color: #e74c3c;
}

.page-container {
    margin-top: 40px;
    margin-bottom: 40px;
    padding-bottom: 40px;
}

/* ===================================
   Video Components
   =================================== */

.thumbVideo {
    display: inline-block;
    margin-bottom: 10px;
}

.thumbVideoHover {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.thumbVideo:hover .thumbVideoHover {
    opacity: 1;
}

.titleClass {
    font-size: 14px;
    font-family: 'haas-bold', sans-serif;
    color: #ffffff;
    margin-bottom: 5px;
    line-height: 1.4;
}

.speakerClass {
    font-size: 12px;
    font-family: 'haas-reg', sans-serif;
    color: #cccccc;
}

.tanggalSpeakerClass {
    font-size: 11px;
    font-family: 'haas-reg', sans-serif;
    color: #999999;
}

.titleVideo {
    padding: 15px;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 5px;
    margin-top: 10px;
}

/* ===================================
   Speaker Components
   =================================== */

.thumbVideoSpeakers {
    display: inline-block;
    margin-right: 15px;
    margin-bottom: 20px;
    text-align: center;
}

.titleClassSpeakers {
    font-size: 14px;
    font-family: 'haas-med', sans-serif;
    color: #ffffff;
    text-align: center;
}

/* ===================================
   Podcast Components
   =================================== */

.podcast-card {
    position: relative;
    margin-bottom: 15px;
}

.podcast-card img {
    border-radius: 8px;
    transition: transform 0.3s ease;
}

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

/* ===================================
   Modal Styles
   =================================== */

.modal-header-dark {
    background-color: #1b1b1b;
    color: #ffffff;
}

.modal-body-dark {
    background-color: #2d2d2d;
    color: #ffffff;
}

.language-button {
    width: 100%;
    margin-bottom: 10px;
    font-family: 'haas-reg', sans-serif;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ===================================
   Filter & Navigation
   =================================== */

.year-filter-container {
    overflow-x: scroll;
    margin-bottom: 20px;
    width: 100%;
    position: relative;
}

.year-filter-wrapper {
    width: 440px;
    white-space: nowrap;
}

.year-filter-button {
    display: inline-block;
    margin-right: 10px;
}

/* ===================================
   Alert Components
   =================================== */

.alert-live {
    background-color: #e74c3c;
    color: #ffffff;
    padding: 10px 15px;
    border-radius: 5px;
    font-family: 'haas-bold', sans-serif;
    font-size: 12px;
    letter-spacing: 1px;
}

.alert-premiere {
    background-color: #f39c12;
    color: #ffffff;
    padding: 10px 15px;
    border-radius: 5px;
    font-family: 'haas-bold', sans-serif;
    font-size: 12px;
    letter-spacing: 1px;
}

/* ===================================
   Grid Layouts
   =================================== */

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.speaker-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

/* ===================================
   Utility Classes
   =================================== */

.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.text-left {
    text-align: left;
}

.mt-10 {
    margin-top: 10px;
}

.mt-20 {
    margin-top: 20px;
}

.mt-40 {
    margin-top: 40px;
}

.mb-10 {
    margin-bottom: 10px;
}

.mb-20 {
    margin-bottom: 20px;
}

.mb-40 {
    margin-bottom: 40px;
}

.p-10 {
    padding: 10px;
}

.p-20 {
    padding: 20px;
}

.rounded {
    border-radius: 5px;
}

.rounded-circle {
    border-radius: 50%;
}

/* ===================================
   Responsive Adjustments
   =================================== */

@media (max-width: 768px) {
    .page-title {
        font-size: 22px;
    }
    
    .thumbVideo {
        width: 100%;
        margin-bottom: 15px;
    }
    
    .video-grid {
        grid-template-columns: 1fr;
    }
    
    .speaker-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ===================================
   Loading & Animations
   =================================== */

.fade-in {
    animation: fadeIn 0.5s ease-in;
}

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

.slide-up {
    animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* ===================================
   Button Enhancements
   =================================== */

.btn-custom {
    transition: all 0.3s ease;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
}

.btn-custom:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.btn-custom:active {
    transform: translateY(0);
}

/* ===================================
   Card Components
   =================================== */

.card-dark {
    background-color: #2d2d2d;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.card-dark:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
    transition: box-shadow 0.3s ease;
}

/* ===================================
   Scrollbar Styling
   =================================== */

.custom-scrollbar::-webkit-scrollbar {
    height: 8px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: #1a1a1a;
    border-radius: 4px;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: #e74c3c;
    border-radius: 4px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: #c0392b;
}
