/**
 * Stylesheet for Innova Space Cookie Banner & Preferences Modal
 * Clean high-end dark theme matching Innova brand (#111111 background, #92d34f lime accents).
 */

/* ==========================================================================
   1. FLOATING COOKIE BANNER
   ========================================================================== */
#innova-cookie-banner {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    width: 92%;
    max-width: 980px;
    background: #111111;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 14px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
    z-index: 999999;
    padding: 20px 24px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 13.5px;
    line-height: 1.55;
    box-sizing: border-box;
}

.innova-cb-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.innova-cb-content {
    flex: 1;
    min-width: 280px;
}

.innova-cb-text {
    margin: 0;
    color: #e2e8f0;
}

.innova-cb-link {
    color: #92d34f;
    text-decoration: underline;
    margin-left: 4px;
    font-weight: 500;
}

.innova-cb-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

/* ==========================================================================
   2. ACTION BUTTONS (EQUAL VISUAL PROMINENCE MANDATED BY LAW)
   ========================================================================== */
.innova-btn {
    padding: 10px 22px;
    font-size: 13.5px;
    font-weight: 700;
    border-radius: 7px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    text-align: center;
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    box-sizing: border-box;
}

.innova-btn-accept {
    background: #92d34f;
    color: #111111;
}

.innova-btn-accept:hover {
    background: #a2e85a;
}

.innova-btn-reject {
    background: #ffffff;
    color: #111111;
    border: none;
}

.innova-btn-reject:hover {
    background: #e2e8f0;
}

.innova-btn-pref {
    background: transparent;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.innova-btn-pref:hover {
    background: rgba(255, 255, 255, 0.08);
}

/* ==========================================================================
   3. PREFERENCES MODAL
   ========================================================================== */
.innova-modal {
    position: fixed;
    inset: 0;
    z-index: 1000000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.innova-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.innova-modal-dialog {
    position: relative;
    background: #151515;
    color: #ffffff;
    width: 92%;
    max-width: 620px;
    max-height: 85vh;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.innova-modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.innova-modal-header h3 {
    margin: 0;
    font-size: 18px;
    color: #ffffff;
    font-weight: 700;
}

.innova-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #aaa;
    cursor: pointer;
}

.innova-modal-close:hover {
    color: #fff;
}

.innova-modal-body {
    padding: 20px 24px;
    overflow-y: auto;
    flex: 1;
    font-size: 13px;
    line-height: 1.5;
}

.innova-modal-intro {
    color: #cbd5e1;
    margin-top: 0;
    margin-bottom: 20px;
}

.innova-cat-row {
    background: #1e1e1e;
    padding: 14px 16px;
    border-radius: 10px;
    margin-bottom: 12px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.innova-cat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.innova-cat-header h4 {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
}

.innova-cat-title-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
}

.innova-badge-locked {
    background: rgba(146, 211, 79, 0.15);
    color: #92d34f;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 7px;
    border-radius: 4px;
}

.innova-cat-desc {
    margin: 6px 0 0;
    color: #94a3b8;
    font-size: 12.5px;
}

.innova-modal-links {
    text-align: center;
    margin-top: 18px;
    font-size: 12px;
    color: #777;
}

.innova-modal-links a {
    color: #92d34f;
    text-decoration: underline;
}

.innova-modal-footer {
    padding: 16px 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: #111111;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

/* ==========================================================================
   4. TOGGLE SWITCHES
   ========================================================================== */
.innova-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

.innova-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.innova-slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background-color: #3b3b3b;
    transition: .3s;
    border-radius: 24px;
}

.innova-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .3s;
    border-radius: 50%;
}

.innova-switch input:checked + .innova-slider {
    background-color: #92d34f;
}

.innova-switch input:checked + .innova-slider:before {
    transform: translateX(20px);
    background-color: #111;
}

.innova-slider.locked {
    cursor: not-allowed;
    opacity: 0.85;
    background-color: #92d34f;
}

.innova-slider.locked:before {
    transform: translateX(20px);
    background-color: #111;
}