/* ===========================================
   Compact Conversion Header
   Optimized for registration funnel conversions
   =========================================== */

/* ===========================================
   1. CSS Custom Properties
   =========================================== */
.compact-header {
    /* Layout Properties */
    --compact-header-padding-y: 2rem;
    --compact-header-padding-x: 2rem;
    --compact-header-gap: 1.5rem;
    --compact-header-mobile-gap: 1rem;
    
    /* Desktop Specific */
    --compact-header-desktop-padding-y: 2rem;
    --compact-header-desktop-padding-x: 2rem;
    
    /* Mobile Specific */
    --compact-header-mobile-padding-y: 1.5rem;
    --compact-header-mobile-padding-x: 1rem;
    --compact-header-mobile-image-height: none; /* Remove height constraint to show full image */
    
    /* Typography - Reduced from original */
    --compact-header-title-size: clamp(1.5rem, 4vw, 2.5rem);
    --compact-header-subtitle-size: clamp(1rem, 2.5vw, 1.25rem);
    --compact-header-text-size: clamp(0.875rem, 2vw, 1rem);
    
    /* Image Properties */
    --compact-header-image-radius: 0.75rem;
    --compact-header-image-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    
    /* Info Block Properties */
    --compact-info-bg: rgba(255, 255, 255, 0.08);
    --compact-info-border: rgba(255, 255, 255, 0.12);
    --compact-info-padding: 0.5rem;
    --compact-info-icon-size: 1.25rem;
    
    /* Animation Properties */
    --compact-animation-duration: 0.2s;
    --compact-animation-easing: cubic-bezier(0.4, 0, 0.2, 1);
    --compact-entrance-stagger: 0.05s;
    --compact-hover-scale: 1.02;
    --compact-active-scale: 0.98;
    
    /* Skeleton Loading */
    --skeleton-base: rgba(255, 255, 255, 0.1);
    --skeleton-highlight: rgba(255, 255, 255, 0.2);
    
    /* Focus States */
    --focus-color: var(--league-accent, #3182ce);
    --focus-offset: 2px;
    --focus-ring-width: 3px;
    
    /* Interaction States */
    --hover-brightness: 1.1;
    --hover-shadow-offset: 6px;
    --active-brightness: 0.95;
}

/* ===========================================
   2. Base Layout Overrides
   =========================================== */
.compact-header.league-header {
    /* Override default padding */
    padding: var(--compact-header-padding-y) var(--compact-header-padding-x);
}

/* Content wrapper modifications */
.compact-header .league-header__content {
    max-width: var(--header-max-width, 1200px);
    margin: 0 auto;
    text-align: left; /* Change from center for better hierarchy */
}

/* ===========================================
   3. Typography Adjustments
   =========================================== */
.compact-header .league-header__title {
    font-size: var(--compact-header-title-size);
    margin-bottom: 0.25rem; /* Tighter spacing */
}

.compact-header .league-header__subtitle {
    font-size: var(--compact-header-subtitle-size);
    margin-bottom: 1rem; /* Reduced from 2rem */
}

/* ===========================================
   4. League Description Styles
   =========================================== */
.compact-header .league-description {
    padding-top: 1.25rem; /* Replaces inline style */
    margin-top: 0;
    font-size: var(--compact-header-text-size);
    opacity: 0.9;
}

/* Hide description on mobile in compact mode */
@media (max-width: 767px) {
    .compact-header .league-description {
        display: none;
    }
}

/* ===========================================
   5. Grid Layout Structure
   =========================================== */
/* Mobile-first grid structure */
.compact-header .league-header__content {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    grid-template-areas: 
        "image"
        "info"
        "cta";
    gap: var(--compact-header-mobile-gap);
    justify-items: center; /* Center grid items horizontally */
}

/* Desktop grid structure */
@media (min-width: 768px) {
    .compact-header .league-header__content {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 1fr;
        grid-template-areas: 
            "image info";
        gap: var(--compact-header-gap);
        align-items: center;
        justify-items: stretch; /* Reset to default for desktop */
    }
}

/* Grid area assignments */
.compact-header .league-header__image-wrapper {
    grid-area: image;
    position: relative;
    overflow: hidden;
    border-radius: var(--compact-header-image-radius);
    aspect-ratio: 745 / 496; /* Approximately 1.5:1 ratio */
    background-color: var(--skeleton-base); /* Placeholder while loading */
    width: 100%; /* Full width */
}

.compact-header .league-header__info-wrapper {
    grid-area: info;
    display: flex;
    flex-direction: column;
    gap: var(--compact-header-gap);
    align-self: stretch; /* Full height on desktop */
    justify-content: center;
    width: 100%; /* Full width */
}

.compact-header .league-header__cta-wrapper {
    grid-area: cta;
    width: 100%; /* Full width */
}

/* Desktop specific adjustments */
@media (min-width: 768px) {
    .compact-header .league-header__info-wrapper {
        padding: 1rem 0; /* Vertical padding for better alignment */
    }
    
    .compact-header .league-header__cta-wrapper {
        grid-area: auto; /* Reset grid area on desktop */
        margin-top: auto; /* Push to bottom of info wrapper */
    }
}

/* Development helpers - REMOVE BEFORE PRODUCTION */
.compact-header.debug .league-header__image-wrapper {
    background-color: rgba(255, 0, 0, 0.1);
    border: 2px dashed red;
}

.compact-header.debug .league-header__info-wrapper {
    background-color: rgba(0, 255, 0, 0.1);
    border: 2px dashed green;
}

.compact-header.debug .league-header__cta-wrapper {
    background-color: rgba(0, 0, 255, 0.1);
    border: 2px dashed blue;
}

/* ===========================================
   6. Image Optimizations
   =========================================== */
.compact-header .league-header__image-container {
    position: relative;
    width: 100%;
    height: 100%;
    aspect-ratio: 745 / 496; /* Approximately 1.5:1 ratio */
    overflow: hidden;
    border-radius: var(--compact-header-image-radius);
}

/* Skeleton loader */
.compact-header .league-header__image-skeleton {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        var(--skeleton-base) 0%,
        var(--skeleton-highlight) 50%,
        var(--skeleton-base) 100%
    );
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    z-index: 1;
}

