/**
 * Cookie Banner Styles
 * Fun Practice Toronto - 2025
 */

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #1a1a1a 0%, #2c3e50 100%);
    color: white;
    z-index: 9999;
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.4);
    transform: translateY(100%);
    transition: transform 0.4s ease-in-out;
    border-top: 5px solid var(--carrot-orange, #f8961e);
}

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

.cookie-banner.hide {
    transform: translateY(100%);
}

.cookie-banner-content {
    padding: 2.5rem 0;
}

.cookie-banner .container {
    display: flex;
    align-items: center;
    justify-content: center;
}

.cookie-banner .row {
    align-items: center;
    justify-content: center;
    text-align: center;
}

.cookie-text h4 {
    color: var(--carrot-orange, #f8961e);
    font-weight: 700;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.cookie-text p {
    font-size: 1.1rem;
    line-height: 1.5;
    margin-bottom: 0;
    color: #f0f0f0;
}

.cookie-link {
    color: var(--pistachio, #90be6d);
    text-decoration: underline;
    transition: color 0.3s ease;
    font-weight: 700;
}

.cookie-link:hover {
    color: white;
}

.cookie-privacy-link {
    font-size: 0.85rem !important;
    opacity: 0.9;
}

.cookie-privacy-link .cookie-link {
    font-size: 0.85rem;
}

.cookie-buttons {
    gap: 1rem;
    justify-content: center;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.cookie-buttons .btn {
    font-size: 1.1rem;
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    min-width: 150px;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

/* Accept button - matches btn-primary style */
.cookie-buttons .btn-success {
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    border: 2px solid transparent;
    color: white;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.cookie-buttons .btn-success:hover {
    background: white;
    border: 2px solid #ff6b35;
    color: #ff6b35;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 107, 53, 0.4);
}

/* Customize button - matches btn-secondary style */
.cookie-buttons .btn-outline-light {
    background: transparent;
    border: 2px solid #90be6d;
    color: #90be6d;
}

.cookie-buttons .btn-outline-light:hover {
    background: #90be6d;
    border: 2px solid #90be6d;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(144, 190, 109, 0.3);
}

/* Cookie Modal */
.cookie-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.cookie-modal-content {
    background: white;
    border-radius: 12px;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.cookie-modal-header {
    padding: 1.5rem 1.5rem 1rem;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: between;
    align-items: center;
}

.cookie-modal-header h4 {
    margin: 0;
    color: #2c3e50;
    font-weight: 600;
    flex: 1;
}

.cookie-modal-header .btn-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.cookie-modal-header .btn-close:hover {
    background: #f8f9fa;
    color: #333;
}

.cookie-modal-header .btn-close::before {
    content: "×";
    font-size: 24px;
    line-height: 1;
}

.cookie-modal-body {
    padding: 1rem 1.5rem;
}

.cookie-category {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid var(--carrot-orange, #ff6b35);
}

.cookie-category h5 {
    color: #2c3e50;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.cookie-category .badge {
    font-size: 0.7rem;
    padding: 0.3rem 0.6rem;
}

.cookie-category p {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0;
    line-height: 1.4;
}

.form-check-input:checked {
    background-color: var(--carrot-orange, #ff6b35);
    border-color: var(--carrot-orange, #ff6b35);
}

.form-check-input:focus {
    border-color: var(--carrot-orange, #ff6b35);
    box-shadow: 0 0 0 0.25rem rgba(255, 107, 53, 0.25);
}

.cookie-modal-footer {
    padding: 1rem 1.5rem 1.5rem;
    border-top: 1px solid #eee;
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
}

.cookie-modal-footer .btn {
    border-radius: 25px;
    font-weight: 500;
    padding: 0.6rem 1.5rem;
}

.cookie-modal-footer .btn-primary {
    background: var(--carrot-orange, #ff6b35);
    border-color: var(--carrot-orange, #ff6b35);
}

.cookie-modal-footer .btn-primary:hover {
    background: #e55a2b;
    border-color: #e55a2b;
}

.cookie-modal-footer .btn-outline-primary {
    color: var(--carrot-orange, #ff6b35);
    border-color: var(--carrot-orange, #ff6b35);
}

.cookie-modal-footer .btn-outline-primary:hover {
    background: var(--carrot-orange, #ff6b35);
    border-color: var(--carrot-orange, #ff6b35);
}

/* Responsive Design */
@media (max-width: 768px) {
    .cookie-banner-content {
        padding: 2rem 0;
    }

    .cookie-banner .container {
        text-align: center;
    }

    .cookie-text h4 {
        font-size: 1.3rem;
    }

    .cookie-text p {
        font-size: 1rem;
    }

    .cookie-buttons {
        margin-top: 1.5rem;
        gap: 1rem;
        justify-content: center;
        display: flex;
        flex-direction: row;
        align-items: center;
        flex-wrap: wrap;
    }

    .cookie-buttons .btn {
        font-size: 1rem;
        padding: 10px 24px;
        min-width: 140px;
    }
    
    .cookie-modal-content {
        margin: 1rem;
        max-height: calc(100vh - 2rem);
    }
    
    .cookie-modal-footer {
        flex-direction: column;
    }
    
    .cookie-modal-footer .btn {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .cookie-banner {
        border-top-width: 2px;
    }
    
    .cookie-text h5 {
        font-size: 0.9rem;
    }
    
    .cookie-text p {
        font-size: 0.8rem;
    }
    
    .cookie-modal-header,
    .cookie-modal-body,
    .cookie-modal-footer {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}



