/* Székely Cookie Consent - Frontend Stílusok */

/* Cookie Banner Overlay */
#scc-cookie-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999998;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

#scc-cookie-overlay.active {
    display: block;
    opacity: 1;
}

/* Cookie Banner Container */
#scc-cookie-banner {
    position: fixed;
    z-index: 999999;
    max-width: 500px;
    background: var(--scc-bg-color, #ffffff);
    border-radius: 21px;
    box-shadow: rgba(99, 99, 99, 0.3) 0px 8px 24px 0px;
    padding: 24px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    display: none;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

#scc-cookie-banner.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* Pozíciók */
#scc-cookie-banner.position-bottom {
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
}

#scc-cookie-banner.position-bottom.active {
    transform: translateX(-50%) translateY(0);
}

#scc-cookie-banner.position-top {
    top: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(-20px);
}

#scc-cookie-banner.position-top.active {
    transform: translateX(-50%) translateY(0);
}

#scc-cookie-banner.position-bottom-left {
    bottom: 20px;
    left: 20px;
}

#scc-cookie-banner.position-bottom-right {
    bottom: 20px;
    right: 20px;
}

/* Banner Header */
.scc-banner-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.scc-banner-title-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}

.scc-banner-logo {
    width: 40px;
    height: auto;
}

.scc-banner-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--scc-text-color, #333333);
    margin: 0;
}

.scc-close-btn {
    background: transparent;
    border: none;
    font-size: 24px;
    color: var(--scc-text-color, #333333);
    cursor: pointer;
    padding: 4px;
    line-height: 1;
    transition: opacity 0.2s ease;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.scc-close-btn:hover {
    opacity: 0.7;
    background: rgba(0, 0, 0, 0.05);
}

/* Banner Content */
.scc-banner-content {
    margin-bottom: 20px;
}

.scc-banner-description {
    font-size: 14px;
    line-height: 1.6;
    color: var(--scc-text-color, #333333);
    margin: 0 0 20px 0;
}

/* Cookie Categories */
.scc-cookie-categories {
    margin: 20px 0;
}

.scc-cookie-category {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.scc-cookie-category:last-child {
    border-bottom: none;
}

.scc-category-info {
    flex: 1;
}

.scc-category-label {
    font-size: 15px;
    font-weight: 500;
    color: var(--scc-text-color, #333333);
    margin: 0 0 4px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.scc-category-required {
    font-size: 11px;
    color: #28a745;
    font-weight: 600;
    text-transform: uppercase;
}

.scc-category-description {
    font-size: 13px;
    color: #666666;
    margin: 0;
}

/* Toggle Switch */
.scc-toggle-switch {
    position: relative;
    width: 51px;
    height: 31px;
    flex-shrink: 0;
}

.scc-toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.scc-toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.3s;
    border-radius: 31px;
}

.scc-toggle-slider:before {
    position: absolute;
    content: "";
    height: 23px;
    width: 23px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

.scc-toggle-switch input:checked + .scc-toggle-slider {
    background-color: var(--scc-primary-color, #007bff);
}

.scc-toggle-switch input:checked + .scc-toggle-slider:before {
    transform: translateX(20px);
}

.scc-toggle-switch input:disabled + .scc-toggle-slider {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Banner Actions */
.scc-banner-actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.scc-btn {
    flex: 1;
    padding: 12px 24px;
    border-radius: 21px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    text-align: center;
    text-decoration: none;
    display: inline-block;
}

.scc-btn-primary {
    background-color: var(--scc-primary-color, #007bff);
    color: #ffffff;
    box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;
}

.scc-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: rgba(99, 99, 99, 0.3) 0px 4px 12px 0px;
}

.scc-btn-secondary {
    background-color: transparent;
    color: var(--scc-text-color, #333333);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.scc-btn-secondary:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.scc-btn-link {
    background: transparent;
    border: none;
    color: var(--scc-primary-color, #007bff);
    text-decoration: none;
    padding: 12px;
    font-size: 14px;
}

.scc-btn-link:hover {
    text-decoration: underline;
}

/* Banner Footer Links */
.scc-banner-footer {
    margin-top: 16px;
    text-align: center;
    font-size: 13px;
}

.scc-footer-links {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.scc-footer-link {
    color: var(--scc-primary-color, #007bff);
    text-decoration: none;
}

.scc-footer-link:hover {
    text-decoration: underline;
}

/* Revoke Button */
#scc-revoke-btn {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: var(--scc-bg-color, #ffffff);
    color: var(--scc-text-color, #333333);
    border: none;
    padding: 10px 16px;
    border-radius: 21px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;
    transition: all 0.2s ease;
    z-index: 999997;
    display: none;
}

#scc-revoke-btn.active {
    display: block;
}

#scc-revoke-btn:hover {
    transform: translateY(-2px);
    box-shadow: rgba(99, 99, 99, 0.3) 0px 4px 12px 0px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    #scc-cookie-banner {
        max-width: calc(100% - 40px);
        left: 20px !important;
        right: 20px !important;
        transform: none !important;
    }
    
    #scc-cookie-banner.position-bottom {
        bottom: 20px;
    }
    
    #scc-cookie-banner.position-top {
        top: 20px;
    }
    
    #scc-cookie-banner.active {
        transform: none !important;
    }
    
    .scc-banner-actions {
        flex-direction: column;
    }
    
    .scc-btn {
        width: 100%;
    }
    
    .scc-footer-links {
        flex-direction: column;
        gap: 8px;
    }
    
    #scc-revoke-btn {
        left: 10px;
        bottom: 10px;
        font-size: 12px;
        padding: 8px 12px;
    }
}

/* Animation */
@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

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

/* Loading State */
.scc-loading {
    opacity: 0.6;
    pointer-events: none;
}
