/**
 * GuestSEO Cookie Consent Styles
 * Compact bottom bar design
 *
 * @package GuestSEO
 */

/* ==========================================================================
   Banner - Bottom Bar
   ========================================================================== */

.guestseo-cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 999999;
    background: var(--cookie-bg, #086246);
    color: var(--cookie-text, #ffffff);
    font-family: var(--cookie-font, inherit);
    font-size: var(--cookie-font-size, 14px);
    box-shadow: var(--cookie-shadow, 0 -4px 20px rgba(0,0,0,0.15));
    border-radius: 15px 15px 0 0;
    transform: translateY(100%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.4s ease, opacity 0.3s ease, visibility 0.3s ease;
}

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

.guestseo-cookie-banner.hiding {
    transform: translateY(100%);
    opacity: 0;
}

/* ==========================================================================
   Content Layout
   ========================================================================== */

.guestseo-cookie-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 12px 20px;
    flex-wrap: wrap;
}

.guestseo-cookie-text {
    line-height: 1.4;
    opacity: 0.9;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.guestseo-cookie-buttons {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
    flex-wrap: wrap;
}

.guestseo-cookie-btn {
    padding: 6px 14px;
    border: 1px solid var(--cookie-border, #086246);
    border-radius: var(--cookie-radius, 6px);
    font-family: inherit;
    font-size: inherit;
    font-weight: normal;
    cursor: pointer;
    transition: all 0.15s ease;
    text-decoration: none;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Info button (Meer info) */
.guestseo-cookie-btn-info {
    background: var(--cookie-secondary-bg, transparent);
    color: var(--cookie-secondary-text, #ffffff);
}

.guestseo-cookie-btn-info:hover {
    background: var(--cookie-secondary-hover-bg, rgba(255,255,255,0.2));
    color: var(--cookie-secondary-hover-text, #ffffff);
}

/* Reject button (Niet okay) */
.guestseo-cookie-btn-reject {
    background: var(--cookie-secondary-bg, transparent);
    color: var(--cookie-secondary-text, #ffffff);
}

.guestseo-cookie-btn-reject:hover {
    background: var(--cookie-secondary-hover-bg, rgba(255,255,255,0.2));
    color: var(--cookie-secondary-hover-text, #ffffff);
}

/* Accept button (Prima) */
.guestseo-cookie-btn-accept {
    background: var(--cookie-accept-bg, #ffffff);
    color: var(--cookie-accept-text, #086246);
}

.guestseo-cookie-btn-accept:hover {
    background: var(--cookie-accept-hover-bg, #e0e0e0);
    color: var(--cookie-accept-hover-text, #086246);
}

/* ==========================================================================
   Modal (Cookie Settings popup)
   ========================================================================== */

.guestseo-cookie-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999999;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.guestseo-cookie-modal-content {
    background: #fff;
    color: #1a1a1a;
    border-radius: 12px;
    padding: 28px;
    max-width: 420px;
    width: 100%;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    font-family: var(--cookie-font, inherit);
    font-size: var(--cookie-font-size, 14px);
}

.guestseo-cookie-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 32px;
    height: 32px;
    border: none;
    background: #f1f1f1;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.guestseo-cookie-modal-close:hover {
    background: #e5e5e5;
    color: #333;
}

.guestseo-cookie-modal-content h3 {
    margin: 0 0 8px 0;
    font-size: 18px;
    font-weight: 700;
    padding-right: 40px;
}

.guestseo-cookie-modal-content > p {
    margin: 0 0 20px 0;
    color: #666;
    line-height: 1.5;
}

/* ==========================================================================
   Cookie Options (in Modal)
   ========================================================================== */

.guestseo-cookie-options {
    border-top: 1px solid #eee;
    padding-top: 16px;
}

.guestseo-cookie-option {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 0;
    cursor: pointer;
    border-bottom: 1px solid #f5f5f5;
}

.guestseo-cookie-option:last-child {
    border-bottom: none;
}

.guestseo-cookie-option input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: var(--cookie-accent, #25D366);
    cursor: pointer;
    flex-shrink: 0;
    margin-top: 2px;
}

.guestseo-cookie-option input[type="checkbox"]:disabled {
    opacity: 0.5;
}

.guestseo-cookie-option-info {
    flex: 1;
}

.guestseo-cookie-option-info strong {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 2px;
}

.guestseo-cookie-option-info small {
    display: block;
    font-size: 12px;
    color: #888;
    line-height: 1.4;
}

.guestseo-cookie-modal-buttons {
    margin-top: 20px;
    text-align: right;
}

.guestseo-cookie-modal-buttons .guestseo-cookie-btn-accept {
    background: var(--cookie-accept-bg, #ffffff);
    color: var(--cookie-accept-text, #086246);
}

.guestseo-cookie-modal-buttons .guestseo-cookie-btn-accept:hover {
    background: var(--cookie-accept-hover-bg, #e0e0e0);
    color: var(--cookie-accept-hover-text, #086246);
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 600px) {
    .guestseo-cookie-content {
        flex-direction: column;
        text-align: center;
        padding: 12px 16px;
        gap: 10px;
    }
    
    .guestseo-cookie-btn {
        padding: 6px 12px;
        font-size: 13px;
    }
    
    .guestseo-cookie-modal-content {
        padding: 24px 20px;
    }
}
