﻿/* Louisville Geek Cookie Consent Plugin - Frontend Styles */

/* Cookie Consent Overlay */
.lgcc-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999998;
    display: none;
}

/* Modal Animation - Default Fade */
.lgcc-modal {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lgcc-modal.lgcc-show {
    opacity: 1;
}

/* Cookie Consent Modal */
.lgcc-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 999999;
    display: none;
    max-width: 90vw;
    max-height: 90vh;
}

.lgcc-modal-content {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    max-width: 900px;
    width: 100%;
    margin: 0 auto;
}

.lgcc-modal-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
}

.lgcc-modal-header h2 {
    margin: 0;
    font-size: 1.25em;
    color: #333;
}

.lgcc-modal-body {
    padding: 20px;
    max-height: 60vh;
    overflow-y: auto;
}

.lgcc-modal-footer {
    padding: 20px;
    border-top: 1px solid #eee;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

/* Buttons */
.lgcc-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.2s ease;
}

.lgcc-btn-primary {
    background-color: #0073aa;
    color: white;
}

.lgcc-btn-primary:hover {
    background-color: #005a87;
}

.lgcc-btn-secondary {
    background-color: transparent;
    color: #666;
    border: 1px solid #ccc;
}

/* Cookie Categories */
.lgcc-categories {
    margin-top: 20px;
}

.lgcc-category {
    margin-bottom: 15px;
    border: 1px solid #eee;
    border-radius: 6px;
}

.lgcc-category-header {
    padding: 15px;
    background: #f9f9f9;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.lgcc-category-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    margin-right: 10px;
    order: -1;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.lgcc-category-toggle:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.lgcc-toggle-icon::before {
    content: '▼';
    font-size: 14px;
    color: #666;
    transition: transform 0.3s ease;
    display: inline-block;
    font-weight: bold;
}

.lgcc-category-toggle[aria-expanded="true"] .lgcc-toggle-icon::before {
    transform: rotate(180deg);
}

.lgcc-category-info {
    flex: 1;
}

.lgcc-category-header h3 {
    margin: 0;
    font-size: 1em;
    color: #333;
}

.lgcc-category-content {
    padding: 0 15px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.lgcc-category-content.active,
.lgcc-category-content.lgcc-category-expanded {
    max-height: none;
}

/* Toggle Switch */
.lgcc-toggle {
    width: 40px;
    height: 20px;
    background: #ccc;
    border-radius: 20px;
    position: relative;
    cursor: pointer;
    transition: background 0.2s ease;
}

.lgcc-toggle-active {
    background: #0073aa;
}

.lgcc-toggle-slider {
    width: 16px;
    height: 16px;
    background: white;
    border-radius: 50%;
    position: absolute;
    top: 2px;
    left: 2px;
    transition: transform 0.2s ease;
}

.lgcc-toggle-active .lgcc-toggle-slider {
    transform: translateX(20px);
}

.lgcc-toggle-disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Close Button */
.lgcc-close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lgcc-close-btn:hover {
    color: #333;
}

/* Preferences Banner */
.lgcc-preferences-banner {
    position: fixed;
    bottom: 0;
    z-index: 999999;
    right: auto;
    left: auto;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    background: none;
    box-shadow: none;
    padding: 0;
    border: none;
    font-family: inherit;
}

.lgcc-preferences-banner.position-left {
    left: 20px;
}

.lgcc-preferences-banner.position-right {
    right: 20px;
}

.lgcc-preferences-banner-btn {
    background: #005a87;
    color: #fff;
    border: 2px solid #005a87;
    font-size: 16px;
    padding: 10px 24px;
    border-top-right-radius: 8px;
    border-top-left-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
    cursor: pointer;
    transition: background 0.2s, box-shadow 0.2s;
    outline: none;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-family: inherit;
}

.lgcc-preferences-banner-btn:hover {
    opacity: 0.8;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .lgcc-modal {
        /* margin: 20px; */
        /* max-width: calc(100vw - 40px); */
        min-width: 100% !important;
        max-width: 100% !important;
    }
    
    .lgcc-modal-content {
        max-width: 100%;
    }
    
    .lgcc-modal-footer {
        flex-direction: column;
    }
    
    .lgcc-btn {
        width: 100%;
        text-align: center;
    }
    
    /* Default full width mobile banner */
    .lgcc-preferences-banner {
        left: 10px !important;
        right: 10px !important;
        bottom: 10px;
        text-align: center;
    }
    
    /* Left aligned mobile banner */
    .lgcc-preferences-banner.lgcc-mobile-left {
        left: 10px !important;
        right: auto !important;
        width: auto !important;
        max-width: 280px !important;
        bottom: 10px;
        text-align: left;
    }
    
    /* Right aligned mobile banner */
    .lgcc-preferences-banner.lgcc-mobile-right {
        left: auto !important;
        right: 10px !important;
        width: auto !important;
        max-width: 280px !important;
        bottom: 10px;
        text-align: right;
    }
}


/* Cookie Details */
.lgcc-cookie-details {
    margin-top: 15px;
    margin-bottom: 15px;
}

.lgcc-cookie-details h4 {
    font-size: 14px;
    margin: 0 0 10px 0;
    color: #666;
}

.lgcc-cookie-list {
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
}

.lgcc-cookie-item {
    padding: 12px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.lgcc-cookie-item:last-child {
    border-bottom: none;
}

.lgcc-cookie-info {
    flex: 1;
}

.lgcc-cookie-info strong {
    font-size: 13px;
    color: #333;
}

.lgcc-cookie-info p {
    margin: 5px 0;
    font-size: 12px;
    color: #666;
    line-height: 1.4;
}

.lgcc-cookie-meta {
    display: none;
    margin-left: 10px;
    text-align: right;
    min-width: 80px;
}

.lgcc-cookie-meta span {
    font-size: 11px;
    color: #888;
    background: #f5f5f5;
    padding: 2px 6px;
    border-radius: 3px;
    display: inline-block;
    margin-bottom: 4px;
}
