/**
 * Acellere Cookie Consent Styles
 * 
 * Adaptive cookie consent banner that adjusts to theme colors
 * 
 * @package SmartCookieConsent
 */

/* === Base Styles === */
.scc-banner {
    position: fixed;
    z-index: 999999;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 13px;
    line-height: 1.4;
    box-sizing: border-box;
    background: var(--scc-background);
    padding: 30px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.scc-banner *,
.scc-banner *::before,
.scc-banner *::after {
    box-sizing: border-box;
}

/* === Position Variants === */
.scc-position-bottom {
    bottom: 0;
    left: 0;
    right: 0;
}

.scc-position-top {
    top: 0;
    left: 0;
    right: 0;
}

.scc-position-center {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 600px;
    width: 90%;
}

/* === Layout Variants === */
.scc-layout-banner .scc-banner-content {
    background: linear-gradient(135deg, var(--scc-background) 0%, var(--scc-primary) 100%);
    color: var(--scc-text);
    padding: 20px 0px 10px 0px;
    /*box-shadow: 0 -4px 20px var(--scc-shadow);*/
}

/* === Two Column Layout === */
.scc-banner-two-columns {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    background: linear-gradient(135deg, var(--scc-background) 0%, var(--scc-primary) 100%);
    color: var(--scc-text);
}

.scc-banner-two-columns .scc-banner-content {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 12px;
}

.scc-banner-two-columns .scc-banner-text {
    flex: 1;
}

.scc-banner-two-columns .scc-banner-actions {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.scc-layout-modal .scc-banner-content {
    position: relative;
}

.scc-layout-modal .scc-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: -1;
}

.scc-layout-modal .scc-modal-content {
    background: linear-gradient(135deg, var(--scc-background) 0%, var(--scc-primary) 100%);
    color: var(--scc-text);
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 20px 40px var(--scc-shadow);
    border: 1px solid var(--scc-border);
    max-width: 500px;
    width: 100%;
    margin: 0 auto;
    position: relative;
}

.scc-layout-corner {
    bottom: 20px;
    right: 20px;
    max-width: 350px;
}

.scc-layout-corner .scc-banner-content {
    background: linear-gradient(135deg, var(--scc-background) 0%, var(--scc-primary) 100%);
    color: var(--scc-text);
    padding: 14px;
    border-radius: 12px;
    box-shadow: 0 8px 25px var(--scc-shadow);
    border: 1px solid var(--scc-border);
}

/* === Header === */
.scc-banner-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.scc-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--scc-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.scc-banner-title {
    font-size: 16px;
    font-weight: 700;
    margin: 0;
    color: var(--scc-text);
    flex: 1;
}

.scc-close-btn {
    background: none;
    border: none;
    color: var(--scc-text);
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s ease;
    opacity: 0.7;
}

.scc-close-btn:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.1);
}

/* === Body === */
.scc-banner-body {
    margin-bottom: 14px;
}

.scc-message {
    margin: 4px 0 4px 0;
    color: var(--scc-text);
    opacity: 0.95;
    line-height: 1.2;
    font-size: 12px;
}

.scc-privacy-link {
    margin: 8px 0 0 0;
}

.scc-privacy-link a {
    color: var(--scc-secondary);
    text-decoration: underline;
    transition: opacity 0.2s ease;
}

.scc-privacy-link a:hover {
    opacity: 0.8;
}

/* === Preferences === */
.scc-preferences {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--scc-border);
}

.scc-preferences h5 {
    margin: 0 0 16px 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--scc-text);
}

.scc-cookie-category {
    margin-bottom: 16px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid var(--scc-border);
}

.scc-cookie-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.scc-cookie-toggle input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--scc-secondary);
}

.scc-cookie-toggle label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: var(--scc-text);
    font-weight: 500;
    font-size: 14px;
}

.scc-required {
    font-size: 12px;
    opacity: 0.7;
    font-weight: normal;
}

.scc-cookie-description {
    margin: 0;
    font-size: 13px;
    color: var(--scc-text);
    opacity: 0.8;
    line-height: 1.4;
}

/* === Actions === */
.scc-banner-actions {
    display: flex;
    justify-content: flex-end;
}

