/* Platform Badge */
.badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: rgba(255, 51, 102, 0.1);
    border: 1px solid rgba(255, 51, 102, 0.25);
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
    color: #ff6b8b;
    margin-bottom: 20px;
}

.badge-pill .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--brand-red);
    box-shadow: 0 0 10px var(--brand-red);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.85); }
}

.hero-title {
    font-size: 2.9rem;
    font-weight: 800;
    letter-spacing: -1px;
    line-height: 1.15;
    margin-bottom: 16px;
}

.gradient-text {
    background: linear-gradient(135deg, #ffffff 30%, #a5b4fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-desc {
    max-width: 680px;
    margin: 0 auto 35px;
    font-size: 1.08rem;
    color: var(--text-secondary);
}

/* Universal Search Card */
.search-card {
    max-width: 820px;
    margin: 0 auto 20px;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-lg);
    padding: 12px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5), 0 0 30px rgba(45, 80, 246, 0.15);
    backdrop-filter: blur(20px);
    transition: var(--transition);
}

.search-card:focus-within {
    border-color: rgba(255, 107, 53, 0.5);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6), 0 0 35px rgba(255, 51, 102, 0.25);
}

.input-wrapper {
    display: flex;
    align-items: center;
    background: #090c1a;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 6px 8px;
    gap: 8px;
}

.url-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
}

.url-icon svg {
    width: 20px;
    height: 20px;
}

.input-wrapper input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-size: 1.02rem;
    font-family: inherit;
    padding: 8px 0;
}

.input-wrapper input::placeholder {
    color: var(--text-muted);
}

.btn-paste {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.86rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-paste:hover {
    background: rgba(255, 255, 255, 0.15);
}

.btn-clear {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1rem;
    cursor: pointer;
    padding: 4px 8px;
}

.btn-clear:hover {
    color: white;
}

.btn-download {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--brand-gradient);
    border: none;
    color: white;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 700;
    padding: 12px 26px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    box-shadow: var(--shadow-glow);
    transition: var(--transition);
}

.btn-download:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(255, 51, 102, 0.45);
}

.btn-download:active {
    transform: translateY(0);
}

.btn-arrow {
    width: 18px;
    height: 18px;
    transition: transform 0.2s ease;
}

.btn-download:hover .btn-arrow {
    transform: translateX(4px);
}

.input-tip {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 10px;
    font-size: 0.82rem;
    color: var(--text-muted);
}

.input-tip strong {
    color: var(--text-secondary);
}

/* Inline feedback under the search bar (replaces alert popups) */
.input-msg {
    margin-top: 10px;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    line-height: 1.4;
    text-align: left;
    color: #93c5fd;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.input-msg.error {
    color: #fca5a5;
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.3);
}

.input-wrapper.invalid {
    border-color: rgba(239, 68, 68, 0.6);
}

/* Warning shown inside Instagram/Facebook/TikTok in-app browsers */
.inapp-banner {
    margin-bottom: 12px;
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.4);
    color: #fde68a;
    font-size: 0.88rem;
    line-height: 1.45;
    text-align: left;
}

.inapp-copy {
    margin-top: 8px;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(253, 230, 138, 0.5);
    background: transparent;
    color: #fde68a;
    font-family: inherit;
    font-weight: 700;
    cursor: pointer;
    word-break: break-all;
}

/* Download button while a link is being analyzed */
.btn-download.loading {
    pointer-events: none;
    opacity: 0.85;
}

.btn-download.loading .btn-arrow {
    display: none;
}

.btn-download.loading::after {
    content: '';
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-top-color: #fff;
    border-radius: 50%;
    animation: btnSpin 0.7s linear infinite;
}

@keyframes btnSpin {
    to { transform: rotate(360deg); }
}

/* Why YITDown */
.trust-row {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 18px;
    margin: 15px auto 25px;
    padding: 0;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.trust-row li {
    white-space: nowrap;
    max-width: 100%;
}
/* Telugu / Hindi lines are longer: let a long item wrap instead of scrolling sideways */
.lang-indic .trust-row li { white-space: normal; text-align: center; }

/* Platform Filter Pills */
.platform-pills {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 35px;
}

.pill-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 8px 18px;
    border-radius: var(--radius-full);
    font-size: 0.88rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: var(--transition);
}

.pill-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
    border-color: rgba(255, 255, 255, 0.2);
}

.pill-btn.active {
    background: rgba(45, 80, 246, 0.2);
    border-color: #3b82f6;
    color: white;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
}

.pill-yt { color: var(--accent-yt); }
.pill-ig { color: var(--accent-ig); }
.pill-tt { color: var(--accent-tt); }
.pill-fb { color: var(--accent-fb); }
.pill-x { color: var(--accent-x); }

/* Loader State */
.loading-state {
    max-width: 600px;
    margin: 30px auto;
    padding: 30px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    text-align: center;
}

.spinner {
    width: 44px;
    height: 44px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--brand-orange);
    border-radius: 50%;
    margin: 0 auto 16px;
    animation: spin 0.9s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-text {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.loading-sub {
    font-size: 0.85rem;
    color: var(--text-muted);
}


.pill-icon {
    flex-shrink: 0;
    display: block;
}
