/**
 * Cookie Consent Styles
 * File: css/cookie-consent.css
 */

.cookie-consent-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    font-family: 'Prompt', sans-serif;
}

.cookie-consent-modal.show {
    opacity: 1;
    visibility: visible;
}

.cookie-consent-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
     z-index: 1;
}

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

.cookie-consent-content {
    background: white;
    border-radius: 16px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    width: 80%;
    max-width: 500px;
    max-height: 85vh;
    overflow: hidden;
    position: relative;
    transform: translateY(50px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 1px solid #f1f5f9;
    z-index: 2;
}

.cookie-consent-modal.show .cookie-consent-content {
    transform: translateY(0) scale(1);
}

.cookie-consent-header {
    padding: 1.5rem 1.5rem 1.25rem;
    text-align: center;
    border-bottom: 1px solid #e2e8f0;
    background: linear-gradient(135deg, #fee2e2 0%, #fef3c7 100%);
    position: relative;
    overflow: hidden;
}

.cookie-consent-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="%23EF5A52" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="%23EF5A52" opacity="0.1"/><circle cx="50" cy="10" r="1" fill="%23EF5A52" opacity="0.1"/><circle cx="10" cy="50" r="1" fill="%23EF5A52" opacity="0.1"/><circle cx="90" cy="30" r="1" fill="%23EF5A52" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.cookie-icon {
    font-size: 2.5rem;
    color: #EF5A52;
    margin-bottom: 0.75rem;
    animation: bounce 2s infinite;
    position: relative;
    z-index: 1;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

.cookie-consent-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2d3748;
    margin: 0;
    position: relative;
    z-index: 1;
}

.cookie-consent-body {
    padding: 1.25rem;
    max-height: 50vh;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #EF5A52 #f1f5f9;
}

.cookie-consent-body::-webkit-scrollbar {
    width: 6px;
}

.cookie-consent-body::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 3px;
}

.cookie-consent-body::-webkit-scrollbar-thumb {
    background: #EF5A52;
    border-radius: 3px;
}

.cookie-description {
    text-align: center;
    color: #718096;
    margin-bottom: 1.25rem;
    line-height: 1.6;
    font-size: 0.95rem;
}

.cookie-tabs {
    display: flex;
    border-bottom: 2px solid #e2e8f0;
    margin-bottom: 1.25rem;
    background: #f8fafc;
    border-radius: 8px 8px 0 0;
    overflow: hidden;
}

.cookie-tab {
    flex: 1;
    padding: 0.9rem 0.75rem;
    border: none;
    background: transparent;
    cursor: pointer;
    font-weight: 600;
    color: #718096;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    position: relative;
    font-size: 0.85rem;
}

.cookie-tab:hover {
    color: #EF5A52;
    background: rgba(239, 90, 82, 0.05);
}

.cookie-tab.active {
    color: #EF5A52;
    background: white;
    border-bottom-color: #EF5A52;
    box-shadow: 0 -2px 10px rgba(239, 90, 82, 0.1);
}

.cookie-tab-content {
    min-height: 150px;
    background: white;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.cookie-tab-panel {
    display: none;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cookie-tab-panel.active {
    display: block;
}

.cookie-tab-panel h4 {
    color: #2d3748;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.cookie-tab-panel p {
    color: #718096;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.cookie-toggle {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1.5rem;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.cookie-toggle:hover {
    background: #f1f5f9;
    border-color: #EF5A52;
}

.cookie-toggle input[type="checkbox"] {
    width: 22px;
    height: 22px;
    accent-color: #EF5A52;
    cursor: pointer;
    transform: scale(1.2);
}

.cookie-toggle input[type="checkbox"]:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.cookie-toggle label {
    font-weight: 600;
    color: #2d3748;
    cursor: pointer;
    font-size: 1rem;
    user-select: none;
}

.cookie-toggle input[type="checkbox"]:disabled + label {
    cursor: not-allowed;
    opacity: 0.6;
}

.cookie-consent-footer {
    padding: 2rem;
    border-top: 1px solid #e2e8f0;
    background: #f8fafc;
}

.cookie-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.cookie-links a {
    color: #EF5A52;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    border: 1px solid transparent;
}

.cookie-links a:hover {
    background: rgba(239, 90, 82, 0.1);
    border-color: #EF5A52;
    transform: translateY(-2px);
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cookie-btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    min-width: 140px;
    position: relative;
    overflow: hidden;
}

.cookie-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.cookie-btn:hover::before {
    left: 100%;
}

.cookie-btn-primary {
    background: linear-gradient(135deg, #EF5A52, #FF6B61);
    color: white;
    box-shadow: 0 4px 15px rgba(239, 90, 82, 0.3);
}

.cookie-btn-primary:hover {
    background: linear-gradient(135deg, #e53e3e, #EF5A52);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(239, 90, 82, 0.4);
}

.cookie-btn-secondary {
    background: #e2e8f0;
    color: #2d3748;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.cookie-btn-secondary:hover {
    background: #cbd5e0;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.cookie-btn-success {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.cookie-btn-success:hover {
    background: linear-gradient(135deg, #059669, #047857);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
}

.cookie-settings-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: linear-gradient(135deg, #EF5A52, #FF6B61);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 50px;
    box-shadow: 0 4px 20px rgba(239, 90, 82, 0.3);
    cursor: pointer;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    font-weight: 600;
    user-select: none;
    border: 2px solid transparent;
}

.cookie-settings-btn:hover {
    background: linear-gradient(135deg, #e53e3e, #EF5A52);
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(239, 90, 82, 0.4);
    border-color: rgba(255, 255, 255, 0.3);
}

.cookie-settings-btn:active {
    transform: translateY(-2px);
}

.cookie-settings-btn i {
    animation: spin 2s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.cookie-settings-btn:hover i {
    animation-duration: 0.5s;
}

.cookie-notification {
    position: fixed;
    top: 2rem;
    right: 2rem;
    background: white;
    padding: 1.25rem 1.75rem;
    border-radius: 12px;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.15);
    z-index: 10001;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transform: translateX(100%);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    max-width: 350px;
    border: 1px solid #f1f5f9;
}

.cookie-notification.show {
    transform: translateX(0);
}

.cookie-notification-success {
    border-left: 4px solid #10b981;
    color: #065f46;
    background: linear-gradient(135deg, #ecfdf5, #f0fdf4);
}

.cookie-notification-success i {
    color: #10b981;
}

.cookie-notification-info {
    border-left: 4px solid #3b82f6;
    color: #1e40af;
    background: linear-gradient(135deg, #eff6ff, #f0f9ff);
}

.cookie-notification-info i {
    color: #3b82f6;
}

.cookie-notification i {
    font-size: 1.3rem;
    animation: pulse 1s ease-in-out;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.cookie-notification span {
    font-weight: 500;
    line-height: 1.4;
}

/* Responsive Design */
@media (max-width: 768px) {
    .cookie-consent-content {
        width: 95%;
        max-height: 95vh;
        border-radius: 16px;
    }
    
    .cookie-consent-header {
        padding: 2rem 1.5rem 1.5rem;
    }
    
    .cookie-icon {
        font-size: 2.5rem;
    }
    
    .cookie-consent-header h3 {
        font-size: 1.5rem;
    }
    
    .cookie-consent-body {
        padding: 1.5rem;
    }
    
    .cookie-description {
        font-size: 1rem;
    }
    
    .cookie-tabs {
        flex-direction: column;
        border-radius: 8px;
    }
    
    .cookie-tab {
        text-align: left;
        padding: 1rem;
        border-bottom: 1px solid #e2e8f0;
        border-right: none;
    }
    
    .cookie-tab:last-child {
        border-bottom: none;
    }
    
    .cookie-tab.active {
        border-bottom-color: #e2e8f0;
    }
    
    .cookie-tab-content {
        padding: 1rem;
    }
    
    .cookie-tab-panel h4 {
        font-size: 1.2rem;
    }
    
    .cookie-consent-footer {
        padding: 1.5rem;
    }
    
    .cookie-links {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .cookie-buttons {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .cookie-btn {
        width: 100%;
        padding: 1rem;
        min-width: auto;
    }
    
    .cookie-settings-btn {
        bottom: 1rem;
        right: 1rem;
        left: 1rem;
        border-radius: 16px;
        justify-content: center;
    }
    
    .cookie-notification {
        top: 1rem;
        right: 1rem;
        left: 1rem;
        max-width: none;
    }
}

/* Tablet Design */
@media (max-width: 1024px) and (min-width: 769px) {
    .cookie-consent-content {
        width: 90%;
        max-width: 700px;
        border-radius: 18px;
    }
    
    .cookie-consent-header {
        padding: 2.25rem 1.75rem 1.75rem;
    }
    
    .cookie-icon {
        font-size: 3rem;
    }
    
    .cookie-consent-header h3 {
        font-size: 1.6rem;
    }
    
    .cookie-consent-body {
        padding: 1.75rem;
    }
    
    .cookie-description {
        font-size: 1.05rem;
    }
    
    .cookie-tabs {
        border-radius: 10px 10px 0 0;
    }
    
    .cookie-tab {
        padding: 1.1rem 0.9rem;
        font-size: 0.9rem;
    }
    
    .cookie-tab-content {
        padding: 1.25rem;
    }
    
    .cookie-tab-panel h4 {
        font-size: 1.25rem;
    }
    
    .cookie-consent-footer {
        padding: 1.75rem;
    }
    
    .cookie-links {
        gap: 1.5rem;
        margin-bottom: 1.75rem;
    }
    
    .cookie-buttons {
        gap: 0.9rem;
    }
    
    .cookie-btn {
        padding: 0.95rem 1.75rem;
        min-width: 130px;
        font-size: 0.92rem;
    }
    
    .cookie-settings-btn {
        bottom: 1.5rem;
        right: 1.5rem;
        padding: 0.95rem 1.4rem;
        font-size: 0.85rem;
    }
    
    .cookie-notification {
        top: 1.5rem;
        right: 1.5rem;
        max-width: 320px;
        padding: 1.1rem 1.6rem;
    }
    
    .cookie-toggle {
        padding: 0.9rem;
    }
}

@media (max-width: 480px) {
    .cookie-consent-content {
        width: 98%;
        margin: 1rem;
    }
    
    .cookie-consent-header {
        padding: 1.5rem 1rem;
    }
    
    .cookie-icon {
        font-size: 2rem;
    }
    
    .cookie-consent-header h3 {
        font-size: 1.3rem;
    }
    
    .cookie-consent-body {
        padding: 1rem;
    }
    
    .cookie-tab-content {
        padding: 0.75rem;
    }
    
    .cookie-consent-footer {
        padding: 1rem;
    }
    
    .cookie-toggle {
        padding: 0.75rem;
    }
    
    .cookie-btn {
        padding: 0.875rem;
        font-size: 0.9rem;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .cookie-consent-content {
        border: 2px solid #000;
    }
    
    .cookie-btn {
        border: 2px solid currentColor;
    }
    
    .cookie-toggle {
        border: 2px solid currentColor;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .cookie-consent-modal,
    .cookie-consent-content,
    .cookie-notification,
    .cookie-btn,
    .cookie-tab,
    .cookie-toggle {
        transition: none;
    }
    
    .cookie-icon {
        animation: none;
    }
    
    .cookie-settings-btn i {
        animation: none;
    }
    
    .cookie-notification i {
        animation: none;
    }
}