/**
 * Cinema Bridge - Link Styles
 *
 * Styles for cinema links injected into WordPress content.
 * Three variants: movie (red), series/tv (purple), person (gold)
 */

/* =============================================================================
   BASE STYLES
   ============================================================================= */

.cinemalink {
    color: inherit;
    text-decoration: none;
    background: linear-gradient(
        to right,
        rgba(229, 9, 20, 0.12),
        rgba(229, 9, 20, 0.06)
    );
    border-bottom: 1.5px solid rgba(229, 9, 20, 0.4);
    padding: 0 3px 1px;
    border-radius: 3px;
    font-weight: 500;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.cinemalink:hover,
.cinemalink:focus {
    background: rgba(229, 9, 20, 0.85);
    border-bottom-color: transparent;
    color: #ffffff;
    padding: 1px 5px 2px;
    border-radius: 4px;
    text-decoration: none;
    outline: none;
}

.cinemalink:focus {
    box-shadow: 0 0 0 2px rgba(229, 9, 20, 0.3);
}

/* =============================================================================
   MOVIE VARIANT (Red - Cinema)
   ============================================================================= */

.cinemalink--movie {
    border-bottom-color: rgba(229, 9, 20, 0.5);
    background: linear-gradient(
        to right,
        rgba(229, 9, 20, 0.12),
        rgba(229, 9, 20, 0.05)
    );
}

.cinemalink--movie:hover,
.cinemalink--movie:focus {
    background: rgba(229, 9, 20, 0.85);
    color: #ffffff;
}

/* =============================================================================
   SERIES/TV VARIANT (Purple - Streaming)
   ============================================================================= */

.cinemalink--series,
.cinemalink--tv {
    border-bottom-color: rgba(139, 92, 246, 0.5);
    background: linear-gradient(
        to right,
        rgba(139, 92, 246, 0.12),
        rgba(139, 92, 246, 0.05)
    );
}

.cinemalink--series:hover,
.cinemalink--series:focus,
.cinemalink--tv:hover,
.cinemalink--tv:focus {
    background: rgba(139, 92, 246, 0.85);
    color: #ffffff;
}

.cinemalink--series:focus,
.cinemalink--tv:focus {
    box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.3);
}

/* =============================================================================
   PERSON VARIANT (Gold - Oscars)
   ============================================================================= */

.cinemalink--person {
    border-bottom-color: rgba(197, 158, 50, 0.5);
    background: linear-gradient(
        to right,
        rgba(197, 158, 50, 0.12),
        rgba(197, 158, 50, 0.05)
    );
}

.cinemalink--person:hover,
.cinemalink--person:focus {
    background: rgba(197, 158, 50, 0.85);
    color: #1a1a1a;
}

.cinemalink--person:focus {
    box-shadow: 0 0 0 2px rgba(197, 158, 50, 0.3);
}

/* =============================================================================
   DARK MODE SUPPORT
   ============================================================================= */

@media (prefers-color-scheme: dark) {
    .cinemalink {
        background: linear-gradient(
            to right,
            rgba(229, 9, 20, 0.2),
            rgba(229, 9, 20, 0.1)
        );
        border-bottom-color: rgba(229, 9, 20, 0.6);
    }

    .cinemalink--series,
    .cinemalink--tv {
        background: linear-gradient(
            to right,
            rgba(139, 92, 246, 0.2),
            rgba(139, 92, 246, 0.1)
        );
        border-bottom-color: rgba(139, 92, 246, 0.6);
    }

    .cinemalink--person {
        background: linear-gradient(
            to right,
            rgba(197, 158, 50, 0.2),
            rgba(197, 158, 50, 0.1)
        );
        border-bottom-color: rgba(197, 158, 50, 0.6);
    }
}

/* =============================================================================
   REDUCED MOTION
   ============================================================================= */

@media (prefers-reduced-motion: reduce) {
    .cinemalink {
        transition: none;
    }
}

/* =============================================================================
   PRINT STYLES
   ============================================================================= */

@media print {
    .cinemalink {
        background: none !important;
        border-bottom: 1px solid #000 !important;
        color: inherit !important;
        padding: 0 !important;
    }

    .cinemalink::after {
        content: " [" attr(href) "]";
        font-size: 0.8em;
        color: #666;
    }
}
