/* ========================================
   Accessibility Widget Styles
   ======================================== */

/* Accessibility Button */
.accessibility-btn {
    position: fixed;
    left: 20px;
    bottom: 100px;
    width: 50px;
    height: 50px;
    background: var(--gradient-button);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    z-index: 9998;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0, 102, 255, 0.4);
    transition: all 0.3s ease;
}

.accessibility-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(0, 102, 255, 0.5);
}

.accessibility-btn svg {
    width: 28px;
    height: 28px;
    fill: white;
}

.accessibility-btn .btn-tooltip {
    position: absolute;
    right: 60px;
    background: var(--text-dark);
    color: white;
    padding: 8px 15px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.accessibility-btn:hover .btn-tooltip {
    opacity: 1;
    visibility: visible;
}

/* Accessibility Panel */
.accessibility-panel {
    position: fixed;
    left: 20px;
    bottom: 160px;
    width: 320px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

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

.accessibility-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
}

.accessibility-header h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
}

.accessibility-close {
    width: 30px;
    height: 30px;
    border: none;
    background: var(--bg-gray);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.accessibility-close:hover {
    background: rgba(255, 100, 100, 0.2);
    color: #ff6b6b;
}

.accessibility-close svg {
    width: 16px;
    height: 16px;
}

.accessibility-options {
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 400px;
    overflow-y: auto;
}

.accessibility-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    background: var(--bg-gray);
    border: 1px solid transparent;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.3s ease;
}

.accessibility-option:hover {
    border-color: var(--primary-color);
    background: rgba(0, 102, 255, 0.05);
}

.accessibility-option.active {
    background: rgba(0, 102, 255, 0.1);
    border-color: var(--primary-color);
}

.accessibility-option .option-icon {
    width: 40px;
    height: 40px;
    background: var(--card-bg);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.accessibility-option .option-icon svg {
    width: 22px;
    height: 22px;
    stroke: var(--primary-color);
}

.accessibility-option .option-text {
    flex: 1;
}

.accessibility-option .option-text span {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-dark);
}

.accessibility-option .option-text small {
    font-size: 12px;
    color: var(--text-muted);
}

/* Font Size Controls */
.font-size-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px;
    background: var(--bg-gray);
    border-radius: var(--radius-md);
    margin: 0 15px 15px;
}

.font-size-controls span {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    flex: 1;
}

.font-size-btn {
    width: 36px;
    height: 36px;
    border: 1px solid var(--border-color);
    background: var(--card-bg);
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
    transition: all 0.3s ease;
}

.font-size-btn:hover {
    border-color: var(--primary-color);
    background: rgba(0, 102, 255, 0.1);
    color: var(--primary-color);
}

.font-size-value {
    min-width: 50px;
    text-align: center;
    font-size: 14px;
    font-weight: 700;
    color: var(--primary-color);
}

/* Reset Button */
.accessibility-reset {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    margin: 0 15px 15px;
    background: rgba(255, 100, 100, 0.1);
    border: 1px solid rgba(255, 100, 100, 0.3);
    border-radius: var(--radius-md);
    color: #ff6b6b;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.accessibility-reset:hover {
    background: rgba(255, 100, 100, 0.2);
}

.accessibility-reset svg {
    width: 18px;
    height: 18px;
}

