/**
 * Amberdore Newsletter - Frontend Styles
 * Basierend auf Bricks Button-Design
 */

/* Form Container */
.amberdore-newsletter-form-wrapper {
    max-width: 500px;
    display: flex;
    flex-direction: column;
}

/* Form Layout - Links ausgerichtet */
.amberdore-newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: flex-start;
}

/* Input Field */
.amberdore-nl-field {
    width: 100%;
}

.amberdore-nl-field input[type="email"] {
    width: 100%;
    padding: 14px 20px;
    font-size: 16px;
    font-family: inherit;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 0;
    background-color: rgba(31, 31, 31, 0.2);
    color: #ffffff;
    outline: none;
    transition: all ease 0.4s;
    box-sizing: border-box;
}

.amberdore-nl-field input[type="email"]::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.amberdore-nl-field input[type="email"]:focus {
    border-color: #ffffff;
    background-color: rgba(31, 31, 31, 0.4);
    box-shadow: inset 0 0 0 1px #ffffff;
}

/* Button - Bricks Style - Gleiche Breite wie Input */
.amberdore-nl-button {
    /* Basierend auf Bricks-Einstellungen */
    width: 100%;
    background-color: rgba(31, 31, 31, 0.45);
    color: #ffffff;
    font-size: 20px;
    font-family: inherit;
    font-weight: 400;
    padding: 8px 50px;
    border: none;
    border-radius: 0;
    cursor: pointer;
    transition: all ease 0.4s;
    box-shadow: inset 0 0 0 1px #ffffff;
    text-transform: none;
    letter-spacing: 0;
    display: block;
    text-align: center;
    text-decoration: none;
    line-height: 1.5;
    box-sizing: border-box;
}

.amberdore-nl-button:hover {
    background-color: #ffffff;
    color: #000000;
    box-shadow: inset 0 0 0 3px #000000;
}

.amberdore-nl-button:active {
    transform: scale(0.98);
}

/* Loading State */
.amberdore-nl-button.loading {
    opacity: 0.7;
    pointer-events: none;
    position: relative;
}

.amberdore-nl-button.loading::after {
    content: '';
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: translateY(-50%) rotate(360deg); }
}

/* Success/Error Message */
.amberdore-nl-message {
    margin-top: 20px;
    padding: 25px 30px;
    border-radius: 0;
    text-align: center;
    font-size: 16px;
    line-height: 1.7;
    animation: fadeInUp 0.5s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.amberdore-nl-message.success {
    background: linear-gradient(135deg, rgba(31, 31, 31, 0.95) 0%, rgba(50, 50, 50, 0.95) 100%);
    color: #ffffff;
    border: 1px solid #E1A140;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.amberdore-nl-message.success strong {
    color: #E1A140;
}

.amberdore-nl-message.error {
    background-color: rgba(180, 50, 50, 0.9);
    color: #ffffff;
    border: 1px solid #ff6b6b;
}

/* Form Hidden State (after success) */
.amberdore-newsletter-form.hidden {
    display: none;
}

/* Mobile Responsive - Basierend auf Bricks mobile_landscape */
@media (max-width: 768px) {
    .amberdore-nl-button {
        font-size: 18px;
        width: 100%;
        padding: 12px 30px;
        border-width: 1px;
        border-style: solid;
        border-color: #ffffff;
    }

    .amberdore-nl-field input[type="email"] {
        font-size: 16px;
        padding: 12px 16px;
    }

    .amberdore-nl-message {
        padding: 20px;
        font-size: 15px;
    }
}

/* Luxury Badge Style (for potential future use) */
.amberdore-luxury-badge {
    position: absolute;
    top: 5px;
    right: -20px;
    background-color: #E1A140;
    color: #ffffff;
    font-family: 'Roboto', sans-serif;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 4px 10px;
    border-radius: 0;
    z-index: 10;
    box-shadow: 3px 3px 8px 1px rgba(31, 31, 31, 0.45);
    transition: all 0.4s ease;
}

/* Dark Background Variant */
.amberdore-newsletter-dark {
    background: linear-gradient(135deg, #1f1f1f 0%, #2a2a2a 100%);
    padding: 40px 20px;
    border-radius: 0;
}

/* Light Background Variant */
.amberdore-newsletter-light .amberdore-nl-field input[type="email"] {
    background-color: rgba(31, 31, 31, 0.08);
    border-color: rgba(31, 31, 31, 0.3);
    color: #1f1f1f;
}

.amberdore-newsletter-light .amberdore-nl-field input[type="email"]::placeholder {
    color: rgba(31, 31, 31, 0.5);
}

.amberdore-newsletter-light .amberdore-nl-field input[type="email"]:focus {
    border-color: #1f1f1f;
    box-shadow: inset 0 0 0 1px #1f1f1f;
}

.amberdore-newsletter-light .amberdore-nl-button {
    background-color: #1f1f1f;
    color: #ffffff;
    box-shadow: none;
}

.amberdore-newsletter-light .amberdore-nl-button:hover {
    background-color: #E1A140;
    color: #ffffff;
}

/* Animation for Input Focus */
.amberdore-nl-field input[type="email"]:focus {
    transform: scale(1.01);
}

/* Checkbox for DSGVO */
.amberdore-nl-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 13px;
    color: #ffffff;
    text-align: left;
    width: 100%;
    line-height: 1.5;
    background-color: rgba(31, 31, 31, 0.2);
    padding: 14px 20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-sizing: border-box;
}

.amberdore-nl-checkbox input[type="checkbox"] {
    margin-top: 2px;
    width: 18px;
    height: 18px;
    min-width: 18px;
    accent-color: #E1A140;
    cursor: pointer;
}

.amberdore-nl-checkbox label {
    cursor: pointer;
    margin: 0;
    color: rgba(255, 255, 255, 0.8);
}

.amberdore-nl-checkbox a {
    color: #E1A140;
    text-decoration: underline;
}

.amberdore-nl-checkbox a:hover {
    color: #ffffff;
}

/* Light variant checkbox */
.amberdore-newsletter-light .amberdore-nl-checkbox {
    background-color: rgba(31, 31, 31, 0.08);
    border-color: rgba(31, 31, 31, 0.3);
    color: rgba(31, 31, 31, 0.8);
}

.amberdore-newsletter-light .amberdore-nl-checkbox label {
    color: rgba(31, 31, 31, 0.7);
}

.amberdore-newsletter-light .amberdore-nl-checkbox a {
    color: #E1A140;
}

.amberdore-newsletter-light .amberdore-nl-checkbox a:hover {
    color: #1f1f1f;
}

/* Preferences Checkboxen */
.amberdore-nl-preferences {
    width: 100%;
    background-color: rgba(31, 31, 31, 0.2);
    padding: 14px 20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-sizing: border-box;
}

.amberdore-nl-preferences input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #E1A140;
    cursor: pointer;
}