.scc-button-group {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.scc-btn {
    background: none;
    border: 2px solid var(--scc-border);
    color: var(--scc-text);
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    text-decoration: none;
    min-height: 36px;
    white-space: nowrap;
}

.scc-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.scc-btn-accept {
    background: var(--scc-secondary);
    border-color: var(--scc-secondary);
    color: white;
}

.scc-btn-accept:hover {
    background: var(--scc-primary);
    border-color: var(--scc-primary);
}

.scc-btn-reject {
    background: transparent;
    border-color: var(--scc-border);
    color: var(--scc-text);
}

.scc-btn-reject:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
}

.scc-btn-settings {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--scc-border);
    color: var(--scc-text);
}

.scc-btn-settings:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--scc-secondary);
}

.scc-btn-save {
    background: var(--scc-primary);
    border-color: var(--scc-primary);
    color: white;
}

.scc-btn-save:hover {
    background: var(--scc-secondary);
    border-color: var(--scc-secondary);
}

/* === Animations === */
@keyframes sccSlideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

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

@keyframes sccFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

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

.scc-position-bottom .scc-banner-content {
    animation: sccSlideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.scc-position-top .scc-banner-content {
    animation: sccSlideDown 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.scc-position-center .scc-banner-content {
    animation: sccFadeIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.scc-layout-corner .scc-banner-content {
    animation: sccSlideInRight 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* === Responsive Design === */
@media (max-width: 768px) {
    .scc-banner {
        font-size: 12px;
    }
    
    .scc-layout-banner .scc-banner-content,
    .scc-layout-corner .scc-banner-content {
        padding: 20px 0px 10px 0px;
    }
    
    .scc-banner-two-columns {
        flex-direction: column;
        gap: 12px;
        padding: 20px 0px 10px 0px;
    }
    
    .scc-banner-two-columns .scc-banner-content {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }
    
    .scc-banner-two-columns .scc-banner-actions {
        width: 100%;
    }
    
    .scc-layout-modal .scc-modal-content {
        padding: 18px;
        margin: 15px;
        border-radius: 12px;
    }
    
    .scc-banner-header {
        margin-bottom: 8px;
    }
    
    .scc-banner-title {
        font-size: 14px;
    }
    
    .scc-message {
        font-size: 13px;
        line-height: 1.3;
        margin: 0 0 6px 0;
    }
    
    .scc-banner-body {
        margin-bottom: 10px;
    }
    
    .scc-button-group {
        gap: 6px;
        justify-content: center;
        width: 100%;
    }
    
    .scc-btn {
        padding: 6px 12px;
        font-size: 12px;
        min-height: 32px;
        flex: 1;
        min-width: 0;
        justify-content: center;
    }
    
    .scc-layout-corner {
        bottom: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }
    
    .scc-cookie-category {
        padding: 8px;
    }
}

@media (max-width: 480px) {
    .scc-button-group {
        flex-direction: column;
    }
    
    .scc-btn {
        width: 100%;
        justify-content: center;
    }
    
    .scc-preferences {
        margin-top: 16px;
        padding-top: 16px;
    }
}

/* === Dark Theme Support === */
@media (prefers-color-scheme: dark) {
    :root {
        --scc-shadow: rgba(0, 0, 0, 0.4);
        --scc-border: rgba(255, 255, 255, 0.15);
    }
}

/* === High Contrast Support === */
@media (prefers-contrast: high) {
    .scc-banner-content {
        border: 2px solid currentColor;
    }
    
    .scc-btn {
        border-width: 2px;
    }
}

/* === Reduced Motion Support === */
@media (prefers-reduced-motion: reduce) {
    .scc-banner-content {
        animation: none;
    }
    
    .scc-btn {
        transition: none;
    }
    
    .scc-btn:hover {
        transform: none;
    }
}

/* === Compact Mode === */
.scc-banner.scc-compact .scc-banner-header {
    margin-bottom: 8px;
}

.scc-banner.scc-compact .scc-banner-body {
    margin-bottom: 10px;
}

.scc-banner.scc-compact .scc-message {
    margin: 4px 0 4px 0;
    font-size: 12px;
    line-height: 1.2;
}



.scc-banner.scc-compact .scc-layout-banner .scc-banner-content {
    padding: 8px 16px;
}

.scc-banner.scc-compact .scc-btn {
    padding: 6px 12px;
    font-size: 12px;
    min-height: 32px;
}

.scc-banner.scc-compact .scc-banner-title {
    font-size: 14px;
}

.scc-banner.scc-compact .scc-icon {
    width: 20px;
    height: 20px;
}

/* === Print Styles === */
@media print {
    .scc-banner {
        display: none !important;
    }
}