/* Main image - More specific selectors to override league-details.css */
.compact-header .league-header__image-container .league-header__image {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: var(--compact-header-image-radius);
    box-shadow: var(--compact-header-image-shadow);
    transition: opacity var(--compact-animation-duration) var(--compact-animation-easing),
                filter var(--compact-animation-duration) var(--compact-animation-easing);
    opacity: 0;
    filter: blur(10px);
    position: relative;
    z-index: 2;
    margin: 0 !important; /* Override league-details.css margin */
    max-height: none !important; /* Override league-details.css max-height */
}

/* Image loaded state */
.compact-header .league-header__image-container .league-header__image.loaded {
    opacity: 1;
    filter: blur(0);
}

/* Hide skeleton when image loads */
.compact-header .league-header__image-container .league-header__image.loaded ~ .league-header__image-skeleton {
    display: none;
}

/* Error state */
.compact-header .league-header__image-container .league-header__image.error {
    opacity: 1;
    filter: blur(0) grayscale(1);
}

/* Aspect ratio preservation */
.compact-header .league-header__image-wrapper {
    position: relative;
    overflow: hidden;
}

/* Desktop aspect ratio */
@media (min-width: 768px) {
    .compact-header .league-header__image-container {
        aspect-ratio: 745 / 496; /* Approximately 1.5:1 ratio */
    }
}

/* Mobile aspect ratio */
@media (max-width: 767px) {
    .compact-header .league-header__image-container {
        aspect-ratio: 745 / 496; /* Approximately 1.5:1 ratio */
        /* max-height removed to show full image on mobile */
    }
    
    /* Override league-details.css mobile styles */
    .compact-header .league-header__image-container .league-header__image {
        max-height: none !important;
        margin: 0 !important;
    }
}

