/* ==========================================================================
   SquidBay — Index Page Styles
   Contact form, pulse card, compat badges
   ========================================================================== */

/* --------------------------------------------------------------------------
   Contact Form
   -------------------------------------------------------------------------- */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 520px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(0, 217, 255, 0.12);
    border-radius: 16px;
    padding: 36px 32px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-label { font-size: 0.85rem; color: var(--text-muted); font-weight: 500; letter-spacing: 0.02em; }

.form-input,
.form-textarea {
    width: 100%; padding: 14px 18px; background: var(--dark);
    border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 10px;
    color: var(--white); font-family: var(--font-display); font-size: 1rem;
    outline: none; transition: border-color 0.2s ease, box-shadow 0.2s ease; box-sizing: border-box;
}
.form-input:focus, .form-textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(0, 217, 255, 0.1); }
.form-input::placeholder, .form-textarea::placeholder { color: var(--text-muted); opacity: 0.7; }
.form-textarea { resize: vertical; min-height: 130px; line-height: 1.5; }

.contact-form .btn-submit {
    align-self: center; padding: 14px 48px; border-radius: 10px;
    font-size: 1rem; font-weight: 600; margin-top: 4px; cursor: pointer; transition: all 0.2s ease;
}
.contact-form .btn-submit:hover { transform: translateY(-2px); box-shadow: 0 6px 30px rgba(0, 217, 255, 0.3); }

/* --------------------------------------------------------------------------
   Compatibility Badges
   -------------------------------------------------------------------------- */
.compat-section { margin-top: 24px; animation: fadeInUp 0.6s ease-out 0.4s both; }
.compat-label { font-size: 0.75rem; color: var(--text-muted); margin-bottom: 10px; opacity: 0.7; }
.compat-label a, .compat-api-link { color: rgba(0, 217, 255, 0.65); text-decoration: none; transition: color 0.2s; }
.compat-label a:hover, .compat-api-link:hover { color: var(--primary); }

/* Subtitle shimmer — soft cyan light sweep */
.hero-shimmer {
    background: linear-gradient(
        90deg,
        var(--text-muted) 0%,
        var(--text-muted) 40%,
        rgba(0, 217, 255, 0.7) 50%,
        var(--text-muted) 60%,
        var(--text-muted) 100%
    );
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmerWave 5s ease-in-out infinite;
}

@keyframes shimmerWave {
    0%, 100% { background-position: 200% center; }
    50% { background-position: -200% center; }
}
.compat-badges { display: flex; flex-wrap: wrap; gap: 8px; }
.compat-badge {
    font-size: 0.7rem; font-family: var(--font-mono); color: var(--text-muted);
    background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 5px 12px; border-radius: 16px; transition: border-color 0.2s, color 0.2s;
}
.compat-badge:hover { border-color: rgba(0, 217, 255, 0.25); color: var(--primary); }

/* --------------------------------------------------------------------------
   Pulse Card — Hero status panel
   -------------------------------------------------------------------------- */
.hero-pulse { animation: fadeInUp 0.6s ease-out 0.5s both; }

.pulse-card {
    background: rgba(15, 20, 25, 0.8); border: 1px solid rgba(0, 217, 255, 0.12);
    border-radius: 16px; padding: 20px;
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}

.pulse-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.pulse-status { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

.pulse-dot {
    width: 8px; height: 8px; background: #00D26A; border-radius: 50%;
    box-shadow: 0 0 8px rgba(0, 210, 106, 0.5); animation: pulse 2s infinite; flex-shrink: 0;
}
.pulse-dot.offline { background: var(--red); box-shadow: 0 0 8px rgba(255, 95, 87, 0.5); animation: none; }

.pulse-status-text { font-size: 0.75rem; font-family: var(--font-mono); color: var(--text-muted); }
.pulse-counts { font-size: 0.7rem; color: var(--text-muted); opacity: 0.6; }

.pulse-sats { text-align: right; flex-shrink: 0; }
.pulse-sats-value { display: block; font-size: 0.85rem; font-family: var(--font-mono); color: var(--white); font-weight: 600; white-space: nowrap; }
.pulse-sats-label { display: block; font-size: 0.6rem; color: var(--text-muted); opacity: 0.5; text-transform: uppercase; letter-spacing: 0.05em; margin-top: 1px; }

.pulse-divider { height: 1px; background: rgba(255, 255, 255, 0.06); margin: 14px 0; }

.pulse-feed { display: flex; flex-direction: column; gap: 10px; min-height: 60px; }
.pulse-feed-item { display: flex; align-items: center; gap: 10px; font-size: 0.8rem; color: var(--text-muted); }
.pulse-feed-icon { font-size: 1rem; flex-shrink: 0; width: 20px; text-align: center; }
.pulse-feed-text { flex: 1; line-height: 1.3; min-width: 0; }
.pulse-feed-text strong { color: var(--white); font-weight: 600; }
.pulse-feed-text a, .pulse-feed a { color: inherit; text-decoration: none; }
.pulse-card a { text-decoration: none; }
.pulse-feed-meta { font-size: 0.65rem; color: var(--text-muted); opacity: 0.6; font-family: var(--font-mono); flex-shrink: 0; white-space: nowrap; }

/* Pulse card feed link styles */

/* --------------------------------------------------------------------------
   Mobile
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
    .contact-form { padding: 28px 24px; gap: 18px; border-radius: 14px; }
    .form-input, .form-textarea { padding: 13px 16px; font-size: 16px; }
    .form-textarea { min-height: 120px; }
    .contact-form .btn-submit { width: 100%; padding: 15px 32px; }
    .compat-section { margin-top: 20px; }
    .compat-badges { gap: 6px; }
    .compat-badge { font-size: 0.65rem; padding: 4px 10px; }
    .pulse-card { padding: 16px; }
    .pulse-sats-value { font-size: 0.8rem; }
    .pulse-feed-item { font-size: 0.75rem; }
}

@media (max-width: 480px) {
    .contact-form { padding: 24px 20px; margin: 0 -4px; }
}
