/* ============================================================
   style.css - Todos os estilos do site
   ============================================================ */

/* ===== RESET E BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: #050505;
    color: #fff;
    overflow-x: hidden;
}

/* ===== SCROLL REVEAL ===== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ===== GLASS CARD ===== */
.glass-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.4), inset 0 0 0 1px rgba(255, 255, 255, 0.05);
    transition: all 500ms;
}
.glass-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-4px);
}

/* ===== TEXT GRADIENTS ===== */
.text-gradient {
    background: linear-gradient(to right, #fff, #9ca3af);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-gradient-accent {
    background: linear-gradient(135deg, #DBA520, #576A9F);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== TAG PILL ===== */
.tag-pill {
    background: rgba(219, 165, 32, 0.15);
    border: 1px solid rgba(219, 165, 32, 0.3);
    transition: all 300ms;
}
.tag-pill:hover {
    background: rgba(219, 165, 32, 0.25);
    border-color: rgba(219, 165, 32, 0.5);
}

/* ===== BADGE GLOW ===== */
.badge-glow {
    box-shadow: 0 0 15px rgba(219, 165, 32, 0.3);
}

/* ===== LINE CLAMP ===== */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ===== ARTICLE CARD ===== */
.article-card {
    cursor: pointer;
    transition: all 0.3s ease;
}
.article-card:hover {
    transform: translateY(-4px);
    border-color: rgba(219, 165, 32, 0.3);
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: #0A0A0A;
}
::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* ===== TOAST ===== */
.toast {
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.toast.show {
    transform: translateY(0);
    opacity: 1;
}

/* ===== MOBILE MENU ===== */
.mobile-menu {
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.mobile-menu.open {
    transform: translateX(0);
}

/* ===== MODAL OVERLAY ===== */
.modal-overlay {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

/* ===== PROGRESS BAR ===== */
.progress-bar {
    background: linear-gradient(to right, #DBA520, #576A9F);
}

/* ===== MASK FADE ===== */
.mask-fade {
    mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
}

/* ===== HERO OVERLAY ===== */
.hero-overlay {
    background: linear-gradient(to right, #050505, rgba(5, 5, 5, 0.85), rgba(5, 5, 5, 0.4));
}
.hero-bottom {
    background: linear-gradient(to top, #050505, transparent, rgba(5, 5, 5, 0.4));
}

/* ===== SEARCH INPUT ===== */
.search-input:focus {
    outline: none;
    border-color: rgba(219, 165, 32, 0.5);
    box-shadow: 0 0 0 3px rgba(219, 165, 32, 0.15);
}

/* ===== BOOKMARK (Mobile Optimized) ===== */
.bookmark-btn {
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    touch-action: manipulation;
}
.bookmark-btn.bookmarked {
    background: rgba(219, 165, 32, 0.2) !important;
    border-color: rgba(219, 165, 32, 0.5) !important;
    box-shadow: 0 0 20px rgba(219, 165, 32, 0.15);
}
.bookmark-btn.bookmarked [data-lucide="bookmark-check"] {
    color: #DBA520 !important;
}
.bookmark-btn:active {
    transform: scale(0.85);
}

@media (max-width: 768px) {
    .bookmark-btn {
        min-width: 44px;
        min-height: 44px;
        padding: 10px;
        border-radius: 12px;
    }
    .bookmark-btn [data-lucide] {
        width: 20px !important;
        height: 20px !important;
    }
}

/* ===== BOOKMARK SHEET (Mobile) ===== */
.bookmark-sheet {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: #0A0A0A;
    border-radius: 20px 20px 0 0;
    padding: 20px;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.8);
}
.bookmark-sheet.active {
    transform: translateY(0);
}
.bookmark-sheet::before {
    content: '';
    display: block;
    width: 40px;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    margin: 0 auto 16px;
}

/* ===== FAB ===== */
#fabBookmarks:active {
    transform: scale(0.85);
}
#fabBadge {
    transition: all 0.3s ease;
}

/* ===== ARTIGO (Página Individual) ===== */
.article-content {
    max-width: 800px;
    margin: 0 auto;
}
.article-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #fff;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}
.article-content p {
    color: #d1d5db;
    font-weight: 300;
    line-height: 1.8;
    margin-bottom: 1.25rem;
}
.article-content ul {
    color: #d1d5db;
    font-weight: 300;
    list-style: disc;
    padding-left: 1.5rem;
    margin-bottom: 1.25rem;
}
.article-content ul li {
    margin-bottom: 0.5rem;
}
.article-content strong {
    color: #fff;
    font-weight: 500;
}

.back-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #9ca3af;
    transition: color 0.3s;
}
.back-button:hover {
    color: #fff;
}

/* ===== RESPONSIVO ===== */
@media (max-width: 768px) {
    .hero-overlay {
        background: linear-gradient(to right, #050505, rgba(5, 5, 5, 0.9));
    }
    .article-content {
        padding: 0 0.5rem;
    }
    .article-content h3 {
        font-size: 1.1rem;
    }
}