/* ============================================
   CODEX Gaming Store - Sekcja newslettera
   Motyw: zielono-czarny, animowany, wyrazisty
   ============================================ */

.newsletter-section {
    position: relative;
    padding: 80px 20px;
    margin: 60px 0 0;
    background: linear-gradient(180deg, #0a0a0a 0%, #050505 100%);
    overflow: hidden;
}

/* Animowane tło – zielone poświaty */
.newsletter-section__bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 20% 30%, rgba(0, 255, 0, 0.08) 0%, transparent 45%),
        radial-gradient(circle at 80% 70%, rgba(57, 255, 20, 0.06) 0%, transparent 45%);
    animation: nlBgPulse 8s ease-in-out infinite alternate;
}

@keyframes nlBgPulse {
    0% { opacity: 0.5; }
    100% { opacity: 1; }
}

/* Siatka – delikatne linie */
.newsletter-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0, 255, 0, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 0, 0.04) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
    mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
}

/* Górna linia – zielony scanline */
.newsletter-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg,
        transparent 0%,
        #00ff00 20%,
        #39ff14 50%,
        #00ff00 80%,
        transparent 100%);
    opacity: 0.7;
}

.newsletter-container {
    position: relative;
    max-width: 1100px;
    margin: 0 auto;
    z-index: 1;
}

.newsletter-content {
    background: linear-gradient(135deg, #111111 0%, #0d0d0d 100%);
    border: 1px solid #2a2a2a;
    border-radius: 20px;
    padding: 45px 50px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(0, 255, 0, 0.08) inset;
}

/* Świecąca krawędź */
.newsletter-content::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 20%;
    right: 20%;
    height: 1px;
    background: linear-gradient(90deg, transparent, #00ff00, transparent);
    opacity: 0.6;
}

/* Badge */
.newsletter-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: rgba(0, 255, 0, 0.1);
    border: 1px solid rgba(0, 255, 0, 0.3);
    border-radius: 100px;
    color: #00ff00;
    font-family: 'Orbitron', monospace;
    font-size: 11px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.newsletter-badge__dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #00ff00;
    box-shadow: 0 0 10px #00ff00;
    animation: nlDotBlink 1.8s ease-in-out infinite;
}

@keyframes nlDotBlink {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.8); }
}

/* Nagłówek */
.newsletter-heading {
    font-family: 'Orbitron', monospace;
    font-size: 32px;
    font-weight: 900;
    color: #ffffff;
    line-height: 1.2;
    letter-spacing: 1px;
    margin: 0 0 16px;
    text-transform: uppercase;
}

.newsletter-heading__highlight {
    color: #00ff00;
    text-shadow: 0 0 24px rgba(0, 255, 0, 0.5);
    position: relative;
}

.newsletter-heading__highlight::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 2px;
    background: #00ff00;
    box-shadow: 0 0 12px #00ff00;
}

/* Lead */
.newsletter-lead {
    color: #b0b0b0;
    font-size: 15px;
    line-height: 1.7;
    margin: 0 0 28px;
    max-width: 620px;
}

/* Benefity */
.newsletter-benefits {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 32px;
    padding-bottom: 28px;
    border-bottom: 1px solid #1e1e1e;
}

.newsletter-benefit {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #d0d0d0;
    font-size: 13.5px;
}

.newsletter-benefit__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(0, 255, 0, 0.08);
    border: 1px solid rgba(0, 255, 0, 0.2);
    font-size: 15px;
    flex-shrink: 0;
}

/* Formularz */
.newsletter-widget {
    background: transparent;
    border: none;
    padding: 0;
    max-width: 100%;
}

.newsletter-widget__title {
    display: none; /* ukryte – mamy własny heading */
}

.newsletter-widget__desc {
    display: none;
}

.newsletter-form {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 12px;
    align-items: stretch;
}

.newsletter-input {
    padding: 14px 18px;
    background: #0a0a0a;
    border: 1px solid #2a2a2a;
    border-radius: 10px;
    color: #ffffff;
    font-family: 'Inter', 'Roboto', sans-serif;
    font-size: 14px;
    outline: none;
    transition: all 0.25s;
    min-width: 0;
}

.newsletter-input::placeholder {
    color: #707070;
}

.newsletter-input:hover {
    border-color: #3a3a3a;
}

.newsletter-input:focus {
    border-color: #00ff00;
    box-shadow: 0 0 0 3px rgba(0, 255, 0, 0.15);
    background: #0f0f0f;
}

.newsletter-btn {
    padding: 14px 32px;
    background: #00ff00;
    color: #0a0a0a;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-family: 'Orbitron', monospace;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

.newsletter-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.6s;
}

.newsletter-btn:hover:not(:disabled)::before {
    left: 100%;
}

.newsletter-btn:hover:not(:disabled) {
    background: #39ff14;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 255, 0, 0.5);
}

.newsletter-btn:active:not(:disabled) {
    transform: translateY(0);
}

.newsletter-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Komunikat */
.newsletter-message {
    display: none;
    margin-top: 16px;
    padding: 14px 18px;
    border-radius: 10px;
    font-size: 13.5px;
    line-height: 1.5;
    animation: nlFadeIn 0.35s ease;
}

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

.newsletter-message--success {
    background: rgba(0, 255, 0, 0.1);
    border-left: 3px solid #00ff00;
    color: #a8ffa8;
}

.newsletter-message--error {
    background: rgba(255, 0, 51, 0.1);
    border-left: 3px solid #ff0033;
    color: #ff8080;
}

/* ============================================
   Responsywność
   ============================================ */
@media (max-width: 768px) {
    .newsletter-section {
        padding: 60px 15px;
    }

    .newsletter-content {
        padding: 32px 24px;
        border-radius: 16px;
    }

    .newsletter-heading {
        font-size: 22px;
    }

    .newsletter-lead {
        font-size: 14px;
    }

    .newsletter-benefits {
        flex-direction: column;
        gap: 14px;
    }

    .newsletter-form {
        grid-template-columns: 1fr;
    }

    .newsletter-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .newsletter-content {
        padding: 26px 18px;
    }

    .newsletter-heading {
        font-size: 18px;
    }
}
