/* 
 * Newsletter Widget Footer Integration
 * Footer'da newsletter widget'ı için responsive tasarım
 */

/* ============================================
   Newsletter Widget - Optimize for Footer
   ============================================ */

.footer .newsletter-widget {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 35px;
    margin-bottom: 45px;
    position: relative;
    overflow: hidden;
}

.footer .newsletter-widget::before {
    background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
}

.footer .newsletter-content {
    display: flex;
    align-items: center;
    gap: 25px;
    margin-bottom: 25px;
}

.footer .newsletter-icon {
    font-size: 56px;
    color: rgba(255, 255, 255, 0.9);
    flex-shrink: 0;
    min-width: 70px;
    text-align: center;
}

.footer .newsletter-text h3 {
    color: white;
    font-size: 24px;
    margin: 0 0 8px 0;
    font-weight: 600;
}

.footer .newsletter-text p {
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
    font-size: 15px;
    line-height: 1.5;
}

.footer .newsletter-form {
    width: 100%;
}

.footer .newsletter-input-group {
    display: flex;
    gap: 12px;
    align-items: flex-end;
    flex-wrap: wrap;
}

.footer .newsletter-input-group input {
    flex: 1;
    min-width: 200px;
    padding: 12px 16px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.95);
    color: #333;
    font-size: 14px;
    transition: all 0.3s ease;
}

.footer .newsletter-input-group input::placeholder {
    color: #999;
}

.footer .newsletter-input-group input:focus {
    outline: none;
    border-color: white;
    background: white;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.2);
}

.footer .newsletter-btn {
    padding: 12px 24px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.85) 100%);
    color: #0399DE;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    flex-shrink: 0;
}

.footer .newsletter-btn:hover {
    background: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.footer .newsletter-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.footer .newsletter-message {
    display: none;
    padding: 14px 16px;
    border-radius: 8px;
    margin-top: 15px;
    font-size: 14px;
    animation: slideDown 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.footer .newsletter-message.success {
    background: rgba(76, 175, 80, 0.2);
    border: 1px solid rgba(76, 175, 80, 0.4);
    color: #e8f5e9;
}

.footer .newsletter-message.error {
    background: rgba(244, 67, 54, 0.2);
    border: 1px solid rgba(244, 67, 54, 0.4);
    color: #ffebee;
}

/* ============================================
   Tablet Responsiveness (768px and below)
   ============================================ */

@media (max-width: 768px) {
    .footer .newsletter-widget {
        padding: 25px;
        margin-bottom: 35px;
    }

    .footer .newsletter-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
        margin-bottom: 20px;
    }

    .footer .newsletter-icon {
        font-size: 48px;
        min-width: auto;
    }

    .footer .newsletter-text h3 {
        font-size: 20px;
        margin-bottom: 6px;
    }

    .footer .newsletter-text p {
        font-size: 14px;
    }

    .footer .newsletter-input-group {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .footer .newsletter-input-group input {
        width: 100%;
        min-width: unset;
    }

    .footer .newsletter-btn {
        width: 100%;
        justify-content: center;
    }

    .footer .newsletter-message {
        justify-content: center;
        margin-top: 12px;
    }
}

/* ============================================
   Mobile Responsiveness (480px and below)
   ============================================ */

@media (max-width: 480px) {
    .footer .newsletter-widget {
        padding: 18px;
        border-radius: 8px;
        margin-bottom: 25px;
    }

    .footer .newsletter-icon {
        font-size: 40px;
    }

    .footer .newsletter-text h3 {
        font-size: 18px;
        margin-bottom: 5px;
    }

    .footer .newsletter-text p {
        font-size: 13px;
        line-height: 1.4;
    }

    .footer .newsletter-input-group input {
        padding: 10px 12px;
        font-size: 13px;
    }

    .footer .newsletter-btn {
        padding: 10px 16px;
        font-size: 13px;
    }

    .footer .newsletter-message {
        font-size: 13px;
        padding: 12px 14px;
    }
}

/* ============================================
   Dark Mode Support
   ============================================ */

[data-theme="dark"] .footer .newsletter-widget {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.03) 100%);
    border-color: rgba(255, 255, 255, 0.15);
}

[data-theme="dark"] .footer .newsletter-input-group input {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
    color: #f0f0f0;
}

[data-theme="dark"] .footer .newsletter-input-group input::placeholder {
    color: #999;
}

[data-theme="dark"] .footer .newsletter-input-group input:focus {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.3);
}

[data-theme="dark"] .footer .newsletter-btn {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.08) 100%);
    color: #02AEEC;
}

[data-theme="dark"] .footer .newsletter-btn:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* ============================================
   Accessibility
   ============================================ */

.footer .newsletter-btn:focus {
    outline: 2px solid white;
    outline-offset: 2px;
}

.footer .newsletter-input-group input:focus-visible {
    outline: 2px solid white;
    outline-offset: -1px;
}

/* ============================================
   Print Styles
   ============================================ */

@media print {
    .footer .newsletter-widget {
        background: none;
        border: none;
        padding: 0;
        margin: 20px 0;
    }

    .footer .newsletter-input-group input,
    .footer .newsletter-btn {
        display: none;
    }

    .footer .newsletter-text h3,
    .footer .newsletter-text p {
        display: block;
    }
}
