/**
 * Cookie Consent Styles
 * Brand Colors: Terrakotta #c4623a, Orange #F8962B, Teal #207A9C
 */

/* Banner Container */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: linear-gradient(135deg, #fff 0%, #fef8f5 100%);
    box-shadow: 0 -4px 30px rgba(196, 98, 58, 0.2);
    border-top: 3px solid #c4623a;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

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

.cookie-banner-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem 2rem;
}

/* Header */
.cookie-banner-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.cookie-banner-header::before {
    content: '🍪';
    font-size: 1.5rem;
}

.cookie-banner-header h3 {
    font-size: 1.25rem;
    font-weight: 700;
    background: linear-gradient(135deg, #c4623a, #d4734c);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
}

/* Message */
.cookie-banner-message {
    color: var(--color-gray-600, #4b5563);
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0 0 1.25rem 0;
}

/* Options */
.cookie-options {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.cookie-option {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    background: 
        linear-gradient(135deg, rgba(255,255,255,0.95) 0%, rgba(254,248,245,0.9) 100%),
        url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23c4623a' fill-opacity='0.08'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    border: 1px solid #e8e0dc;
    border-radius: 16px;
    cursor: pointer;
    flex: 1;
    min-width: 200px;
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
}

.cookie-option::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #c4623a, #d4734c, #F8962B);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.cookie-option:hover {
    border-color: #d4734c;
    box-shadow: 0 8px 25px rgba(196, 98, 58, 0.2);
    transform: translateY(-3px);
}

.cookie-option:hover::before {
    opacity: 1;
}

.cookie-option input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    accent-color: #c4623a;
    cursor: pointer;
}

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

.cookie-option-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.cookie-option-info strong {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-gray-800, #1f2937);
}

.cookie-option-info small {
    font-size: 0.8rem;
    color: var(--color-gray-500, #6b7280);
    line-height: 1.4;
}

/* Actions */
.cookie-banner-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: flex-end;
}

.cookie-btn {
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.cookie-btn-primary {
    background: linear-gradient(135deg, #c4623a, #d4734c);
    color: white;
    box-shadow: 0 4px 15px rgba(196, 98, 58, 0.3);
}

.cookie-btn-primary:hover {
    background: linear-gradient(135deg, #b55a34, #c4623a);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(196, 98, 58, 0.4);
}

.cookie-btn-secondary {
    background: var(--color-white, #ffffff);
    color: #c4623a;
    border: 2px solid #c4623a;
}

.cookie-btn-secondary:hover {
    background: #fef5f0;
    color: #b55a34;
}

/* Footer */
.cookie-banner-footer {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--color-gray-200, #e5e7eb);
    text-align: center;
}

.cookie-banner-footer a {
    color: var(--color-primary, #F8962B);
    font-size: 0.9rem;
    text-decoration: underline;
}

.cookie-banner-footer a:hover {
    text-decoration: none;
}

/* Settings Button (nach Consent) */
.cookie-settings-btn {
    position: fixed;
    bottom: 1rem;
    left: 1rem;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, #c4623a, #d4734c);
    border: none;
    box-shadow: 0 4px 15px rgba(196, 98, 58, 0.35);
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 9998;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cookie-settings-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

/* Responsive */
@media (max-width: 768px) {
    .cookie-banner-content {
        padding: 1.25rem 1rem;
    }
    
    .cookie-options {
        flex-direction: column;
    }
    
    .cookie-option {
        min-width: auto;
    }
    
    .cookie-banner-actions {
        flex-direction: column;
    }
    
    .cookie-btn {
        width: 100%;
        text-align: center;
    }
}
