/* ======================================================
   COOKIE CONSENT STYLES
   Custom cookie consent banner and modal matching site theme
====================================================== */

/* Cookie Consent Banner */
.cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    border-top: 3px solid #A0893F;
    box-shadow: 0 -4px 20px rgba(160, 137, 63, 0.2);
    z-index: 999999;
    padding: 25px 20px;
    animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

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

.cookie-consent-content {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.cookie-icon {
    font-size: 48px;
    color: #A0893F;
    animation: rotate 2s ease-in-out infinite;
    flex-shrink: 0;
}

@keyframes rotate {
    0%, 100% {
        transform: rotate(0deg);
    }
    25% {
        transform: rotate(-10deg);
    }
    75% {
        transform: rotate(10deg);
    }
}

.cookie-text {
    flex: 1;
}

.cookie-title {
    color: #FFFFFF;
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 10px 0;
    font-family: 'Montserrat', sans-serif;
}

.cookie-description {
    color: #DDDDDD;
    font-size: 15px;
    line-height: 1.6;
    margin: 0;
    font-family: 'Montserrat', sans-serif;
}

.cookie-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.cookie-btn {
    padding: 12px 28px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.cookie-btn i {
    font-size: 16px;
}

.cookie-btn-accept {
    background: linear-gradient(135deg, #A0893F 0%, #C4A957 100%);
    color: #FFFFFF;
    box-shadow: 0 4px 15px rgba(160, 137, 63, 0.3);
}

.cookie-btn-accept:hover {
    background: linear-gradient(135deg, #C4A957 0%, #A0893F 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(160, 137, 63, 0.5);
}

.cookie-btn-necessary {
    background: #3a3a3a;
    color: #FFFFFF;
    border: 2px solid #646464;
}

.cookie-btn-necessary:hover {
    background: #4a4a4a;
    border-color: #A0893F;
    transform: translateY(-2px);
}

.cookie-btn-settings {
    background: transparent;
    color: #DDDDDD;
    border: 2px solid #646464;
}

.cookie-btn-settings:hover {
    background: rgba(160, 137, 63, 0.1);
    border-color: #A0893F;
    color: #A0893F;
    transform: translateY(-2px);
}

/* Cookie Settings Modal */
.cookie-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

.cookie-modal-content {
    position: relative;
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    border: 2px solid #A0893F;
    border-radius: 16px;
    max-width: 700px;
    width: 100%;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 40px rgba(160, 137, 63, 0.3);
    animation: slideDown 0.4s ease-out;
}

@keyframes slideDown {
    from {
        transform: translateY(-50px) scale(0.9);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.cookie-modal-header {
    padding: 25px 30px;
    border-bottom: 2px solid rgba(160, 137, 63, 0.3);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cookie-modal-title {
    color: #FFFFFF;
    font-size: 24px;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'Montserrat', sans-serif;
}

.cookie-modal-title i {
    color: #A0893F;
    font-size: 28px;
}

.cookie-modal-close {
    background: transparent;
    border: none;
    color: #DDDDDD;
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.cookie-modal-close:hover {
    background: rgba(160, 137, 63, 0.2);
    color: #A0893F;
    transform: rotate(90deg);
}

.cookie-modal-body {
    padding: 30px;
    overflow-y: auto;
    flex: 1;
}

.cookie-modal-body::-webkit-scrollbar {
    width: 8px;
}

.cookie-modal-body::-webkit-scrollbar-track {
    background: #1a1a1a;
    border-radius: 4px;
}

.cookie-modal-body::-webkit-scrollbar-thumb {
    background: #A0893F;
    border-radius: 4px;
}

.cookie-modal-body::-webkit-scrollbar-thumb:hover {
    background: #C4A957;
}

.cookie-modal-intro {
    color: #DDDDDD;
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 25px;
    font-family: 'Montserrat', sans-serif;
}

.cookie-modal-intro a {
    color: #A0893F;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.cookie-modal-intro a:hover {
    color: #C4A957;
}

.cookie-category {
    background: rgba(42, 42, 42, 0.5);
    border: 1px solid rgba(160, 137, 63, 0.2);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 18px;
    transition: all 0.3s ease;
}

.cookie-category:hover {
    border-color: rgba(160, 137, 63, 0.5);
    background: rgba(42, 42, 42, 0.7);
}

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

.cookie-category-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.cookie-category-title i {
    color: #A0893F;
    font-size: 20px;
}

.cookie-category-title h5 {
    color: #FFFFFF;
    font-size: 17px;
    font-weight: 600;
    margin: 0;
    font-family: 'Montserrat', sans-serif;
}

.cookie-category-desc {
    color: #DDDDDD;
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
    padding-left: 32px;
    font-family: 'Montserrat', sans-serif;
}

/* Cookie Toggle Switch */
.cookie-switch {
    position: relative;
    display: inline-block;
    width: 56px;
    height: 28px;
    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: #4a4a4a;
    transition: 0.4s;
    border-radius: 28px;
    border: 2px solid #646464;
}

.cookie-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 2px;
    bottom: 2px;
    background-color: #DDDDDD;
    transition: 0.4s;
    border-radius: 50%;
}

input:checked + .cookie-slider {
    background-color: #A0893F;
    border-color: #C4A957;
}

input:checked + .cookie-slider:before {
    transform: translateX(28px);
    background-color: #FFFFFF;
}

.cookie-slider-disabled {
    opacity: 0.6;
    cursor: not-allowed !important;
}

.cookie-slider-disabled:before {
    background-color: #A0893F;
}

.cookie-modal-footer {
    padding: 25px 30px;
    border-top: 2px solid rgba(160, 137, 63, 0.3);
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.cookie-btn-save {
    background: transparent;
    color: #FFFFFF;
    border: 2px solid #A0893F;
}

.cookie-btn-save:hover {
    background: rgba(160, 137, 63, 0.2);
    border-color: #C4A957;
    transform: translateY(-2px);
}

.cookie-btn-accept-modal {
    background: linear-gradient(135deg, #A0893F 0%, #C4A957 100%);
    color: #FFFFFF;
    box-shadow: 0 4px 15px rgba(160, 137, 63, 0.3);
}

.cookie-btn-accept-modal:hover {
    background: linear-gradient(135deg, #C4A957 0%, #A0893F 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(160, 137, 63, 0.5);
}

/* Responsive Design */
@media (max-width: 768px) {
    .cookie-consent-banner {
        padding: 20px 15px;
    }

    .cookie-consent-content {
        flex-direction: column;
        gap: 15px;
    }

    .cookie-icon {
        font-size: 36px;
    }

    .cookie-title {
        font-size: 18px;
    }

    .cookie-description {
        font-size: 14px;
    }

    .cookie-actions {
        flex-direction: column;
    }

    .cookie-btn {
        width: 100%;
        justify-content: center;
        padding: 14px 20px;
    }

    .cookie-modal-content {
        max-height: 90vh;
        margin: 10px;
    }

    .cookie-modal-header,
    .cookie-modal-body,
    .cookie-modal-footer {
        padding: 20px;
    }

    .cookie-modal-title {
        font-size: 20px;
    }

    .cookie-category {
        padding: 15px;
    }

    .cookie-category-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

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

    .cookie-btn-save,
    .cookie-btn-accept-modal {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .cookie-title {
        font-size: 16px;
    }

    .cookie-description {
        font-size: 13px;
    }

    .cookie-modal-title {
        font-size: 18px;
    }

    .cookie-modal-title i {
        font-size: 22px;
    }

    .cookie-category-title h5 {
        font-size: 15px;
    }

    .cookie-category-desc {
        font-size: 13px;
        padding-left: 0;
    }
}

/* Print styles - hide cookie banner when printing */
@media print {
    .cookie-consent-banner,
    .cookie-modal {
        display: none !important;
    }
}

