/**
 * IAM Gatekeepers - MS-DOS Terminal Newsletter Signup
 * Retro terminal styling for newsletter subscription form
 */

.iam-newsletter-container {
    background: #000000;
    border: 2px solid #00ff00;
    padding: 20px;
    margin: 30px 0;
    font-family: 'VT323', 'Share Tech Mono', monospace;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.3);
    max-width: 600px;
}

.iam-newsletter-header {
    color: #00ff00;
    font-size: 24px;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.iam-newsletter-header::before {
    content: '> ';
    color: #00ffff;
}

.iam-newsletter-description {
    color: #00ff00;
    font-size: 16px;
    margin-bottom: 20px;
    line-height: 1.6;
}

.iam-newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.iam-newsletter-input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.iam-newsletter-label {
    color: #00ffff;
    font-size: 14px;
    text-transform: uppercase;
}

.iam-newsletter-label::before {
    content: '$ ';
    color: #ffff00;
}

.iam-newsletter-input {
    background: #000000;
    border: 1px solid #00ff00;
    color: #00ff00;
    font-family: 'VT323', 'Share Tech Mono', monospace;
    font-size: 18px;
    padding: 12px;
    outline: none;
    transition: all 0.3s ease;
}

.iam-newsletter-input:focus {
    border-color: #00ffff;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

.iam-newsletter-input::placeholder {
    color: #006600;
}

.iam-newsletter-submit {
    background: #000000;
    border: 2px solid #00ff00;
    color: #00ff00;
    font-family: 'VT323', 'Share Tech Mono', monospace;
    font-size: 20px;
    padding: 12px 24px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.iam-newsletter-submit:hover {
    background: #00ff00;
    color: #000000;
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.6);
}

.iam-newsletter-submit:active {
    transform: scale(0.98);
}

.iam-newsletter-submit::before {
    content: '[ ';
}

.iam-newsletter-submit::after {
    content: ' ]';
}

/* Success/Error Messages */
.iam-newsletter-message {
    padding: 12px;
    margin-top: 15px;
    border: 1px solid;
    font-size: 16px;
    animation: fadeIn 0.5s ease;
}

.iam-newsletter-message.success {
    border-color: #00ff00;
    color: #00ff00;
    background: rgba(0, 255, 0, 0.1);
}

.iam-newsletter-message.success::before {
    content: '✓ ';
    color: #00ffff;
}

.iam-newsletter-message.error {
    border-color: #ff0000;
    color: #ff0000;
    background: rgba(255, 0, 0, 0.1);
}

.iam-newsletter-message.error::before {
    content: '✗ ';
    color: #ffff00;
}

/* Loading State */
.iam-newsletter-submit.loading {
    opacity: 0.6;
    cursor: wait;
}

.iam-newsletter-submit.loading::after {
    content: ' █';
    animation: blink-cursor 0.7s infinite;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes blink-cursor {
    0%, 49% { opacity: 1; }
    50%, 100% { opacity: 0; }
}

/* Responsive Design */
@media (max-width: 768px) {
    .iam-newsletter-container {
        padding: 15px;
        margin: 20px 0;
    }

    .iam-newsletter-header {
        font-size: 20px;
    }

    .iam-newsletter-description {
        font-size: 14px;
    }

    .iam-newsletter-input {
        font-size: 16px;
    }
}

/* Footer Placement Variant */
.site-footer .iam-newsletter-container {
    max-width: 100%;
    margin: 20px auto;
}

/* Sidebar Placement Variant */
.sidebar .iam-newsletter-container {
    max-width: 100%;
}