/* ===========================================
   7. Responsive Adjustments
   =========================================== */
@media (max-width: 767px) {
    .compact-header.league-header {
        padding: var(--compact-header-mobile-padding-y) var(--compact-header-mobile-padding-x);
    }
    
    .compact-header .league-header__content {
        text-align: center; /* Center on mobile */
    }
    
    .compact-header .league-header__info-wrapper {
        align-items: center; /* Center flex items horizontally */
    }
    
    .compact-header .league-header__title-section {
        text-align: center; /* Center titles */
        width: 100%;
    }
    
    .compact-header .league-header__details-section {
        width: 100%;
    }
    
    .compact-header .league-header__cta-wrapper {
        justify-content: center; /* Center CTA button */
    }
    
    .compact-header .league-header__image-wrapper {
        /* max-height removed to show full image on mobile */
    }
}

@media (min-width: 768px) {
    .compact-header.league-header {
        padding: var(--compact-header-desktop-padding-y) var(--compact-header-desktop-padding-x);
    }
}

/* ===========================================
   8. Dark Mode Support
   =========================================== */
@media (prefers-color-scheme: dark) {
    .compact-header {
        --compact-info-bg: rgba(255, 255, 255, 0.05);
        --compact-info-border: rgba(255, 255, 255, 0.08);
        --skeleton-base: rgba(255, 255, 255, 0.05);
        --skeleton-highlight: rgba(255, 255, 255, 0.1);
    }
    
    /* Override league-details.css dark mode box-shadow */
    .compact-header .league-header__image-container .league-header__image {
        box-shadow: var(--compact-header-image-shadow) !important;
    }
}

/* ===========================================
   9. Animation Keyframes
   =========================================== */
@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

/* ===========================================
   10. Accessibility
   =========================================== */
.compact-header *:focus-visible {
    outline: 2px solid var(--focus-color);
    outline-offset: var(--focus-offset);
}

/* Skip link for keyboard navigation */
.compact-header .skip-link {
    position: absolute;
    left: -9999px;
    z-index: 999;
}

.compact-header .skip-link:focus {
    left: 50%;
    transform: translateX(-50%);
    top: 1rem;
    padding: 0.5rem 1rem;
    background: var(--league-primary);
    color: var(--league-contrast);
    border-radius: 0.25rem;
    text-decoration: none;
}

/* ===========================================
   11. Reduced Motion Support
   =========================================== */
@media (prefers-reduced-motion: reduce) {
    .compact-header * {
        animation: none !important;
        transition: none !important;
    }
}

/* ===========================================
   12. Compact Info Blocks
   =========================================== */
