/**
 * Very Simple Cookie Solution - CSS Styles
 * 
 * @package Very_Simple_Cookie_Solution
 * @since 1.0.0
 */

/* CSS Variables für Styling-Optionen */
:root {
    /* iframe Placeholder Styles */
    --vscs-border-width: 2px;
    --vscs-border-color: #000000;
    --vscs-border-radius: 0px;
    --vscs-background-color: #f8f9fa;
    --vscs-text-color: #495057;
    
    /* Button Styles */
    --vscs-button-bg-color: #007cba;
    --vscs-button-text-color: #ffffff;
    --vscs-button-border-color: #007cba;
    --vscs-button-border-radius: 6px;
    
    /* Dialog Styles */
    --vscs-dialog-bg-color: #ffffff;
    --vscs-dialog-text-color: #333333;
    --vscs-dialog-max-width: 500px;
    
    /* Revoke Button Styles */
    --vscs-revoke-button-bg-color: #dc3545;
    --vscs-revoke-button-text-color: #ffffff;
    --vscs-revoke-button-border-color: #dc3545;
    --vscs-revoke-button-border-radius: 6px;
}

/* iframe Placeholder Styles */
.vscs-iframe-placeholder {
    position: relative;
    border: var(--vscs-border-width) solid var(--vscs-border-color);
    border-radius: var(--vscs-border-radius);
    background-color: var(--vscs-background-color);
    color: var(--vscs-text-color);
    padding: 2rem;
    margin: 1rem 0;
    text-align: center;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}



.vscs-consent-message {
    max-width: 600px;
    margin: 0 auto;
}

.vscs-consent-message p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--vscs-text-color);
    margin: 0 0 1.5rem 0;
    font-weight: 400;
}

.vscs-consent-button {
    background-color: var(--vscs-button-bg-color);
    color: var(--vscs-button-text-color);
    border: 1px solid var(--vscs-button-border-color);
    border-radius: var(--vscs-button-border-radius);
    padding: 12px 24px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    min-width: 120px;
}

.vscs-consent-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Loading-Zustand */
.vscs-iframe-placeholder.loading {
    background: #f8f9fa url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzgiIGhlaWdodD0iMzgiIHZpZXdCb3g9IjAgMCAzOCAzOCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiBzdHJva2U9IiMwMDdjYmEiIGZpbGw9Im5vbmUiIHN0cm9rZS13aWR0aD0iMiI+PGNpcmNsZSBjeD0iMTkiIGN5PSIxOSIgcj0iMTgiIHN0cm9rZS1vcGFjaXR5PSIuNSI+PC9jaXJjbGU+PHBhdGggZD0iTTM2IDI2YzAgOS45NC04LjA2IDE4LTE4IDE4Ij48L3BhdGg+PC9zdmc+') center no-repeat;
    background-size: 40px;
}

.vscs-iframe-placeholder.loading .vscs-consent-message {
    opacity: 0.5;
}

/* Cookie Icon Styles */
.vscs-cookie-icon {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
}

.vscs-cookie-icon-button {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: transparent;
    color: #333;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
}

.vscs-cookie-icon-button img {
    transition: all 0.3s ease;
}

.vscs-cookie-icon-button:hover {
    background: rgba(0, 0, 0, 0.05);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.vscs-cookie-icon-button:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 124, 186, 0.3);
}

.vscs-cookie-icon.vscs-has-consent .vscs-cookie-icon-button {
    background: transparent;
}

.vscs-cookie-icon.vscs-has-consent .vscs-cookie-icon-button:hover {
    background: rgba(0, 0, 0, 0.05);
}

/* Cookie Dialog Styles */
.vscs-cookie-dialog {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border: none;
    padding: 0;
    margin: 0;
    max-width: var(--vscs-dialog-max-width);
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    z-index: 10000;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    display: none;
}

.vscs-cookie-dialog[open] {
    display: block;
}

.vscs-cookie-dialog::backdrop {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px) saturate(180%);
    -webkit-backdrop-filter: blur(10px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
}

.vscs-cookie-dialog-content {
    position: relative;
    padding: 2rem;
    background-color: var(--vscs-dialog-bg-color);
    color: var(--vscs-dialog-text-color);
    max-width: var(--vscs-dialog-max-width);
}

.vscs-cookie-dialog-content h3 {
    margin: 0 0 1rem 0;
    color: var(--vscs-dialog-text-color);
    font-size: 1.5rem;
    font-weight: 600;
}

.vscs-cookie-message {
    margin: 0 0 1.5rem 0;
    line-height: 1.6;
    color: var(--vscs-dialog-text-color);
}

.vscs-cookie-message p {
    margin: 0 0 1rem 0;
    color: var(--vscs-dialog-text-color);
}

.vscs-cookie-message p:last-child {
    margin-bottom: 0;
}

.vscs-cookie-status {
    margin: 20px 0;
    padding: 15px;
    background: #f8f9fa;
    font-size: 0.95rem;
    color: var(--vscs-dialog-text-color);
}

.vscs-status-consent {
    color: #28a745;
    font-weight: 600;
}

.vscs-status-no-consent {
    color: #dc3545;
    font-weight: 600;
}

.vscs-cookie-actions {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.vscs-understand-button,
.vscs-revoke-button {
    padding: 12px 24px;
    border: none;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    flex: 1;
}

.vscs-understand-button {
    background: var(--vscs-button-bg-color);
    color: var(--vscs-button-text-color);
    border-radius: var(--vscs-button-border-radius);
}

.vscs-understand-button:hover {
    background: #005a87;
}

.vscs-revoke-button {
    background: var(--vscs-revoke-button-bg-color);
    color: var(--vscs-revoke-button-text-color);
    border-radius: var(--vscs-revoke-button-border-radius);
}

.vscs-revoke-button:hover {
    background: #c82333;
}

.vscs-dialog-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 30px;
    height: 30px;
    border: none;
    background: transparent;
    color: #666;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
    line-height: 1;
    mix-blend-mode: multiply;
}

.vscs-dialog-close:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #000;
    mix-blend-mode: multiply;
}

.vscs-dialog-close:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.5);
    mix-blend-mode: multiply;
}

/* Responsive Design */
@media (max-width: 768px) {
    .vscs-iframe-placeholder {
        padding: 1.5rem;
        min-height: 150px;
    }
    
    .vscs-consent-message p {
        font-size: 1rem;
        margin-bottom: 1rem;
    }
    
    .vscs-consent-button {
        padding: 10px 20px;
        font-size: 0.95rem;
        min-width: 100px;
    }
    
    .vscs-cookie-icon {
        bottom: 15px;
        right: 15px;
    }
    
    .vscs-cookie-icon-button {
        width: 45px;
        height: 45px;
    }
}

@media (max-width: 480px) {
    .vscs-iframe-placeholder {
        padding: 1rem;
        min-height: 120px;
    }
    
    .vscs-consent-message p {
        font-size: 0.95rem;
        line-height: 1.5;
    }
    
    .vscs-consent-button {
        padding: 8px 16px;
        font-size: 0.9rem;
        width: 100%;
        max-width: 200px;
    }
    
    .vscs-cookie-icon {
        bottom: 10px;
        right: 10px;
    }
    
    .vscs-cookie-icon-button {
        width: 40px;
        height: 40px;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .vscs-consent-message p {
        font-size: 1.2rem;
        font-weight: 600;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    .vscs-iframe-placeholder,
    .vscs-consent-button,
    .vscs-cookie-icon-button {
        transition: none;
    }
    
    .vscs-consent-button:hover {
        transform: none;
    }
    
    .vscs-cookie-icon-button:hover {
        transform: none;
    }
} 