/* ===================================
   LYRICAL Design Windows - Accessibility Widget
   Complete Accessibility Features
   =================================== */

/* Accessibility Widget Button */
.accessibility-widget-btn {
    position: fixed;
    bottom: 100px;
    left: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #c9a961, #1a1a1a);
    color: #ffffff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0,0,0,0.3);
    z-index: 9998;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.accessibility-widget-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0,0,0,0.4);
}

.accessibility-widget-btn:focus {
    outline: 3px solid #c9a961;
    outline-offset: 3px;
}

/* Accessibility Panel */
.accessibility-panel {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 350px;
    max-height: 80vh;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.accessibility-panel.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Panel Header */
.accessibility-header {
    background: linear-gradient(135deg, #1a1a1a, #2c3e50);
    color: #ffffff;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 3px solid #c9a961;
}

.accessibility-header h3 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 700;
}

.accessibility-close {
    background: none;
    border: none;
    color: #ffffff;
    font-size: 1.5rem;
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.accessibility-close:hover {
    background: rgba(255,255,255,0.1);
    transform: rotate(90deg);
}

.accessibility-close:focus {
    outline: 2px solid #c9a961;
}

/* Panel Content */
.accessibility-content {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
}

.accessibility-content::-webkit-scrollbar {
    width: 6px;
}

.accessibility-content::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.accessibility-content::-webkit-scrollbar-thumb {
    background: #c9a961;
    border-radius: 3px;
}

/* Feature Groups */
.feature-group {
    margin-bottom: 25px;
}

.feature-group h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: #666;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Feature Buttons */
.feature-btn {
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 8px;
    background: #f8f9fa;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
    color: #1a1a1a;
    font-weight: 500;
}

.feature-btn i {
    font-size: 1.2rem;
    color: #c9a961;
    width: 24px;
    text-align: center;
}

.feature-btn:hover {
    background: #e9ecef;
    border-color: #c9a961;
    transform: translateX(5px);
}

.feature-btn:focus {
    outline: 3px solid #c9a961;
    outline-offset: 2px;
}

.feature-btn.active {
    background: linear-gradient(135deg, #c9a961, #b89651);
    border-color: #c9a961;
    color: #ffffff;
}

.feature-btn.active i {
    color: #ffffff;
}

/* Reset Button */
.reset-btn {
    width: 100%;
    padding: 14px;
    background: #dc3545;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.reset-btn:hover {
    background: #c82333;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.4);
}

.reset-btn:focus {
    outline: 3px solid #c82333;
    outline-offset: 2px;
}

/* Responsive */
@media (max-width: 768px) {
    .accessibility-widget-btn {
        bottom: 80px;
        left: 20px;
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }

    .accessibility-panel {
        left: 20px;
        right: 20px;
        width: auto;
        bottom: 20px;
        max-height: 70vh;
    }
}

/* ===================================
   ACCESSIBILITY FEATURES STYLES
   =================================== */

/* Large Text */
body.large-text {
    font-size: 120% !important;
}

body.large-text h1 { font-size: calc(clamp(2rem, 5vw, 3.5rem) * 1.2) !important; }
body.large-text h2 { font-size: calc(clamp(1.75rem, 4vw, 2.5rem) * 1.2) !important; }
body.large-text h3 { font-size: calc(clamp(1.25rem, 3vw, 1.75rem) * 1.2) !important; }
body.large-text p, body.large-text li, body.large-text a { font-size: 1.1em !important; }

/* Extra Large Text */
body.extra-large-text {
    font-size: 140% !important;
}

body.extra-large-text h1 { font-size: calc(clamp(2rem, 5vw, 3.5rem) * 1.4) !important; }
body.extra-large-text h2 { font-size: calc(clamp(1.75rem, 4vw, 2.5rem) * 1.4) !important; }
body.extra-large-text h3 { font-size: calc(clamp(1.25rem, 3vw, 1.75rem) * 1.4) !important; }
body.extra-large-text p, body.extra-large-text li, body.extra-large-text a { font-size: 1.2em !important; }

/* High Contrast */
body.high-contrast {
    background: #000000 !important;
    color: #ffffff !important;
}

body.high-contrast * {
    background-color: #000000 !important;
    color: #ffffff !important;
    border-color: #ffffff !important;
}

body.high-contrast a {
    color: #ffff00 !important;
    text-decoration: underline !important;
}

body.high-contrast .btn-primary,
body.high-contrast .btn-secondary {
    background: #ffff00 !important;
    color: #000000 !important;
    border: 2px solid #ffffff !important;
}

body.high-contrast img {
    filter: contrast(1.2) brightness(1.1);
}

/* Dark Mode */
body.dark-mode {
    background: #1a1a1a !important;
    color: #e0e0e0 !important;
}

body.dark-mode .header,
body.dark-mode .navbar {
    background: rgba(0, 0, 0, 0.95) !important;
}

body.dark-mode .feature-card,
body.dark-mode .product-card,
body.dark-mode .testimonial-card {
    background: #2c2c2c !important;
    color: #e0e0e0 !important;
}

body.dark-mode p,
body.dark-mode li,
body.dark-mode .section-subtitle {
    color: #b0b0b0 !important;
}

/* Highlight Links */
body.highlight-links a {
    background: #ffff00 !important;
    color: #000000 !important;
    padding: 2px 4px !important;
    border-radius: 3px !important;
    font-weight: 600 !important;
}

/* Readable Font */
body.readable-font,
body.readable-font * {
    font-family: Arial, Helvetica, sans-serif !important;
}

/* Text Spacing */
body.text-spacing * {
    letter-spacing: 0.12em !important;
    word-spacing: 0.16em !important;
}

/* Line Height */
body.line-height * {
    line-height: 2 !important;
}

/* Hide Images */
body.hide-images img,
body.hide-images .hero-slide,
body.hide-images .product-image,
body.hide-images .page-header-bg {
    opacity: 0 !important;
    pointer-events: none !important;
}

/* Cursor Size */
body.large-cursor,
body.large-cursor * {
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32"><circle cx="16" cy="16" r="15" fill="white" stroke="black" stroke-width="2"/></svg>') 16 16, auto !important;
}

/* Focus Indicators */
body.focus-indicators *:focus {
    outline: 4px solid #c9a961 !important;
    outline-offset: 4px !important;
}

/* Reading Guide */
.reading-guide {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #c9a961, #1a1a1a);
    pointer-events: none;
    z-index: 10000;
    display: none;
}

body.reading-guide-active .reading-guide {
    display: block;
}

/* Skip Link Visible */
.skip-link:focus {
    left: 10px !important;
    top: 10px !important;
    z-index: 10000 !important;
}
