/**
 * RSL Iframe Styles
 * Responsive iframe containers with aspect ratio preservation and accessibility skip links
 */

/* Iframe wrapper - contains skip links and iframe container */
.rsl-iframe-wrapper {
    position: relative;
    width: 100%;
}

/* Responsive iframe container with aspect ratio preservation */
.rsl-iframe-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* Default 16:9 aspect ratio */
    overflow: hidden;
}

.rsl-iframe-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Skip link - visually hidden but accessible via keyboard */
.rsl-skip-link {
    position: absolute;
    top: -1000px;
    left: -1000px;
    height: 1px;
    width: 1px;
    overflow: hidden;
    z-index: 1000;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 0.75rem 1.25rem;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.875rem;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
    white-space: nowrap;
    border: none;
}

/* Skip link visible state - appears on focus */
.rsl-skip-link:focus {
    position: relative;
    top: auto;
    left: auto;
    height: auto;
    width: auto;
    overflow: visible;
    display: inline-block;
    margin: 0.5rem 0;
    outline: 3px solid #667eea;
    outline-offset: 2px;
}

.rsl-skip-link:hover {
    background: linear-gradient(135deg, #5a6fd6 0%, #6a4190 100%);
    color: #fff;
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
}

/* Skip target - invisible anchor point */
.rsl-skip-target {
    position: absolute;
    height: 0;
    width: 0;
    overflow: hidden;
}

/* Dark mode support */
[data-theme="dark"] .rsl-skip-link {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

[data-theme="dark"] .rsl-skip-link:focus {
    outline-color: #a5b4fc;
}

[data-theme="dark"] .rsl-skip-link:hover {
    background: linear-gradient(135deg, #7c8ff5 0%, #8b5cb8 100%);
    color: #ffffff;
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.5);
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .rsl-skip-link {
        transition: none;
    }
}
