/**
 * Jahaz Cookie Consent Banner Styles
 *
 * Clean, unobtrusive design that matches Jahaz brand.
 * Mobile-responsive with smooth animations.
 */

/* Banner container */
.cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: white;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
    border-top: 1px solid #e5e7eb;
    padding: 1rem;
    transform: translateY(100%);
    opacity: 0;
    transition: transform 0.3s ease-out, opacity 0.3s ease-out;
}

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

/* Content wrapper */
.cookie-consent-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

/* Text section */
.cookie-consent-text {
    flex: 1;
    min-width: 280px;
}

.cookie-consent-title {
    font-size: 1rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 0.5rem 0;
}

.cookie-consent-description {
    font-size: 0.875rem;
    color: #6b7280;
    margin: 0 0 0.5rem 0;
    line-height: 1.5;
}

.cookie-consent-link {
    font-size: 0.8125rem;
    color: #4f46e5;
    text-decoration: none;
    font-weight: 500;
}

.cookie-consent-link:hover {
    text-decoration: underline;
}

/* Buttons */
.cookie-consent-actions {
    display: flex;
    gap: 0.75rem;
    flex-shrink: 0;
}

.cookie-btn {
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.15s ease;
    border: none;
    white-space: nowrap;
}

/* Accept All button - primary action */
.cookie-btn-accept {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: white;
    box-shadow: 0 2px 8px rgba(79, 70, 229, 0.3);
}

.cookie-btn-accept:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.4);
}

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

/* Essential Only button - secondary action */
.cookie-btn-essential {
    background: white;
    color: #374151;
    border: 2px solid #e5e7eb;
}

.cookie-btn-essential:hover {
    border-color: #d1d5db;
    background: #f9fafb;
}

/* Mobile responsive */
@media (max-width: 640px) {
    .cookie-consent-banner {
        padding: 1rem;
    }

    .cookie-consent-content {
        flex-direction: column;
        text-align: center;
    }

    .cookie-consent-text {
        min-width: auto;
    }

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

    .cookie-btn {
        width: 100%;
        padding: 0.75rem 1rem;
    }
}

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

    .cookie-btn-essential {
        border: 2px solid #000;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .cookie-consent-banner {
        transition: none;
    }

    .cookie-btn {
        transition: none;
    }
}

/* Dark mode support (if Jahaz adds dark mode later) */
@media (prefers-color-scheme: dark) {
    /* Uncomment when dark mode is implemented
    .cookie-consent-banner {
        background: #1f2937;
        border-top-color: #374151;
    }

    .cookie-consent-title {
        color: #f9fafb;
    }

    .cookie-consent-description {
        color: #9ca3af;
    }

    .cookie-btn-essential {
        background: #374151;
        color: #f9fafb;
        border-color: #4b5563;
    }
    */
}