.compact-header .compact-info-blocks {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

/* Base info block styling */
.compact-header .compact-info-block {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: var(--compact-info-padding);
    background: var(--compact-info-bg);
    border: 1px solid var(--compact-info-border);
    border-radius: 0.5rem;
    font-size: var(--compact-header-text-size);
    transition: all var(--compact-animation-duration) var(--compact-animation-easing);
}

/* Icon styling */
.compact-header .compact-info-block__icon {
    font-size: var(--compact-info-icon-size);
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--league-accent, #3182ce);
    flex-shrink: 0;
}

/* Course emblem styling */
.compact-header .compact-info-block__emblem {
    width: 2rem;
    height: 2rem;
    object-fit: contain;
    flex-shrink: 0;
}

/* Content wrapper */
.compact-header .compact-info-block__content {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* Label styling */
.compact-header .compact-info-block__label {
    font-weight: 500;
    opacity: 0.8;
    font-size: 0.875em;
}

/* Value styling */
.compact-header .compact-info-block__value {
    font-weight: 600;
}

/* Separator */
.compact-header .compact-info-block__separator {
    opacity: 0.4;
    margin: 0 0.25rem;
}

/* Badge styling */
.compact-header .compact-info-block__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.125rem 0.5rem;
    background: var(--league-primary, #2563eb);
    color: white;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.compact-header .compact-info-block__badge--doubles {
    background: var(--league-accent, #3182ce);
}

.compact-header .compact-info-block__badge--format {
    background: var(--league-secondary, #6366f1);
}

.compact-header .compact-info-block__badge i {
    font-size: 0.625rem;
}

/* Primary vs Secondary blocks */
.compact-header .compact-info-block--primary {
    background: var(--compact-info-bg);
    border-color: var(--compact-info-border);
}

.compact-header .compact-info-block--secondary {
    background: transparent;
    border-color: transparent;
    padding: 0.25rem 0.5rem;
}

/* Mobile-only blocks */
.compact-header .compact-info-block--mobile-only {
    display: none;
}

/* Hover effects */
@media (hover: hover) {
    .compact-header .compact-info-block:hover {
        background: rgba(255, 255, 255, 0.12);
        border-color: rgba(255, 255, 255, 0.16);
        transform: translateY(-1px);
    }
}

/* Mobile adjustments */
@media (max-width: 767px) {
    .compact-header .compact-info-blocks {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .compact-header .compact-info-block {
        width: 100%;
        justify-content: center;
        text-align: center;
    }
    
    .compact-header .compact-info-block__content {
        justify-content: center;
    }
    
    .compact-header .compact-info-block--mobile-only {
        display: flex;
    }
    
    /* Hide secondary blocks on very small screens */
    @media (max-width: 375px) {
        .compact-header .compact-info-block--secondary {
            display: none;
        }
    }
}

/* Desktop adjustments */
@media (min-width: 768px) {
    .compact-header .compact-info-blocks {
        flex-direction: row;
        align-items: stretch;
    }
    
    /* Primary blocks take more space */
    .compact-header .compact-info-block--primary {
        flex: 1 1 auto;
        min-width: 0;
    }
    
    /* Secondary blocks are more compact */
    .compact-header .compact-info-block--secondary {
        flex: 0 0 auto;
    }
}

/* ===========================================
   13. Visible Description Section
   =========================================== */
.compact-header .compact-header__description-visible {
    grid-area: auto; /* Not part of the grid */
    margin: 1rem 0;
    padding: 1rem;
    background: var(--compact-info-bg);
    border-radius: 0.5rem;
    font-size: var(--compact-header-text-size);
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    width: 100%;
}

/* Mobile adjustments for description */
@media (max-width: 767px) {
    .compact-header .compact-header__description-visible {
        text-align: center;
        margin: 0.75rem 0;
    }
}

/* ===========================================
   14. Smart CTA Button
   =========================================== */
.compact-header .league-header__cta-wrapper {
    grid-area: cta;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

/* CTA group container */
.compact-header .compact-cta-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
}

/* Primary CTA button */
.compact-header .compact-header__cta-button {
    font-size: 1.125rem;
    font-weight: 600;
    padding: 0.875rem 2rem;
    border-radius: 0.5rem;
    transition: all var(--compact-animation-duration) var(--compact-animation-easing);
    text-transform: none;
    letter-spacing: normal;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
}

/* Registration count badge */
.compact-header .compact-cta-badge {
    background: rgba(255, 255, 255, 0.2);
    color: inherit;
    padding: 0.125rem 0.5rem;
    border-radius: 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    margin-left: 0.25rem;
}

/* Urgency indicator */
.compact-header .compact-cta-urgency {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--league-accent, #ef4444);
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.compact-header .compact-cta-urgency i {
    font-size: 1rem;
}

/* Secondary CTA link */
.compact-header .compact-cta-secondary {
    color: var(--league-primary, #3182ce);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    text-align: center;
    padding: 0.5rem;
    border-radius: 0.25rem;
    transition: all var(--compact-animation-duration) var(--compact-animation-easing);
}

.compact-header .compact-cta-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    text-decoration: underline;
}

/* Disabled state */
.compact-header .compact-header__cta-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.compact-header .compact-header__cta-button:disabled:hover {
    transform: none;
}

/* Mobile adjustments */
@media (max-width: 767px) {
    .compact-header .league-header__cta-wrapper {
        margin-top: 1rem;
    }
    
    .compact-header .compact-header__cta-button {
        width: 100%;
        padding: 1rem 2rem;
        font-size: 1.25rem;
    }
}

/* Desktop adjustments */
@media (min-width: 768px) {
    .compact-header .compact-cta-group {
        flex-direction: row;
        align-items: center;
        gap: 1rem;
    }
    
    .compact-header .compact-header__cta-button {
        width: auto;
        min-width: 200px;
    }
    
    .compact-header .compact-cta-urgency {
        order: -1; /* Move urgency before button */
    }
    
    .compact-header .compact-cta-secondary {
        margin-left: auto;
    }
}

/* Pulse animation for urgency */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* ===========================================
   14. Content Prioritization
   =========================================== */
/* Content visibility on mobile */
@media (max-width: 767px) {
    /* Hide tertiary content on mobile */
    .compact-header .tertiary-content {
        display: none;
    }
}

/* Text truncation for long content */
.compact-header .truncate-2-lines {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.compact-header .truncate-3-lines {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ===========================================
   15. Utility Classes
   =========================================== */
.compact-header .visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ===========================================
   16. Entrance Animations
   =========================================== */
/* Staggered entrance animation for main elements */
.compact-header.is-entering .league-header__content > * {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.5s var(--compact-animation-easing) forwards;
}

.compact-header.is-entering .league-header__title {
    animation-delay: 0s;
}

.compact-header.is-entering .league-header__subtitle {
    animation-delay: calc(var(--compact-entrance-stagger) * 1);
}

.compact-header.is-entering .compact-info-blocks {
    animation-delay: calc(var(--compact-entrance-stagger) * 2);
}

.compact-header.is-entering .league-header__cta-wrapper {
    animation-delay: calc(var(--compact-entrance-stagger) * 3);
}

.compact-header.is-entering .league-header__image-container {
    opacity: 0;
    transform: scale(0.95);
    animation: fadeInScale 0.6s var(--compact-animation-easing) calc(var(--compact-entrance-stagger) * 2) forwards;
}

/* Individual info block animations */
.compact-header.is-entering .compact-info-block {
    opacity: 0;
    transform: translateX(-10px);
    animation: fadeInLeft 0.4s var(--compact-animation-easing) forwards;
}

.compact-header.is-entering .compact-info-block:nth-child(1) {
    animation-delay: calc(var(--compact-entrance-stagger) * 2);
}

.compact-header.is-entering .compact-info-block:nth-child(2) {
    animation-delay: calc(var(--compact-entrance-stagger) * 3);
}

.compact-header.is-entering .compact-info-block:nth-child(3) {
    animation-delay: calc(var(--compact-entrance-stagger) * 4);
}

.compact-header.is-entering .compact-info-block:nth-child(4) {
    animation-delay: calc(var(--compact-entrance-stagger) * 5);
}

/* ===========================================
   17. Interaction States
   =========================================== */
/* Enhanced hover states for info blocks */
.compact-header .compact-info-block {
    transition: all var(--compact-animation-duration) var(--compact-animation-easing);
    cursor: default;
}

.compact-header .compact-info-block--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    background: rgba(255, 255, 255, 0.12);
}

/* Interactive elements focus states */
.compact-header .compact-header__cta-button:focus-visible,
.compact-header .compact-cta-secondary:focus-visible {
    outline: var(--focus-ring-width) solid var(--focus-color);
    outline-offset: var(--focus-offset);
}

/* CTA button enhanced interactions */
.compact-header .compact-header__cta-button {
    position: relative;
    overflow: hidden;
}

.compact-header .compact-header__cta-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.compact-header .compact-header__cta-button:hover::before {
    width: 300px;
    height: 300px;
}

.compact-header .compact-header__cta-button:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 var(--hover-shadow-offset) 20px rgba(0, 0, 0, 0.2);
}

.compact-header .compact-header__cta-button:active:not(:disabled) {
    transform: scale(var(--compact-active-scale));
    transition-duration: 0.1s;
}

/* Badge animations */
.compact-header .compact-info-block__badge {
    transition: all var(--compact-animation-duration) var(--compact-animation-easing);
}

.compact-header .compact-info-block:hover .compact-info-block__badge {
    transform: scale(var(--compact-hover-scale));
}

/* Icon animations */
.compact-header .compact-info-block__icon {
    transition: all var(--compact-animation-duration) var(--compact-animation-easing);
}

.compact-header .compact-info-block:hover .compact-info-block__icon {
    transform: rotate(5deg) scale(1.1);
}

/* Image hover effects - Override league-details.css hover */
.compact-header .league-header__image-container .league-header__image {
    transition: all var(--compact-animation-duration) var(--compact-animation-easing);
}

.compact-header .league-header__image-container .league-header__image:hover {
    transform: scale(var(--compact-hover-scale)) !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2) !important;
}

/* ===========================================
   18. Animation Keyframes
   =========================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Success animation for CTA button */
@keyframes successPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(34, 197, 94, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
    }
}

.compact-header .compact-header__cta-button.success {
    animation: successPulse 1s ease-out;
}

/* ===========================================
   19. Ripple Effect
   =========================================== */
.compact-header .ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    transform: scale(0);
    animation: ripple-animation 0.6s ease-out;
    pointer-events: none;
}

@keyframes ripple-animation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* ===========================================
   20. Image Zoom Overlay
   =========================================== */
.compact-header__image-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    cursor: zoom-out;
    animation: fadeIn 0.3s ease-out;
}

.compact-header .league-header__image-container .league-header__image.zoomed {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) scale(1.5) !important;
    max-width: 90vw !important;
    max-height: 90vh !important;
    z-index: 10000;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5) !important;
    width: auto !important; /* Override 100% width when zoomed */
    height: auto !important; /* Override 100% height when zoomed */
}

/* ===========================================
   21. Accessibility Enhancements
   =========================================== */
/* Enhanced focus states for keyboard navigation */
.compact-header *:focus-visible,
.compact-header .has-focus {
    outline: var(--focus-ring-width) solid var(--focus-color);
    outline-offset: var(--focus-offset);
    z-index: 1;
    position: relative;
}

/* Skip to main content link */
.compact-header__skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--league-primary);
    color: white;
    padding: 0.5rem 1rem;
    text-decoration: none;
    border-radius: 0 0 0.5rem 0;
    z-index: 100;
    transition: top 0.2s;
}

.compact-header__skip-link:focus {
    top: 0;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .compact-header .compact-info-block {
        border-width: 2px;
        border-color: CanvasText;
    }
    
    .compact-header .compact-header__cta-button {
        border: 2px solid;
    }
    
    .compact-header .compact-info-block__icon {
        filter: none;
    }
}

/* Dark mode adjustments for better contrast */
@media (prefers-color-scheme: dark) {
    .compact-header {
        --focus-color: #60a5fa; /* Lighter blue for dark mode */
    }
    
    .compact-header .compact-info-block__value {
        color: rgba(255, 255, 255, 0.95); /* Higher contrast text */
    }
}

/* Screen reader only content */
.compact-header .visually-hidden,
.compact-header .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;
}

/* ===========================================
   22. Reduced Motion Support
   =========================================== */
@media (prefers-reduced-motion: reduce) {
    .compact-header * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .compact-header .compact-header__cta-button:hover::before {
        display: none;
    }
}

/* ===========================================
   DEPRECATED: To be removed after migration
   =========================================== */
/*
   The following selectors from league-details.css will be 
   deprecated when compact mode is fully implemented:
   - .league-header (padding overrides)
   - .meta-card (replaced by compact info blocks)
   - .league-header__meta (replaced by new grid layout)
*/