/**
 * Footer — bülten aboneliği
 */

.footer-newsletter {
    width: 100%;
    margin: 8px 0 4px;
}

.footer-newsletter__card {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px 28px;
    padding: 28px 32px;
    border-radius: 20px;
    background: linear-gradient(
        135deg,
        rgba(1, 177, 175, 0.18) 0%,
        rgba(14, 20, 30, 0.92) 38%,
        rgba(8, 12, 20, 0.96) 100%
    );
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 16px 40px rgba(0, 0, 0, 0.35);
    position: relative;
    overflow: hidden;
}

.footer-newsletter__card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(45, 212, 210, 0.6) 50%,
        transparent
    );
    pointer-events: none;
}

.footer-newsletter__content {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    flex: 1 1 280px;
    min-width: 0;
}

.footer-newsletter__icon {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: rgba(1, 177, 175, 0.2);
    border: 1px solid rgba(45, 212, 210, 0.35);
    color: #2dd4d2;
    font-size: 1.35rem;
    box-shadow: 0 0 24px rgba(1, 177, 175, 0.2);
}

.footer-newsletter__text h4 {
    margin: 0 0 8px;
    font-size: 1.125rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: #e8eef2;
}

.footer-newsletter__text p {
    margin: 0;
    font-size: 0.9375rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.68);
    max-width: 420px;
}

.footer-newsletter__form {
    flex: 1 1 320px;
    min-width: min(100%, 280px);
    max-width: 480px;
}

.footer-newsletter__field {
    display: flex;
    align-items: stretch;
    gap: 0;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(0, 0, 0, 0.35);
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.25);
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.footer-newsletter__field:focus-within {
    border-color: rgba(1, 177, 175, 0.65);
    box-shadow:
        inset 0 1px 2px rgba(0, 0, 0, 0.25),
        0 0 0 3px rgba(1, 177, 175, 0.15);
}

.footer-newsletter__input {
    flex: 1 1 auto;
    min-width: 0;
    width: 100%;
    padding: 14px 18px;
    font-size: 0.9375rem;
    color: #fff;
    background: transparent;
    border: none;
    outline: none;
}

.footer-newsletter__input::placeholder {
    color: rgba(255, 255, 255, 0.45);
}

.footer-newsletter__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-shrink: 0;
    padding: 14px 22px;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #000000 !important;
    background: linear-gradient(135deg, #2dd4d2 0%, #01b1af 55%, #018f8d 100%);
    border: none;
    cursor: pointer;
    transition: filter 0.25s ease, transform 0.2s ease;
    white-space: nowrap;
}

.footer-newsletter__btn span,
.footer-newsletter__btn i {
    position: relative;
    z-index: 1;
    color: #000000 !important;
}

.footer-newsletter__btn:hover {
    filter: brightness(1.08);
    transform: translateY(-1px);
    color: #000000 !important;
}

.footer-newsletter__btn:hover span,
.footer-newsletter__btn:hover i {
    color: #000000 !important;
}

.footer-newsletter__btn:active {
    transform: translateY(0);
}

