/* Cookie Consent Banner Styles */

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #1a1b26 0%, #24283b 100%);
    border-top: 2px solid #FF6B35;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
    z-index: 10000;
    padding: 20px;
    transform: translateY(100%);
    transition: transform 0.3s ease-in-out;
}

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

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

.cookie-banner-text h3 {
    color: #FF6B35;
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 8px 0;
}

.cookie-banner-text p {
    color: #c0caf5;
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
}

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

.cookie-btn {
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    white-space: nowrap;
}

.cookie-btn-primary {
    background: #FF6B35;
    color: #ffffff;
}

.cookie-btn-primary:hover {
    background: #ff8555;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.4);
}

.cookie-btn-secondary {
    background: transparent;
    border: 2px solid #414868;
    color: #c0caf5;
}

.cookie-btn-secondary:hover {
    border-color: #7aa2f7;
    background: rgba(122, 162, 247, 0.1);
}

.cookie-btn-link {
    background: transparent;
    color: #7aa2f7;
    text-decoration: underline;
}

.cookie-btn-link:hover {
    color: #9ece6a;
}

/* Cookie Settings Modal */
.cookie-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cookie-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.cookie-modal-content {
    position: relative;
    background: linear-gradient(135deg, #1a1b26 0%, #24283b 100%);
    border-radius: 16px;
    border: 2px solid #414868;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    z-index: 1;
}

.cookie-modal-header {
    padding: 24px 24px 16px;
    border-bottom: 1px solid #414868;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cookie-modal-header h2 {
    color: #FF6B35;
    font-size: 22px;
    font-weight: 700;
    margin: 0;
}

.cookie-modal-close {
    background: transparent;
    border: none;
    color: #c0caf5;
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.cookie-modal-close:hover {
    color: #FF6B35;
    transform: rotate(90deg);
}

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

.cookie-modal-body > p {
    color: #c0caf5;
    font-size: 15px;
    margin: 0 0 20px 0;
}

.cookie-category {
    margin-bottom: 20px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
    border: 1px solid #414868;
}

.cookie-category-header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.cookie-category-info h4 {
    color: #7aa2f7;
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 4px 0;
}

.cookie-category-info p {
    color: #a9b1d6;
    font-size: 13px;
    margin: 0;
}

/* Toggle Switch */
.cookie-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
    flex-shrink: 0;
}

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

.cookie-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #414868;
    transition: 0.4s;
    border-radius: 26px;
}

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

input:checked + .cookie-slider {
    background-color: #7ED321;
}

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

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

.cookie-modal-footer {
    padding: 16px 24px;
    border-top: 1px solid #414868;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.cookie-modal-links {
    padding: 12px 24px;
    text-align: center;
    font-size: 13px;
    color: #7aa2f7;
}

.cookie-modal-links a {
    color: #7aa2f7;
    text-decoration: none;
    transition: color 0.3s ease;
}

.cookie-modal-links a:hover {
    color: #9ece6a;
}

/* Responsive Design */
@media (max-width: 768px) {
    .cookie-banner-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .cookie-banner-actions {
        flex-direction: column;
        width: 100%;
    }

    .cookie-btn {
        width: 100%;
        text-align: center;
    }

    .cookie-modal-content {
        width: 95%;
        margin: 20px;
    }

    .cookie-modal-footer {
        flex-direction: column;
    }

    .cookie-modal-footer .cookie-btn {
        width: 100%;
    }
}

/* Cookie Table in Policy Page */
.cookie-table {
    overflow-x: auto;
    margin: 20px 0;
}

.cookie-table table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.cookie-table thead {
    background: rgba(255, 107, 53, 0.1);
    border-bottom: 2px solid rgba(255, 107, 53, 0.3);
}

.cookie-table th,
.cookie-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.cookie-table th {
    color: #FF6B35;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.5px;
}

.cookie-table td {
    color: #c0caf5;
}

.cookie-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.02);
}
