/* The Linux Club Newsletter Form Styles */

.tlc-newsletter-form {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 2px solid #2196F3;
    border-radius: 12px;
    padding: 25px;
    margin: 20px 0;
    box-shadow: 0 4px 15px rgba(33, 150, 243, 0.2);
    transition: all 0.3s ease;
}

.tlc-newsletter-form:hover {
    box-shadow: 0 6px 25px rgba(33, 150, 243, 0.3);
    transform: translateY(-2px);
}

.newsletter-header {
    text-align: center;
    margin-bottom: 20px;
}

.newsletter-header h3 {
    color: #2196F3 !important;
    font-size: 24px !important;
    font-weight: bold !important;
    margin-bottom: 10px !important;
    margin-top: 0 !important;
}

.newsletter-header h3::after {
    display: none !important;
}

.newsletter-header p {
    color: #666;
    font-size: 14px;
    margin: 0 !important;
}

.newsletter-form .form-group {
    margin-bottom: 15px;
}

.newsletter-input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.newsletter-input:focus {
    outline: none;
    border-color: #2196F3;
    box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.1);
}

.newsletter-submit-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(33, 150, 243, 0.3);
}

.newsletter-submit-btn:hover {
    background: linear-gradient(135deg, #1976D2 0%, #1565C0 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(33, 150, 243, 0.4);
}

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

.newsletter-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.newsletter-message {
    padding: 12px;
    border-radius: 6px;
    margin-top: 15px;
    font-size: 14px;
    text-align: center;
    font-weight: 500;
}

.newsletter-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.newsletter-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.newsletter-privacy {
    text-align: center;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e0e0e0;
}

.newsletter-privacy small {
    color: #999;
    font-size: 12px;
}

/* Sidebar Widget Styles */
.widget .tlc-newsletter-form {
    margin: 0;
}

.widget .tlc-newsletter-form .newsletter-header h3 {
    font-size: 20px !important;
}

/* Loading animation */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.btn-loading::before {
    content: "";
    display: inline-block;
    width: 14px;
    height: 14px;
    margin-right: 8px;
    border: 2px solid #ffffff;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

/* Success Page Notification */
.newsletter-notification {
    background: #d4edda;
    border: 2px solid #4CAF50;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    text-align: center;
    color: #155724;
}

.newsletter-notification h2 {
    color: #2196F3 !important;
    margin-top: 0 !important;
}

.newsletter-notification.unsubscribed {
    background: #fff3cd;
    border-color: #FF9800;
    color: #856404;
}

.newsletter-notification.unsubscribed h2 {
    color: #FF9800 !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .tlc-newsletter-form {
        padding: 20px;
    }

    .newsletter-header h3 {
        font-size: 20px !important;
    }

    .newsletter-submit-btn {
        font-size: 14px;
        padding: 12px;
    }
}

/* Footer Newsletter Specific Styles */
.footer-newsletter-section .tlc-newsletter-form {
    background: rgba(33, 150, 243, 0.05);
    border-color: #2196F3;
}

.footer-newsletter-section .newsletter-header h3 {
    color: #2196F3 !important;
}

.footer-newsletter-section .newsletter-header p {
    color: #9CA3AF;
}

/* Ensure footer newsletter is responsive */
@media (max-width: 768px) {
    .footer-newsletter-section {
        padding: 1.5rem 1rem !important;
    }
    
    .footer-newsletter-section > div {
        max-width: 100% !important;
    }
}

/* Footer Newsletter - Fix text visibility and make form compact */
.footer-newsletter-section .tlc-newsletter-form {
    background: rgba(33, 150, 243, 0.08);
    border-color: #2196F3;
    padding: 20px;
    max-width: 500px;
    margin: 0 auto;
}

.footer-newsletter-section .newsletter-header h3 {
    color: #2196F3 !important;
    font-size: 20px !important;
}

.footer-newsletter-section .newsletter-header p {
    color: #E5E7EB !important;
    opacity: 0.9;
}

.footer-newsletter-section .newsletter-input {
    padding: 10px 12px;
    font-size: 14px;
}

.footer-newsletter-section .newsletter-submit-btn {
    padding: 10px;
    font-size: 14px;
}

.footer-newsletter-section .newsletter-privacy small {
    color: #D1D5DB !important;
    opacity: 0.8;
}

.footer-newsletter-section .newsletter-message {
    font-size: 13px;
}

/* Footer Newsletter - Right Column Layout (40% width) - BLACK TEXT */
.footer-newsletter-right .tlc-newsletter-form {
    background: #FFFFFF !important;
    border-color: #2196F3 !important;
    padding: 20px !important;
    margin: 0 !important;
}

.footer-newsletter-right .newsletter-header h3 {
    color: #2196F3 !important;
    font-size: 18px !important;
}

.footer-newsletter-right .newsletter-header p {
    color: #333333 !important;
    opacity: 1 !important;
}

.footer-newsletter-right .newsletter-input {
    background: #FFFFFF !important;
    border: 2px solid #e0e0e0 !important;
    color: #333333 !important;
    padding: 10px 12px !important;
    font-size: 14px !important;
}

.footer-newsletter-right .newsletter-input::placeholder {
    color: #999999 !important;
}

.footer-newsletter-right .newsletter-input:focus {
    background: #FFFFFF !important;
    border-color: #2196F3 !important;
}

.footer-newsletter-right .newsletter-submit-btn {
    padding: 10px !important;
    font-size: 14px !important;
}

.footer-newsletter-right .newsletter-privacy small {
    color: #666666 !important;
    opacity: 1 !important;
}

/* Responsive footer layout */
@media (max-width: 968px) {
    .footer-top-section {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }
}

/* CRITICAL FIX: Make typed text in footer newsletter inputs BLACK and visible */
.footer-newsletter-right .newsletter-input,
.footer-newsletter-right input[type="text"],
.footer-newsletter-right input[type="email"] {
    color: #000000 !important;
    -webkit-text-fill-color: #000000 !important;
}

/* Also fix autofill background */
.footer-newsletter-right .newsletter-input:-webkit-autofill,
.footer-newsletter-right input:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 1000px #FFFFFF inset !important;
    -webkit-text-fill-color: #000000 !important;
    color: #000000 !important;
}
