/**
 * 3:75 Diseño y Arquitectura - Cookie Consent Banner Styles
 * GDPR/RGPD Compliant Cookie Banner
 */

/* Cookie Banner Container */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #ffffff;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    z-index: 999999;
    transform: translateY(100%);
    transition: transform 0.3s ease-in-out;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    max-height: 90vh;
    overflow-y: auto;
}

.cookie-banner-visible {
    transform: translateY(0);
}

/* Banner Content */
.cookie-banner-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
    justify-content: space-between;
}

.cookie-banner-text {
    flex: 1;
    min-width: 300px;
}

.cookie-banner-title {
    margin: 0 0 10px 0;
    font-size: 1.3em;
    font-weight: 600;
    color: #2c3e50;
}

.cookie-banner-description {
    margin: 0 0 10px 0;
    font-size: 0.95em;
    line-height: 1.5;
    color: #555;
}

.cookie-banner-links {
    margin: 0;
    font-size: 0.85em;
}

.cookie-banner-links a {
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
}

.cookie-banner-links a:hover {
    text-decoration: underline;
}

/* Banner Actions */
.cookie-banner-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

/* Cookie Buttons */
.cookie-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 0.95em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    font-family: inherit;
}

.cookie-btn-primary {
    background: #e74c3c;
    color: white;
}

.cookie-btn-primary:hover {
    background: #c0392b;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.3);
}

.cookie-btn-secondary {
    background: #ecf0f1;
    color: #2c3e50;
}

.cookie-btn-secondary:hover {
    background: #bdc3c7;
}

.cookie-btn-text {
    background: transparent;
    color: #3498db;
    border: 2px solid #3498db;
}

.cookie-btn-text:hover {
    background: #3498db;
    color: white;
}

/* Customize Panel */
.cookie-customize-panel {
    padding: 24px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.cookie-customize-title {
    margin: 0 0 20px 0;
    font-size: 1.2em;
    font-weight: 600;
    color: #2c3e50;
}

/* Cookie Categories */
.cookie-category {
    background: #f8f9fa;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 15px;
}

.cookie-category-header {
    margin-bottom: 8px;
}

.cookie-category-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    user-select: none;
}

.cookie-category-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.cookie-category-label input[type="checkbox"]:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

.cookie-category-desc {
    margin: 0;
    font-size: 0.9em;
    color: #666;
    line-height: 1.5;
    padding-left: 30px;
}

/* Customize Actions */
.cookie-customize-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #ddd;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .cookie-banner-content {
        flex-direction: column;
        align-items: stretch;
        padding: 20px 15px;
    }

    .cookie-banner-text {
        min-width: 100%;
    }

    .cookie-banner-title {
        font-size: 1.1em;
    }

    .cookie-banner-description {
        font-size: 0.9em;
    }

    .cookie-banner-actions {
        flex-direction: column;
        width: 100%;
    }

    .cookie-btn {
        width: 100%;
        padding: 14px 20px;
    }

    .cookie-customize-actions {
        flex-direction: column;
    }

    .cookie-customize-actions .cookie-btn {
        width: 100%;
    }

    .cookie-category-desc {
        padding-left: 0;
        margin-top: 8px;
    }
}

@media (max-width: 480px) {
    .cookie-banner {
        max-height: 95vh;
    }

    .cookie-banner-content,
    .cookie-customize-panel {
        padding: 15px 12px;
    }

    .cookie-banner-title {
        font-size: 1em;
    }

    .cookie-banner-description {
        font-size: 0.85em;
    }

    .cookie-btn {
        font-size: 0.9em;
        padding: 12px 16px;
    }
}

/* Accessibility */
.cookie-btn:focus {
    outline: 3px solid #3498db;
    outline-offset: 2px;
}

.cookie-category-label:focus-within {
    outline: 2px solid #3498db;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Print - hide banner */
@media print {
    .cookie-banner {
        display: none !important;
    }
}

/* Animation */
@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

.cookie-banner-visible {
    animation: slideUp 0.3s ease-out forwards;
}
