/**
 * Media Gallery Styles
 * 
 * Styles for the Media Gallery page, including empty states and accessibility improvements
 * 
 * @package Halverstown Cricket Club
 * @version 1.0
 */

/* Screen reader only class */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Empty state styles */
.empty-state {
    text-align: center;
    padding: 3rem 1.5rem;
    background-color: #212121; /* YouTube-like dark gray background */
    border-radius: 8px;
    margin: 2rem 0;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: white;
}

.empty-state-icon {
    font-size: 3.5rem;
    color: #ff0000; /* YouTube red for icon */
    margin-bottom: 1.25rem;
    opacity: 0.9;
}

.empty-state h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: white; /* White text for headings */
}

.empty-state p {
    max-width: 600px;
    margin: 0 auto 1.5rem;
    color: rgba(255, 255, 255, 0.9); /* Slightly transparent white for body text */
    line-height: 1.6;
}

.empty-state a {
    color: #3ea6ff; /* YouTube blue link color */
    text-decoration: underline;
    transition: color 0.2s;
}

.empty-state a:hover {
    color: #fff; /* White on hover */
    text-decoration: underline;
}

.empty-state .btn-youtube {
    display: inline-flex;
    align-items: center;
    background-color: #ff0000;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    margin-top: 1.25rem;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.empty-state .btn-youtube:hover {
    background-color: #cc0000;
    color: white;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.4);
    transform: translateY(-2px);
}

.empty-state .btn-youtube i {
    margin-right: 0.5rem;
    font-size: 1.2rem;
}

/* Focus styles for better accessibility */
button:focus,
a:focus,
input:focus,
select:focus {
    outline: 2px solid var(--halverstown-blue, #24A0DA); /* Using brand blue */
    outline-offset: 2px;
}

/* YouTube embed responsive container */
.featured-media .responsive-video {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
}

.featured-media .responsive-video iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Media tabs accessibility improvements */
.media-tabs {
    display: flex;
    margin-bottom: 2rem;
    padding: 1.25rem 0 0.5rem 0; /* More padding on top and bottom */
    border-bottom: 2px solid rgba(0, 112, 60, 0.2); /* Thicker border */
    position: relative; /* For absolute positioning of the active indicator */
}

.media-tabs [role="tab"] {
    cursor: pointer;
    position: relative;
    padding: 0.85rem 1.75rem; /* Increased padding */
    margin-right: 0.75rem;
    background-color: transparent;
    border: none;
    border-radius: 6px 6px 0 0; /* Larger radius on top */
    font-weight: 500;
    color: var(--halverstown-grey, #6E7173);
    transition: all 0.2s ease;
    font-size: 1.05rem; /* Slightly larger font */
}

.media-tabs [role="tab"]:hover {
    background-color: rgba(0, 112, 60, 0.08); /* Slightly darker on hover */
    color: var(--halverstown-green, #00703C);
}

.media-tabs [role="tab"][aria-selected="true"] {
    color: var(--halverstown-green, #00703C);
    background-color: rgba(0, 112, 60, 0.12); /* Slightly darker when selected */
    font-weight: 600;
    transform: translateY(-2px); /* Slight lift effect */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05); /* Subtle shadow */
}

.media-tabs [role="tab"][aria-selected="true"]::after {
    content: '';
    position: absolute;
    bottom: -2px; /* Align with the border */
    left: 0;
    width: 100%;
    height: 4px; /* Thicker indicator */
    background-color: var(--halverstown-green, #00703C);
    border-radius: 4px 4px 0 0; /* Rounded top */
}

/* Make the tab content areas have proper spacing */
[role="tabpanel"] {
    padding-top: 2rem; /* More padding at the top of tab content */
    min-height: 200px; /* Ensure minimum height for empty tabs */
}

/* Responsive styles */
@media (max-width: 768px) {
    .empty-state {
        padding: 2rem 1rem;
    }
    
    .empty-state-icon {
        font-size: 2.5rem;
    }
    
    .empty-state h3 {
        font-size: 1.25rem;
    }
} 