/**
 * Cookie Consent Styles
 * Styles for the GDPR-compliant cookie consent banner
 */

/* Base styles for the banner */
.cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 15px;
    background-color: rgba(0, 0, 0, 0.8);         /* matches body background opacity */
    color: rgb(211, 211, 211);                      /* same as body text color */
    font-family: Helvetica, Arial, sans-serif;      /* same as template */
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.5);
    transform: translateY(100%);
    transition: transform 0.3s ease-in-out;
    z-index: 1000;
}

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

.cookie-consent-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cookie-consent-content h3 {
    font-size: 1.2rem;
    color: #fff;
    margin: 0;
}

.cookie-consent-content p {
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
}

.cookie-consent-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

/* Base button */
.consent-btn {
    padding: 8px 16px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.9rem;
    background-color: #333333;                    /* dark gray */
    color: rgb(211, 211, 211);
    transition: background 0.2s, transform 0.1s, box-shadow 0.2s;
}

.consent-btn:hover {
    background-color: #444444;
    transform: translateY(-2px);
}

.consent-btn:active {
    transform: translateY(0);
}

/* Button variants */
.cookie-consent-buttons .consent-btn.accept-all {
    border: 1px solid #0088cc;
    background-color: #0088cc;
    color: #ffffff;
    padding: 9px 18px;
    font-size: 1rem;
    flex-grow: 1.2;
}

.cookie-consent-buttons .consent-btn.accept-necessary {
    border: 1px solid #6cbde8;
    background-color: #6cbde8;
    color: #000;
}

.cookie-consent-buttons .consent-btn.customize {
    border: 1px solid #777;
    background-color: #555;
    color: #fff;
    padding: 6px 12px;
    font-size: 0.85rem;
    flex-grow: 1;
}

.cookie-consent-buttons .consent-btn.reject-all {
    border: 1px solid #777;
    background-color: #777;
    color: #fff;
    padding: 6px 12px;
    font-size: 0.85rem;
    opacity: 0.85;
    flex-grow: 1;
}

/* Default theme styles (kasimdev) */
.cookie-consent-banner.default {
    background-color: #343a40;
    color: #fff;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.cookie-consent-banner.default h3 {
    font-weight: 600;
    font-size: 1.25rem;
    color: #fff;
}

.cookie-consent-banner.default p {
    font-size: 0.95rem;
}

.cookie-consent-banner.default a {
    color: #17a2b8;
    text-decoration: none;
    transition: color 0.15s ease-in-out;
}

.cookie-consent-banner.default a:hover {
    color: #138496;
    text-decoration: underline;
}

.cookie-consent-banner.default .consent-btn {
    background-color: #6c757d;
    color: white;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.375rem 0.75rem;
    border-radius: 0.25rem;
    transition: background-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.cookie-consent-banner.default .consent-btn.accept-all {
    background-color: #28a745;
}

.cookie-consent-banner.default .consent-btn.accept-necessary {
    background-color: #17a2b8;
}

.cookie-consent-banner.default .consent-btn.reject-all {
    background-color: #6c757d;
}

.cookie-consent-banner.default .consent-btn.customize {
    background-color: #6c757d;
}

.cookie-consent-banner.default .consent-btn:hover {
    opacity: 0.9;
    box-shadow: 0 0 0 0.2rem rgba(108, 117, 125, 0.25);
}

.cookie-consent-banner.default .consent-btn.accept-all:hover {
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);
}

.cookie-consent-banner.default .consent-btn.accept-necessary:hover {
    box-shadow: 0 0 0 0.2rem rgba(23, 162, 184, 0.25);
}

/* Cyber theme styles */
.cookie-consent-banner.cyber {
    background-color: #000000;                   /* solid black */
    color: #00aaff;                              /* terminal text color */
    border-top: 1px solid #0088cc;               /* template accent */
    font-family: "Courier New", monospace;
    box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.7);
    text-shadow: 0 0 5px rgba(0, 170, 255, 0.5);
}

