/* Simple Cookie Consent - Main Styles */
/* Ensure elements are properly styled */
#scc-cookie-banner {
    display: none; /* Hidden by default, shown by JS */
    position: fixed;
    z-index: 99999;
    box-sizing: border-box;
}

/* Make sure banner is visible when shown */
#scc-cookie-banner[style*="display: block"],
#scc-cookie-banner[style*="display:block"] {
    display: flex !important;
}

/* Manage button should be visible */
.scc-manage-button {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
}
/* Cookie Banner */
#scc-cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    background: #2c3e50;
    color: white;
    padding: 15px 20px;
    z-index: 99999;
    box-shadow: 0 -2px 15px rgba(0,0,0,0.2);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    box-sizing: border-box;
}

/* Position Variations */
#scc-cookie-banner.scc-position-bottom {
    bottom: 0;
    top: auto;
}

#scc-cookie-banner.scc-position-top {
    top: 0;
    bottom: auto;
    box-shadow: 0 2px 15px rgba(0,0,0,0.2);
}

#scc-cookie-banner.scc-position-bottom-left {
    bottom: 20px;
    left: 20px;
    right: auto;
    width: auto;
    max-width: 400px;
    border-radius: 8px;
}

#scc-cookie-banner.scc-position-bottom-right {
    bottom: 20px;
    right: 20px;
    left: auto;
    width: auto;
    max-width: 400px;
    border-radius: 8px;
}

/* Theme Variations */
#scc-cookie-banner.scc-theme-light {
    background: #ffffff;
    color: #333333;
    border: 1px solid #ddd;
}

#scc-cookie-banner.scc-theme-minimal {
    background: rgba(255, 255, 255, 0.95);
    color: #333333;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0,0,0,0.1);
}

/* Animation Variations */
#scc-cookie-banner.scc-animation-slide.scc-position-bottom {
    transform: translateY(100%);
    animation: sccSlideUp 0.5s ease forwards;
}

#scc-cookie-banner.scc-animation-slide.scc-position-top {
    transform: translateY(-100%);
    animation: sccSlideDown 0.5s ease forwards;
}

#scc-cookie-banner.scc-animation-fade {
    opacity: 0;
    animation: sccFadeIn 0.5s ease forwards;
}

@keyframes sccSlideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

@keyframes sccSlideDown {
    from { transform: translateY(-100%); }
    to { transform: translateY(0); }
}

@keyframes sccFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Banner Content */
.scc-cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.scc-text {
    flex: 1;
    min-width: 300px;
}

.scc-text p {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
}

.scc-privacy-link {
    color: #3498db;
    text-decoration: underline;
    margin-left: 5px;
}

.scc-privacy-link:hover {
    color: #2980b9;
}

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

/* Button Styles */
.scc-btn {
    padding: 8px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    font-family: inherit;
    min-width: 100px;
    text-align: center;
}

.scc-accept-btn {
    background: #27ae60;
    color: white;
}

.scc-accept-btn:hover {
    background: #219653;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(39, 174, 96, 0.3);
}

.scc-reject-btn {
    background: #e74c3c;
    color: white;
}

.scc-reject-btn:hover {
    background: #c0392b;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(231, 76, 60, 0.3);
}

.scc-customize-btn {
    background: #f39c12;
    color: white;
}

.scc-customize-btn:hover {
    background: #d68910;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(243, 156, 18, 0.3);
}

/* Manage Cookies Button */
#scc-manage-button {
    position: fixed;
    left: 20px;
    bottom: 20px;
    z-index: 99998;
    animation: sccButtonFadeIn 0.5s ease;
}

@keyframes sccButtonFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.scc-manage-btn {
    background: #3498db;
    color: white;
    padding: 8px 16px;
    font-size: 13px;
    border-radius: 20px;
    border: none;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}

.scc-manage-btn:hover {
    background: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

/* Cookie Modal */
#scc-cookie-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.scc-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    animation: sccFadeIn 0.3s ease;
}

.scc-modal-content {
    position: relative;
    background: white;
    color: #333;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    animation: sccModalSlideIn 0.3s ease;
}

@keyframes sccModalSlideIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

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

.scc-modal-header h3 {
    margin: 0;
    color: #2c3e50;
    font-size: 18px;
}

.scc-close-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #999;
    padding: 0;
    width: 30px;
    height: 30px;
    line-height: 30px;
    text-align: center;
    transition: color 0.3s;
}

.scc-close-btn:hover {
    color: #333;
}

.scc-modal-body {
    padding: 20px;
    overflow-y: auto;
    max-height: 50vh;
}

.scc-modal-body p {
    margin: 0 0 20px 0;
    color: #666;
    font-size: 14px;
}

.scc-cookie-options {
    margin: 20px 0;
}

.scc-cookie-option {
    margin-bottom: 15px;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    transition: background 0.3s;
}

.scc-cookie-option:hover {
    background: #f9f9f9;
}

.scc-cookie-option.scc-essential {
    border-left: 3px solid #27ae60;
}

.scc-cookie-option.scc-analytics {
    border-left: 3px solid #3498db;
}

.scc-cookie-option.scc-marketing {
    border-left: 3px solid #9b59b6;
}

.scc-cookie-option label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    margin: 0;
}

.scc-cookie-option input[type="checkbox"] {
    margin-right: 12px;
    margin-top: 3px;
    transform: scale(1.2);
}

.scc-option-content {
    flex: 1;
}

.scc-option-content strong {
    display: block;
    margin-bottom: 5px;
    color: #2c3e50;
    font-size: 15px;
}

.scc-option-content span {
    display: block;
    font-size: 13px;
    color: #666;
    line-height: 1.4;
}

.scc-modal-footer {
    padding: 20px;
    border-top: 1px solid #eee;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

/* Success Message */
.scc-message {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #27ae60;
    color: white;
    padding: 12px 20px;
    border-radius: 4px;
    z-index: 100001;
    max-width: 300px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    animation: sccMessageSlideIn 0.3s ease;
}

@keyframes sccMessageSlideIn {
    from { opacity: 0; transform: translateX(100%); }
    to { opacity: 1; transform: translateX(0); }
}

/* Responsive Styles */
@media (max-width: 768px) {
    #scc-cookie-banner {
        padding: 12px 15px;
    }
    
    .scc-cookie-content {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .scc-text {
        min-width: unset;
    }
    
    .scc-buttons {
        width: 100%;
        justify-content: center;
    }
    
    .scc-btn {
        flex: 1;
        min-width: unset;
        padding: 10px 15px;
    }
    
    #scc-cookie-banner.scc-position-bottom-left,
    #scc-cookie-banner.scc-position-bottom-right {
        left: 10px;
        right: 10px;
        bottom: 10px;
        width: auto;
        max-width: none;
    }
    
    #scc-manage-button {
        left: 10px;
        bottom: 10px;
    }
    
    .scc-manage-btn {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    .scc-modal-content {
        width: 95%;
        margin: 10px;
    }
    
    .scc-modal-footer {
        flex-direction: column;
    }
    
    .scc-modal-footer .scc-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .scc-buttons {
        flex-direction: column;
    }
    
    .scc-btn {
        width: 100%;
    }
}

/* Print Styles */
@media print {
    #scc-cookie-banner,
    #scc-manage-button,
    #scc-cookie-modal {
        display: none !important;
    }
}