/* Save this as taekwondo-media.css in your theme's css folder */

/* Media Page Layout */
.med-media-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.med-page-header {
    text-align: center;
    margin-bottom: 40px;
}

.med-page-title {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: #aaaaaa;
}

.med-page-description {
    font-size: 1.1rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

/* Tabs */
.med-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
}

.med-tab-button {
    background: none;
    border: none;
    padding: 15px 30px;
    font-size: 1.1rem;
    cursor: pointer;
    color: #666;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
    border-radius: 10px !important;
}

.med-tab-button:hover {
    color: #333;
    background-color: #f8f8f8;
}

.med-tab-button.med-active {
    color: #000;
    border-bottom-color: #ff6b35;
}

.med-section-title{
    color: #f1974e !important;
}

/* Tab Content */
.med-tab-content {
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.med-tab-content.med-active {
    display: block;
    opacity: 1;
}

/* Video Highlights Styles */
.med-video-highlights-container {
    margin-bottom: 40px;
}

.med-video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.med-video-item {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.med-video-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
}

.med-video-wrapper {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.med-video-wrapper iframe,
.med-video-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.med-video-info {
    padding: 20px;
}

.med-video-title {
    font-size: 1.3rem;
    margin: 0 0 10px 0;
    color: #333;
    line-height: 1.4;
}

.med-video-date {
    color: #888;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.med-video-excerpt {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Photo Gallery Styles */
.med-photo-gallery-container {
    margin-bottom: 40px;
}

.med-photo-grid {
    display: grid;
    gap: 20px;
    margin-bottom: 40px;
}

.med-photo-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.med-photo-item:hover {
    transform: scale(1.05);
}

.med-photo-wrapper {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.med-photo-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.med-photo-item:hover .med-photo-image {
    transform: scale(1.1);
}

.med-photo-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: 20px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.med-photo-item:hover .med-photo-overlay {
    transform: translateY(0);
}

.med-photo-title {
    font-size: 1.1rem;
    margin: 0 0 5px 0;
    font-weight: 600;
}

.med-photo-date {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Photo Modal */
.med-photo-modal {
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
}

.med-photo-modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

.med-photo-modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10000;
}

.med-photo-modal-close:hover {
    opacity: 0.7;
}

#med-photo-modal-image {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
}

#med-photo-modal-caption {
    color: white;
    text-align: center;
    padding: 10px;
    font-size: 1rem;
}

/* Press Releases Styles */
.med-press-releases-container {
    margin-bottom: 40px;
}

.med-press-list {
    margin-bottom: 40px;
}

.med-press-item {
    display: flex;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.med-press-item:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.med-press-content {
    flex: 1;
    padding: 25px;
}

.med-press-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.med-press-date {
    color: #888;
}

.med-press-category {
    color: #ff6b35;
    font-weight: 600;
}

.med-press-title {
    margin: 0 0 15px 0;
    font-size: 1.4rem;
    line-height: 1.3;
}

.med-press-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.med-press-title a:hover {
    color: #ff6b35;
}

.med-press-excerpt {
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
}

.med-press-read-more {
    display: inline-block;
    color: #ff6b35;
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

.med-press-read-more:hover {
    color: #e55a2b;
}

.med-press-thumbnail {
    width: 200px;
    flex-shrink: 0;
}

.med-press-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Load More Button Styles */
.med-load-more-container {
    text-align: center;
    margin: 40px 0;
}

.med-load-more-btn {
    background: linear-gradient(135deg, #ff6b35, #e55a2b);
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.med-load-more-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
}

.med-load-more-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.med-loading-spinner {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Responsive Design */
@media (max-width: 768px) {
    .med-media-page {
        padding: 15px;
    }
    
    .med-page-title {
        font-size: 2rem;
    }
    
    .med-tabs {
        flex-direction: column;
        border-bottom: none;
    }
    
    .med-tab-button {
        border-bottom: 1px solid #eee;
        border-radius: 10px;
    }
    
    .med-tab-button.med-active {
        border-bottom-color: #ff6b35;
        background-color: #f8f8f8;
    }
    
    .med-video-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .med-photo-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 15px;
    }
    
    .med-press-item {
        flex-direction: column;
    }
    
    .med-press-thumbnail {
        width: 100%;
        height: 200px;
    }
    
    .med-load-more-btn {
        padding: 12px 30px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .med-page-title {
        font-size: 1.8rem;
    }
    
    .med-tab-button {
        padding: 12px 20px;
        font-size: 1rem;
    }
    
    .med-photo-grid {
        grid-template-columns: 1fr;
    }
    
    .med-video-info,
    .med-press-content {
        padding: 15px;
    }
    
    .med-load-more-btn {
        padding: 10px 25px;
        font-size: 0.9rem;
    }
}

/* Animation for new items */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.med-video-item,
.med-photo-item,
.med-press-item {
    animation: fadeInUp 0.5s ease forwards;
}