/**
 * BICO Cookie Consent Styles
 * Based on pixelbrackets/cookie-consent approach
 */

/* Cookie Consent Banner */
.cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 99999;
    background: #FFFFFF;
    border-top: 3px solid #E31E24;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    transform: translateY(100%);
    transition: transform 0.3s ease;
    font-family: 'Source Sans Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

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

.cookie-consent-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 25px 30px;
}

.cookie-consent-header h3 {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    font-style: normal;
    color: #333333;
    margin: 0 0 15px 0;
    text-transform: uppercase;
}

.cookie-consent-body p {
    font-size: 0.95rem;
    color: #555555;
    margin: 0 0 20px 0;
    line-height: 1.6;
}

/* Cookie Options */
.cookie-consent-options {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
}

.cookie-option {
    display: flex;
    flex-direction: column;
    background: #F5F5F5;
    padding: 12px 15px;
    border-radius: 6px;
    cursor: pointer;
    flex: 1;
    min-width: 200px;
    border: 2px solid transparent;
    transition: border-color 0.2s ease;
}

.cookie-option:hover {
    border-color: #E31E24;
}

.cookie-option input[type="checkbox"] {
    position: absolute;
    opacity: 0;
}

.cookie-option input[type="checkbox"]:checked + .cookie-option-title::before {
    background: #E31E24;
    border-color: #E31E24;
}

.cookie-option input[type="checkbox"]:checked + .cookie-option-title::after {
    content: '✓';
    position: absolute;
    left: 4px;
    top: 1px;
    color: white;
    font-size: 12px;
}

.cookie-option-title {
    position: relative;
    font-weight: 600;
    color: #333333;
    padding-left: 28px;
    margin-bottom: 5px;
}

.cookie-option-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 2px;
    width: 18px;
    height: 18px;
    border: 2px solid #999999;
    border-radius: 4px;
    background: white;
    transition: all 0.2s ease;
}

.cookie-option input[type="checkbox"]:disabled + .cookie-option-title::before {
    background: #E31E24;
    border-color: #E31E24;
}

.cookie-option input[type="checkbox"]:disabled + .cookie-option-title::after {
    content: '✓';
    position: absolute;
    left: 4px;
    top: 3px;
    color: white;
    font-size: 12px;
}

.cookie-option-desc {
    font-size: 0.85rem;
    color: #666666;
    padding-left: 28px;
}

/* Footer */
.cookie-consent-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.cookie-consent-link {
    color: #E31E24;
    text-decoration: none;
    font-size: 0.9rem;
}

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

.cookie-consent-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* Buttons */
.cookie-btn {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cookie-btn-primary {
    background: #E31E24;
    color: white;
}

.cookie-btn-primary:hover {
    background: #C41A1F;
}

.cookie-btn-secondary {
    background: #EEEEEE;
    color: #333333;
}

.cookie-btn-secondary:hover {
    background: #DDDDDD;
}

/* Settings Button */
.cookie-settings-btn {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 99998;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #E31E24;
    color: white;
    border: none;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease;
}

.cookie-settings-btn:hover {
    background: #C41A1F;
    transform: scale(1.1);
}

/* Embed Placeholders */
.embed-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #F5F5F5;
    border: 2px dashed #CCCCCC;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
}

.embed-placeholder.embed-loaded {
    border: none;
    background: transparent;
}

.embed-placeholder.embed-loaded .embed-placeholder-inner > *:not(iframe) {
    display: none;
}

.embed-placeholder.embed-loaded iframe {
    display: block !important;
}

.embed-placeholder-inner {
    text-align: center;
    padding: 30px;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.embed-placeholder-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.embed-placeholder-text {
    font-size: 1rem;
    color: #555555;
    max-width: 400px;
    margin: 0 0 20px 0;
    line-height: 1.5;
}

.embed-placeholder-btn {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    padding: 12px 30px;
    background: #E31E24;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.embed-placeholder-btn:hover {
    background: #C41A1F;
}

.embed-placeholder-remember {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 15px;
    font-size: 0.9rem;
    color: #666666;
    cursor: pointer;
}

.embed-placeholder-remember input {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

/* YouTube specific */
.embed-youtube .embed-placeholder-inner {
    background: linear-gradient(135deg, #FF0000 0%, #CC0000 100%);
}

.embed-youtube .embed-placeholder-icon,
.embed-youtube .embed-placeholder-text {
    color: white;
}

.embed-youtube .embed-placeholder-remember {
    color: rgba(255, 255, 255, 0.8);
}

/* Google Maps specific */
.embed-maps .embed-placeholder-inner {
    background: linear-gradient(135deg, #4285F4 0%, #34A853 100%);
}

.embed-maps .embed-placeholder-icon,
.embed-maps .embed-placeholder-text {
    color: white;
}

.embed-maps .embed-placeholder-remember {
    color: rgba(255, 255, 255, 0.8);
}

/* Responsive */
@media screen and (max-width: 768px) {
    .cookie-consent-inner {
        padding: 20px;
    }
    
    .cookie-consent-options {
        flex-direction: column;
    }
    
    .cookie-option {
        min-width: 100%;
    }
    
    .cookie-consent-footer {
        flex-direction: column;
        align-items: stretch;
    }
    
    .cookie-consent-buttons {
        flex-direction: column;
    }
    
    .cookie-btn {
        width: 100%;
        text-align: center;
    }
    
    .cookie-consent-link {
        text-align: center;
    }
}

/* Print */
@media print {
    .cookie-consent-banner,
    .cookie-settings-btn,
    .embed-placeholder {
        display: none !important;
    }
}
