/* WN Stock Alerts – Frontend Styles */

/* ── Gomb ── */
.wn-sa-btn-wrap {
    margin: 16px 0;
}

.wn-sa-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    color: #0a0a0a;
    border: 2px solid #0a0a0a;
    padding: 12px 22px;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    font-family: inherit;
    letter-spacing: 0.2px;
}

.wn-sa-btn:hover {
    background: #0a0a0a;
    color: #ffffff;
}

/* ── Overlay ── */
.wn-sa-overlay {
    display: none !important;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 99999;
    align-items: center;
    justify-content: center;
    padding: 16px;
    backdrop-filter: blur(2px);
}

.wn-sa-overlay.wn-sa-visible {
    display: flex !important;
    animation: wn-fade-in 0.2s ease;
}

@keyframes wn-fade-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* ── Modal ── */
.wn-sa-modal {
    background: #ffffff;
    border-radius: 10px;
    width: 100%;
    max-width: 480px;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    animation: wn-slide-up 0.25s ease;
    max-height: 90vh;
    overflow-y: auto;
}

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

/* ── Close ── */
.wn-sa-close {
    position: absolute;
    top: 14px;
    right: 16px;
    background: none;
    border: none;
    font-size: 24px;
    line-height: 1;
    color: #888;
    cursor: pointer;
    padding: 4px 6px;
    border-radius: 4px;
    transition: color 0.15s, background 0.15s;
    z-index: 1;
}

.wn-sa-close:hover {
    color: #0a0a0a;
    background: #f0f0f0;
}

/* ── Header ── */
.wn-sa-modal-header {
    background: #0a0a0a;
    padding: 28px 32px 24px;
    border-radius: 10px 10px 0 0;
}

.wn-sa-modal-icon {
    width: 48px;
    height: 48px;
    background: rgba(0, 194, 178, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    color: #00c2b2;
}

.wn-sa-modal-header h2 {
    margin: 0 0 6px;
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.3;
}

.wn-sa-modal-subtitle {
    margin: 0;
    font-size: 14px;
    color: #aaa;
}

/* ── Form body ── */
#wn-sa-form {
    padding: 24px 32px 28px;
}

/* ── Options ── */
.wn-sa-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 22px;
}

.wn-sa-option {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    border: 2px solid #e8e8e8;
    border-radius: 7px;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
}

.wn-sa-option:hover {
    border-color: #00c2b2;
    background: #f0fffe;
}

.wn-sa-option input[type="radio"] {
    margin: 3px 0 0;
    accent-color: #00c2b2;
    flex-shrink: 0;
    width: 16px;
    height: 16px;
}

.wn-sa-option:has(input:checked) {
    border-color: #00c2b2;
    background: #f0fffe;
}

.wn-sa-option-title {
    display: block;
    font-weight: 700;
    font-size: 14px;
    color: #0a0a0a;
    margin-bottom: 3px;
}

.wn-sa-option-desc {
    display: block;
    font-size: 12px;
    color: #666;
    line-height: 1.5;
}

/* ── Fields ── */
.wn-sa-fields {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 16px;
}

.wn-sa-field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.wn-sa-req {
    color: #e53e3e;
}

.wn-sa-field input {
    width: 100%;
    padding: 10px 13px;
    border: 1.5px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    font-family: inherit;
    color: #0a0a0a;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.wn-sa-field input:focus {
    outline: none;
    border-color: #00c2b2;
}

/* ── GDPR ── */
.wn-sa-gdpr {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 12px;
    color: #666;
    line-height: 1.5;
    margin-bottom: 18px;
    cursor: pointer;
}

.wn-sa-gdpr input[type="checkbox"] {
    margin-top: 2px;
    accent-color: #00c2b2;
    flex-shrink: 0;
    width: 15px;
    height: 15px;
}

.wn-sa-gdpr a {
    color: #00c2b2;
    text-decoration: underline;
}

/* ── Üzenet ── */
.wn-sa-msg {
    padding: 12px 16px;
    border-radius: 5px;
    font-size: 13px;
    margin-bottom: 14px;
    line-height: 1.5;
}

.wn-sa-msg.success {
    background: #e8faf8;
    color: #0a7c70;
    border: 1px solid #b2e8e3;
}

.wn-sa-msg.error {
    background: #fff0f0;
    color: #c53030;
    border: 1px solid #fed7d7;
}

/* ── Submit ── */
.wn-sa-submit {
    width: 100%;
    padding: 13px;
    background: #00c2b2;
    color: #ffffff;
    border: none;
    border-radius: 5px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.2s, transform 0.1s;
    letter-spacing: 0.2px;
}

.wn-sa-submit:hover {
    background: #00a89a;
}

.wn-sa-submit:active {
    transform: scale(0.99);
}

.wn-sa-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ── Responsive ── */
@media (max-width: 520px) {
    .wn-sa-modal-header,
    #wn-sa-form {
        padding-left: 20px;
        padding-right: 20px;
    }
}