/* Accessibility Footer Link */
.accessibility-link {
    display: block;
    text-align: center;
    padding: 15px;
    border-top: 1px solid var(--border-color);
    color: var(--primary-color);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.accessibility-link:hover {
    background: rgba(0, 102, 255, 0.05);
}

/* Accessibility Modes - Applied to body */
body.high-contrast {
    filter: contrast(1.5);
}

body.grayscale {
    filter: grayscale(100%);
}

body.highlight-links a {
    outline: 3px solid #ff0 !important;
    background: rgba(255, 255, 0, 0.2) !important;
}

body.readable-font,
body.readable-font * {
    font-family: Arial, sans-serif !important;
    letter-spacing: 0.5px;
}

body.big-cursor,
body.big-cursor * {
    cursor: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32"><path fill="black" stroke="white" stroke-width="1" d="M4 4l20 8-8 4-4 8z"/></svg>'), auto !important;
}

body.line-height-increased {
    line-height: 2 !important;
}

body.line-height-increased * {
    line-height: 2 !important;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .accessibility-btn {
        left: 15px;
        bottom: 90px;
        width: 45px;
        height: 45px;
    }

    .accessibility-panel {
        left: 10px;
        right: 10px;
        bottom: 145px;
        width: auto;
    }

    .accessibility-btn .btn-tooltip {
        display: none;
    }
}

/* ========================================
   Cookie Consent Banner
   ======================================== */

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--card-bg);
    border-top: 1px solid var(--border-color);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
    padding: 20px;
    z-index: 10000;
    transform: translateY(100%);
    transition: transform 0.4s ease;
}

.cookie-banner.active {
    transform: translateY(0);
}

.cookie-banner-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.cookie-banner-text {
    flex: 1;
    min-width: 300px;
}

.cookie-banner-text h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cookie-banner-text h4::before {
    content: '🍪';
}

.cookie-banner-text p {
    font-size: 14px;
    color: var(--text-gray);
    line-height: 1.6;
}

.cookie-banner-text a {
    color: var(--primary-color);
    text-decoration: none;
}

.cookie-banner-text a:hover {
    text-decoration: underline;
}

.cookie-banner-buttons {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

.cookie-btn {
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-family: inherit;
}

.cookie-btn-accept {
    background: var(--gradient-button);
    color: white;
}

.cookie-btn-accept:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 102, 255, 0.3);
}

.cookie-btn-settings {
    background: var(--bg-gray);
    color: var(--text-dark);
    border: 1px solid var(--border-color);
}

.cookie-btn-settings:hover {
    border-color: var(--primary-color);
    background: rgba(0, 102, 255, 0.05);
}

/* Cookie Settings Modal */
.cookie-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.cookie-modal.active {
    opacity: 1;
    visibility: visible;
}

.cookie-modal-content {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    max-width: 500px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.cookie-modal.active .cookie-modal-content {
    transform: scale(1);
}

.cookie-modal-header {
    padding: 25px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cookie-modal-header h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
}

.cookie-modal-close {
    width: 32px;
    height: 32px;
    border: none;
    background: var(--bg-gray);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.cookie-modal-close:hover {
    background: rgba(255, 100, 100, 0.2);
}

.cookie-modal-close svg {
    width: 16px;
    height: 16px;
}

.cookie-modal-body {
    padding: 25px;
}

.cookie-option {
    padding: 15px;
    background: var(--bg-gray);
    border-radius: var(--radius-md);
    margin-bottom: 15px;
}

.cookie-option:last-child {
    margin-bottom: 0;
}

.cookie-option-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.cookie-option-header h4 {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-dark);
}

.cookie-option p {
    font-size: 13px;
    color: var(--text-gray);
    line-height: 1.5;
}

/* Toggle Switch */
.cookie-toggle {
    position: relative;
    width: 44px;
    height: 24px;
}

.cookie-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.cookie-toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--border-color);
    border-radius: 24px;
    transition: 0.3s;
}

.cookie-toggle-slider::before {
    content: '';
    position: absolute;
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background: white;
    border-radius: 50%;
    transition: 0.3s;
}

.cookie-toggle input:checked + .cookie-toggle-slider {
    background: var(--primary-color);
}

.cookie-toggle input:checked + .cookie-toggle-slider::before {
    transform: translateX(20px);
}

.cookie-toggle input:disabled + .cookie-toggle-slider {
    opacity: 0.6;
    cursor: not-allowed;
}

.cookie-modal-footer {
    padding: 20px 25px;
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

/* Mobile responsive for cookie banner */
@media (max-width: 768px) {
    .cookie-banner-content {
        flex-direction: column;
        text-align: center;
    }

    .cookie-banner-text {
        min-width: 100%;
    }

    .cookie-banner-buttons {
        width: 100%;
        justify-content: center;
    }

    .cookie-btn {
        flex: 1;
    }
}