.cookie-consent-banner.cyber h3 {
    color: #00aaff;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: bold;
    font-size: 1.2rem;
    margin: 0 0 10px;
}

.cookie-consent-banner.cyber p {
    font-size: 0.95rem;
    line-height: 1.5;
    color: rgb(211, 211, 211);
}

.cookie-consent-banner.cyber a {
    color: #0088cc;
    text-decoration: underline;
    transition: color 0.2s;
}

.cookie-consent-banner.cyber a:hover {
    color: #00aaff;
    text-shadow: 0 0 8px rgba(0, 170, 255, 0.8);
}

.cookie-consent-banner.cyber .consent-btn {
    background-color: #111111;
    color: #00aaff;
    border: 1px solid #0088cc;
    font-family: "Courier New", monospace;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem;
    padding: 8px 16px;
    margin: 5px;
    transition: background 0.2s, box-shadow 0.2s;
}

.cookie-consent-banner.cyber .consent-btn:hover {
    background-color: #222222;
    box-shadow: 0 0 8px rgba(0, 136, 204, 0.7);
    transform: translateY(-2px);
}

.cookie-consent-banner.cyber .consent-btn.accept-all {
    background-color: #0088cc;
    border-color: #0088cc;
    color: #ffffff;
}

.cookie-consent-banner.cyber .consent-btn.accept-necessary {
    background-color: #6cbde8;
    border-color: #6cbde8;
    color: #000000;
}

.cookie-consent-banner.cyber .consent-btn.reject-all {
    background-color: #777777;
    border-color: #777777;
    color: #ffffff;
}

.cookie-consent-banner.cyber .consent-btn.customize {
    background-color: #777777;
    border-color: #777777;
    color: #ffffff;
}


/* Responsive styles */
@media (max-width: 768px) {
    .cookie-consent-content {
        flex-direction: column;
    }
    .cookie-consent-content h3 {
        text-align: center;
        margin-bottom: 5px;
    }
    .cookie-consent-buttons {
        justify-content: center;
    }
    .cookie-consent-buttons .consent-btn {
        flex: 1 1 auto;
        text-align: center;
        padding: 6px 12px;
        font-size: 0.8rem;
    }
    .cookie-consent-buttons .consent-btn.accept-all {
        font-size: 0.85rem;
        flex-grow: 1.2;
    }
    .cookie-consent-buttons .consent-btn.customize,
    .cookie-consent-buttons .consent-btn.reject-all {
        font-size: 0.75rem;
        flex-grow: 1;
    }
    .cookie-consent-banner {
        padding: 10px;
    }
    .cookie-consent-content p {
        font-size: 0.85rem;
    }
}

@media (min-width: 769px) {
    .cookie-consent-content {
        flex-direction: row;
        align-items: center;
    }
    .cookie-consent-content h3 {
        margin-right: 15px;
    }
    .cookie-consent-content p {
        flex: 1;
    }
    .cookie-consent-buttons {
        margin-left: 15px;
    }
}

@media (min-width: 769px) and (max-width: 992px) {
    .cookie-consent-content {
        flex-direction: column;
        align-items: center;
    }
    .cookie-consent-buttons {
        margin-left: 0;
        margin-top: 10px;
        justify-content: center;
    }
    .cookie-consent-content h3 {
        margin-right: 0;
        margin-bottom: 5px;
    }
}

/* Modal for cookie customization */
.cookie-consent-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.75);
    z-index: 1001;
}

.cookie-consent-modal-content {
    background: #fff;
    color: #000;
    padding: 20px;
    max-width: 400px;
    width: 90%;
    border-radius: 4px;
}

.cookie-consent-modal-content h3 {
    margin-top: 0;
    margin-bottom: 10px;
}

.cookie-consent-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 15px;
}

.cookie-consent-modal-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}