.footer-newsletter__hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.footer-newsletter__msg {
    width: 100%;
    margin: 12px 0 0;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 0.875rem;
    line-height: 1.45;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-newsletter__msg--success {
    color: #b8fff5;
    background: rgba(1, 177, 175, 0.15);
    border: 1px solid rgba(1, 177, 175, 0.35);
}

.footer-newsletter__msg--info {
    color: rgba(232, 238, 242, 0.9);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-newsletter__msg--error {
    color: #ffc9c9;
    background: rgba(220, 80, 80, 0.12);
    border: 1px solid rgba(220, 80, 80, 0.35);
}

.footer-newsletter__note {
    width: 100%;
    margin: 10px 0 0;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.42);
    letter-spacing: 0.02em;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Mobil / tablet — kompakt bülten kutusu */
@media (max-width: 991px) {
    .footer-newsletter {
        margin: 4px 0 0;
    }

    .footer-newsletter__card {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        padding: 14px 12px;
        border-radius: 14px;
        box-shadow:
            inset 0 1px 0 rgba(255, 255, 255, 0.08),
            0 8px 24px rgba(0, 0, 0, 0.28);
    }

    .footer-newsletter__content {
        flex: none;
        gap: 10px;
        align-items: center;
    }

    .footer-newsletter__icon {
        width: 36px;
        height: 36px;
        font-size: 0.95rem;
        border-radius: 10px;
        box-shadow: none;
    }

    .footer-newsletter__text h4 {
        margin: 0 0 4px;
        font-size: 0.9rem;
        letter-spacing: 0.02em;
    }

    .footer-newsletter__text p {
        font-size: 0.75rem;
        line-height: 1.4;
        max-width: none;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .footer-newsletter__form {
        flex: none;
        width: 100%;
        min-width: 0;
        max-width: none;
    }

    /* Tek satır: e-posta + buton */
    .footer-newsletter__field {
        flex-direction: row;
        align-items: stretch;
        border-radius: 12px;
    }

    .footer-newsletter__input {
        padding: 10px 12px;
        font-size: 0.8125rem;
        border-radius: 12px 0 0 12px;
        background: rgba(0, 0, 0, 0.2);
    }

    .footer-newsletter__btn {
        width: auto;
        min-width: 44px;
        padding: 10px 12px;
        font-size: 0.7rem;
        letter-spacing: 0.03em;
        border-radius: 0 12px 12px 0;
        gap: 4px;
    }

    .footer-newsletter__btn i {
        font-size: 0.85rem;
    }

    .footer-newsletter__msg {
        margin-top: 8px;
        padding: 8px 10px;
        font-size: 0.75rem;
    }

    .footer-newsletter__note {
        margin-top: 6px;
        font-size: 0.65rem;
        line-height: 1.35;
        text-align: center;
    }
}

@media (max-width: 420px) {
    .footer-newsletter__text p {
        -webkit-line-clamp: 1;
    }

    .footer-newsletter__btn span {
        display: inline;
        color: #000000 !important;
    }
}

/* ---- Aydınlık tema — tam okunaklılık ---- */
body.light-mode .footer-newsletter__card {
    background: #ffffff !important;
    border-color: rgba(1, 138, 136, 0.22) !important;
    box-shadow: 0 8px 28px rgba(15, 23, 42, 0.08) !important;
}

body.light-mode .footer-newsletter__card::before {
    background: linear-gradient(
        90deg,
        transparent,
        rgba(1, 177, 175, 0.45) 50%,
        transparent
    );
}

body.light-mode .footer-newsletter__icon {
    color: #018a88 !important;
    background: rgba(1, 177, 175, 0.12) !important;
    border-color: rgba(1, 138, 136, 0.28) !important;
    box-shadow: none;
}

body.light-mode .footer-newsletter__text h4 {
    color: #0f172a !important;
}

body.light-mode .footer-newsletter__text p {
    color: #475569 !important;
}

body.light-mode .footer-newsletter__note {
    color: #64748b !important;
}

body.light-mode .footer-newsletter__field {
    background: #f8fafc !important;
    border-color: rgba(15, 23, 42, 0.12) !important;
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.04) !important;
}

body.light-mode .footer-newsletter__field:focus-within {
    border-color: rgba(1, 138, 136, 0.45) !important;
    box-shadow:
        inset 0 1px 2px rgba(15, 23, 42, 0.04),
        0 0 0 3px rgba(1, 177, 175, 0.12) !important;
}

body.light-mode .footer-newsletter__input {
    color: #0f172a !important;
    background: transparent !important;
}

body.light-mode .footer-newsletter__input::placeholder {
    color: #94a3b8 !important;
}

body.light-mode .footer-newsletter__btn,
body.light-mode .footer-newsletter__btn span,
body.light-mode .footer-newsletter__btn i {
    color: #041214 !important;
    -webkit-text-fill-color: #041214 !important;
}

body.light-mode .footer-newsletter__msg--success {
    color: #0f5c4e !important;
    background: rgba(1, 177, 175, 0.1) !important;
    border-color: rgba(1, 138, 136, 0.28) !important;
}

body.light-mode .footer-newsletter__msg--info {
    color: #334155 !important;
    background: rgba(15, 23, 42, 0.04) !important;
    border-color: rgba(15, 23, 42, 0.1) !important;
}

body.light-mode .footer-newsletter__msg--error {
    color: #991b1b !important;
    background: rgba(220, 80, 80, 0.08) !important;
    border-color: rgba(220, 80, 80, 0.25) !important;
}

@media (max-width: 991px) {
    body.light-mode .footer-newsletter__input {
        background: transparent !important;
        border-radius: 12px 0 0 12px;
    }
}
