/* ============================================================
   InDown.io Clone — Custom Styles
   Replicates the look & feel of indown.io (Bootstrap 5 based)
   ============================================================ */

:root {
    --id-primary: #d62976;
    --id-secondary: #4f5bd5;
    --id-gradient: linear-gradient(90deg, #feda75, #fa7e1e, #d62976, #962fbf, #4f5bd5);
    --id-bg: #fafafa;
    --id-border: #dbdbdb;
}

body {
    background: var(--id-bg);
    color: #262626;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* ---------- Navbar / Header ---------- */
.header {
    background: #fff;
    border-bottom: 1px solid var(--id-border);
    position: sticky;
    top: 0;
    z-index: 1030;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.navbar-brand {
    font-size: 1.4rem;
    letter-spacing: 0.5px;
    color: #111 !important;
}

.navbar-brand .text-primary {
    background: var(--id-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-fill-color: transparent;
}

.navbar .nav-link {
    font-weight: 500;
    color: #262626;
    margin: 0 0.25rem;
}

.navbar .nav-link.active,
.navbar .nav-link:hover {
    color: var(--id-primary);
}

/* ---------- Hero box / tabs ---------- */
.box {
    background: #fff;
    border: 1px solid var(--id-border);
    border-radius: 12px;
    padding: 24px;
    margin: 20px auto;
    max-width: 1100px;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.05);
}

.tagline {
    color: var(--id-primary);
    letter-spacing: 1px;
}

.tabs {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0;
    margin: 16px 0;
    justify-content: center;
    border-bottom: 1px solid var(--id-border);
    padding-bottom: 16px;
}

.tabs .tab-link .tab-anchor {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 24px;
    color: #555;
    text-decoration: none;
    font-weight: 600;
    border: 1px solid transparent;
    transition: all 0.2s ease;
}

.tabs .tab-link.current .tab-anchor {
    background: var(--id-gradient);
    color: #fff;
    border-color: transparent;
}

.tabs .tab-link:not(.current) .tab-anchor:hover {
    background: #f1f1f1;
    color: var(--id-primary);
}

.tab-content > h2 {
    color: #262626;
    font-weight: 600;
}

/* ---------- Download form ---------- */
.private-label {
    display: block;
    margin-bottom: 12px;
    font-weight: 600;
}

.link-area {
    border-radius: 24px;
    overflow: hidden;
}

.input-group-text {
    background: #f8f8f8;
    color: #555;
    border-color: var(--id-border);
}

.search-box {
    border-color: var(--id-border);
    padding: 0.6rem 1rem;
}

.search-box:focus {
    box-shadow: 0 0 0 0.2rem rgba(214, 41, 118, 0.15);
    border-color: var(--id-primary);
}

.btn-primary,
.input-group-text.bg-primary.text-white {
    background: var(--id-gradient) !important;
    border: none;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.btn-primary:hover,
.btn-primary:focus {
    filter: brightness(1.05);
}

.btn-primary:disabled {
    background: #ccc !important;
}

/* ---------- Result / Download panel ---------- */
.result-panel {
    margin-top: 24px;
}

.result-card {
    background: #fff;
    border: 1px solid var(--id-border);
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

.result-card h5 {
    font-weight: 600;
}

.rm-embed {
    border: none;
    border-radius: 8px;
    width: 100%;
    min-height: 560px;
    background: #fff;
}

.info-alert {
    border-left: 4px solid var(--id-primary);
}

/* ---------- Article / content ---------- */
.heading {
    font-weight: 700;
    color: #1c1c1c;
    margin-bottom: 12px;
}

.article {
    color: #555;
    line-height: 1.8;
}

.article li {
    margin-bottom: 6px;
}

/* ---------- Accordion (FAQ) ---------- */
.accordion-button:not(.collapsed) {
    background: rgba(214, 41, 118, 0.06);
    color: var(--id-primary);
    box-shadow: none;
}

.accordion-button:focus {
    box-shadow: none;
}

/* ---------- Footer ---------- */
.mainfooter {
    background: #fff;
    border-top: 1px solid var(--id-border);
    padding-top: 8px;
}

.mainfooter h4.heading {
    font-size: 1rem;
    letter-spacing: 1px;
}

.mainfooter ul.list-unstyled li {
    margin-bottom: 8px;
}

.mainfooter ul.list-unstyled a {
    color: #555;
    text-decoration: none;
}

.mainfooter ul.list-unstyled a:hover {
    color: var(--id-primary);
}

.social-network {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 12px;
    padding: 0;
    flex-wrap: wrap;
}

.social-network a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    color: #fff;
    text-decoration: none;
    transition: transform 0.2s ease;
}

.social-network a:hover {
    transform: scale(1.1);
}

.icoFacebook { background: #3b5998; }
.icowhatsapp { background: #25d366; }
.icoTelegram { background: #0088cc; }
.icoTwitter  { background: #111; }

.copy {
    border-top: 1px solid var(--id-border);
    margin-top: 16px;
    padding: 12px 0;
    color: #777;
    font-size: 0.85rem;
}

/* ---------- Utilities ---------- */
.loader-hidden { display: none; }

@media (max-width: 767px) {
    .rm-embed { min-height: 420px; }
    .box { padding: 16px; }
}