@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Inter:wght@400;500;600&display=swap');

:root {
    --bg-color: #030305;
    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;
    --text-muted: #71717a;
    --card-bg: rgba(20, 20, 25, 0.6);
    --card-border: rgba(255, 255, 255, 0.08);
    --accent-gradient: linear-gradient(135deg, #10b981 0%, #06b6d4 100%);
    --accent-glow: rgba(16, 185, 129, 0.4);
    --hot-color: #ff4500;
    --warm-color: #f59e0b;
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
}

#bg-video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    z-index: 0;
    opacity: 0.15; /* Low opacity to keep it subtle */
    pointer-events: none;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
}

.container {
    max-width: 720px;
    margin: 0 auto;
    padding: 4rem 1.5rem;
    position: relative;
    z-index: 1;
}

/* Header */
header {
    text-align: center;
    margin-bottom: 4rem;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

header.compact {
    margin-bottom: 2.5rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid var(--card-border);
}

header.compact .subtitle {
    opacity: 0;
    height: 0;
    margin: 0;
    overflow: hidden;
}

header.compact .main-button {
    padding: 0.8rem 2.5rem;
    font-size: 0.95rem;
}

h1 {
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 0.5rem;
    color: #ffffff;
    text-shadow: 0 0 40px rgba(255, 255, 255, 0.1);
}

h1 .highlight {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.subtitle {
    color: var(--text-secondary);
    font-size: 1.2rem;
    font-weight: 300;
    margin-bottom: 3rem;
    transition: all 0.5s ease;
}

/* Button */
.main-button {
    position: relative;
    background: var(--accent-gradient);
    color: #ffffff;
    border: none;
    padding: 1.2rem 3.5rem;
    font-size: 1.1rem;
    font-weight: 700;
    font-family: 'Outfit', sans-serif;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: 0.05em;
    overflow: hidden;
    box-shadow: 0 10px 25px var(--accent-glow);
}

.main-button::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: all 0.6s ease;
}

.main-button:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(16, 185, 129, 0.5);
}

.main-button:hover:not(:disabled)::before {
    left: 100%;
}

.main-button:disabled {
    background: #27272a;
    color: #52525b;
    box-shadow: none;
    cursor: not-allowed;
    transform: none;
}

.last-updated {
    margin-top: 1.5rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}

.hidden {
    display: none !important;
}

/* Status */
.status-container {
    text-align: center;
    padding: 4rem 0;
    animation: fadeIn 0.5s ease;
}

.spinner {
    width: 48px;
    height: 48px;
    border: 3px solid rgba(255,255,255,0.05);
    border-radius: 50%;
    border-top-color: #10b981;
    border-right-color: #06b6d4;
    animation: spin 1s cubic-bezier(0.68, -0.55, 0.265, 1.55) infinite;
    margin: 0 auto 1.5rem;
}

#status-text {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-secondary);
    font-family: 'Outfit', sans-serif;
    letter-spacing: 0.05em;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

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

/* Results */
.results-count-text {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    text-align: left;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
    font-family: 'Outfit', sans-serif;
}

.cards-grid {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

/* Editorial Card */
.card {
    background-color: var(--card-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 2.5rem;
    position: relative;
    animation: fadeIn 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s ease, border-color 0.4s ease;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.15);
}

.card-header-top {
    display: flex;
    align-items: center;
    margin-bottom: 1.25rem;
}

.temp-indicator {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.8rem;
    border-radius: 50px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.05);
}

.temp-muito-quente { color: var(--hot-color); border-color: rgba(255, 69, 0, 0.2); background: rgba(255, 69, 0, 0.05); }
.temp-quente { color: var(--warm-color); border-color: rgba(245, 158, 11, 0.2); background: rgba(245, 158, 11, 0.05); }
.temp-relevante { color: var(--text-secondary); }

.card-title {
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
}

.card-title a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.2s;
}

.card-title a:hover {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.card-meta {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    font-weight: 500;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--card-border);
}

.sources-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.6rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-primary);
    align-self: flex-start;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.sources-badge.single-source {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.15);
    color: var(--text-muted);
}

.sources-list {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.source-link {
    color: var(--text-primary);
    text-decoration: underline;
    text-decoration-color: rgba(255,255,255,0.2);
    transition: all 0.2s;
}

.source-link:hover {
    color: var(--accent-glow);
    text-decoration-color: var(--accent-glow);
}

/* Content Sections */
.section-block {
    margin-bottom: 1.5rem;
    position: relative;
}

.section-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    font-weight: 700;
    margin-bottom: 0.5rem;
    font-family: 'Outfit', sans-serif;
}

.card-text {
    font-size: 1.05rem;
    color: #d4d4d8;
    line-height: 1.7;
}

.card-text strong {
    color: #ffffff;
    font-weight: 600;
}

.hooks-list {
    list-style: none;
    margin-top: 0.8rem;
}

.hooks-list li {
    font-size: 1rem;
    color: #e4e4e7;
    margin-bottom: 0.8rem;
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.6;
}

.hooks-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #10b981;
    font-weight: bold;
    font-size: 1.2rem;
    line-height: 1;
    top: 0.1rem;
}

/* Error */
.error-container {
    background: rgba(255, 69, 0, 0.05);
    border: 1px solid rgba(255, 69, 0, 0.2);
    color: #ff6b6b;
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    margin-top: 2rem;
    font-size: 0.95rem;
    backdrop-filter: blur(10px);
}

/* Mobile Adjustments */
@media (max-width: 600px) {
    .container {
        padding: 2rem 1.25rem;
    }
    
    h1 { font-size: 2.25rem; }
    
    .subtitle { font-size: 1rem; }
    
    .card { padding: 1.5rem; border-radius: 16px; }
    
    .card-title {
        font-size: 1.4rem;
    }
    
    .main-button {
        width: 100%;
        padding: 1.2rem;
    }
}
