/* Importando uma fonte moderna */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;800&display=swap');

:root {
    --primary-gradient: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    --bg-color: #f8f9fa;
    --card-bg: #ffffff;
    --text-main: #262626;
    --text-muted: #666666;
    --insta-blue: #0095f6;
    --video-color: #fd1d1d;
    --audio-color: #833ab4;
    --photo-color: #58c038;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
}

/* NAVBAR PROFISSIONAL */
.navbar {
    background: #ffffff;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.nav-container a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 8px 16px;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.nav-container a:hover {
    color: var(--insta-blue);
    background: rgba(0, 149, 246, 0.05);
}

.nav-container a.active {
    color: #fff;
    background: var(--primary-gradient);
}

/* CONTAINER PRINCIPAL */
.container {
    max-width: 700px;
    margin: 50px auto;
    padding: 20px;
    text-align: center;
}

header h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 10px;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

header p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 40px;
}

/* ÁREA DE INPUT */
.input-group {
    display: flex;
    background: #fff;
    padding: 8px;
    border-radius: 50px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    margin-bottom: 30px;
    border: 2px solid transparent;
    transition: border 0.3s;
}

.input-group:focus-within {
    border: 2px solid #e6683c;
}

input {
    flex: 1;
    border: none;
    padding: 15px 25px;
    font-size: 1rem;
    border-radius: 50px;
    outline: none;
    color: #333;
}

button {
    background: var(--primary-gradient);
    color: #fff;
    border: none;
    padding: 0 35px;
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s, opacity 0.2s;
}

button:hover {
    opacity: 0.9;
    transform: scale(1.02);
}

button:disabled {
    filter: grayscale(1);
    cursor: not-allowed;
}

/* CARDS DE RESULTADO */
.result-card {
    background: #fff;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.08);
    margin-top: 30px;
    animation: slideUp 0.4s ease-out;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.result-card h3 {
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.btn-dl {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
    color: #fff;
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 12px;
    font-weight: 700;
    transition: filter 0.2s;
}

.btn-dl:hover {
    filter: brightness(1.1);
}

.bg-video { background-color: var(--video-color); }
.bg-audio { background-color: var(--audio-color); }
.bg-photo { background-color: var(--photo-color); }

/* LOADER */
#loader {
    margin: 20px 0;
    color: var(--insta-blue);
    font-weight: 600;
}

.hidden { display: none; }

/* SEO TEXT SECTION */
.seo-text {
    margin-top: 80px;
    text-align: left;
    background: #fff;
    padding: 40px;
    border-radius: 20px;
    border: 1px solid #eee;
}

.seo-text h2 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #262626;
}

.seo-text p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 15px;
}

/* RESPONSIVIDADE */
@media (max-width: 600px) {
    .input-group {
        flex-direction: column;
        background: transparent;
        box-shadow: none;
        gap: 10px;
    }
    input {
        background: #fff;
        box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    }
    button {
        padding: 15px;
    }
    header h1 {
        font-size: 1.8rem;
    }
    .nav-container {
        gap: 10px;
    }
    .nav-container a {
        font-size: 0.8rem;
        padding: 6px 10px;
    }
}

/* ... mantenha o código anterior e adicione/atualize estes: */

/* ESTILO DOS BOXES DE ANÚNCIO */
.ad-slot {
    background: #f0f2f5;
    border: 1px dashed #ccc;
    margin: 20px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 12px;
    border-radius: 8px;
    overflow: hidden;
}

.ad-top {
    width: 100%;
    height: 90px; /* Padrão Leaderboard */
    max-width: 728px;
}

.ad-middle {
    width: 100%;
    min-height: 250px; /* Padrão Retângulo Médio */
    max-width: 300px;
}

.ad-bottom {
    width: 100%;
    height: 90px;
    max-width: 728px;
    margin-top: 40px;
}

/* SPINNER DE CARREGAMENTO */
.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(0,0,0,0.1);
    border-top: 4px solid #cc2366;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 10px;
}

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

/* RESULT CARD AJUSTADO */
.result-card {
    background: #fff;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.08);
    margin-top: 20px;
    border: 2px solid #58c038; /* Destaque verde para o sucesso */
}