/**
 * Cookie Consent Banner Styles
 * Professional, elegant design for legal/business website
 */

.cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10000;
    background: linear-gradient(135deg, #1a1f35 0%, #2d3748 100%);
    border-top: 3px solid #d4af37;
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.4);
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    padding: 0;
}

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

.cookie-consent-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 32px 24px;
    color: #f7fafc;
}

.cookie-content {
    text-align: center;
}

.cookie-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 16px;
}

.cookie-icon {
    font-size: 40px;
    filter: grayscale(20%);
}

.cookie-header h3 {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.5px;
}

.cookie-description {
    margin: 0 0 24px 0;
    font-size: 16px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.cookie-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.cookie-actions button {
    padding: 14px 28px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-family: inherit;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 14px;
}

.btn-primary {
    background: linear-gradient(135deg, #d4af37 0%, #c4941f 100%);
    color: #1a1f35;
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
    font-weight: 700;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.5);
    background: linear-gradient(135deg, #e5c158 0%, #d4af37 100%);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

.btn-link {
    background: transparent;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    padding: 14px 20px;
    text-transform: none;
    letter-spacing: 0;
    font-size: 14px;
}

.btn-link:hover {
    color: #d4af37;
    text-decoration: underline;
}

.cookie-policy-link {
    display: inline-block;
    color: #d4af37;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    margin-top: 8px;
    transition: color 0.3s ease;
}

.cookie-policy-link:hover {
    color: #e5c158;
    text-decoration: underline;
}

/* Settings Panel */
.cookie-settings {
    text-align: left;
}

.cookie-settings .cookie-header {
    justify-content: flex-start;
    border-bottom: 2px solid rgba(212, 175, 55, 0.3);
    padding-bottom: 16px;
    margin-bottom: 24px;
}

.cookie-option {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 16px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.cookie-option:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(212, 175, 55, 0.3);
}

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

.cookie-option strong {
    display: block;
    font-size: 16px;
    margin-bottom: 4px;
    color: #ffffff;
}

.cookie-option-desc {
    margin: 0;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.5;
}

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

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

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.2);
    transition: 0.4s;
    border-radius: 30px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

input:checked + .slider {
    background: linear-gradient(135deg, #d4af37 0%, #c4941f 100%);
}

input:checked + .slider:before {
    transform: translateX(26px);
}

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

/* Professional Badge */
.cookie-header::after {
    content: '⚖️';
    font-size: 24px;
    opacity: 0.6;
    margin-left: auto;
}

.cookie-settings .cookie-header::after {
    content: '';
}

/* Responsive Design */
@media (max-width: 768px) {
    .cookie-consent-container {
        padding: 24px 16px;
    }

    .cookie-header h3 {
        font-size: 20px;
    }

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

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

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

    .cookie-actions button {
        width: 100%;
        padding: 12px 24px;
    }

    .cookie-option-header {
        flex-direction: column;
        gap: 12px;
    }

    .cookie-switch {
        align-self: flex-start;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    .cookie-consent-banner,
    .cookie-actions button,
    .slider,
    .slider:before,
    .cookie-option {
        transition: none;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .cookie-consent-banner {
        background: #000;
        border-top: 4px solid #d4af37;
    }

    .btn-primary {
        background: #d4af37;
        border: 2px solid #fff;
        color: #000;
    }

    .btn-secondary {
        background: transparent;
        border: 3px solid #fff;
    }

    .cookie-option {
        border: 2px solid rgba(255, 255, 255, 0.3);
    }
}

/* Focus styles for accessibility */
.cookie-actions button:focus,
.cookie-switch input:focus + .slider {
    outline: 3px solid #d4af37;
    outline-offset: 2px;
}

/* Professional gradient effect on hover */
.cookie-consent-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg,
        transparent 0%,
        #d4af37 25%,
        #d4af37 75%,
        transparent 100%
    );
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% {
        opacity: 0.5;
    }
    50% {
        opacity: 1;
    }
}
