/* ============================================
   STYLES.CSS — LARENATECH
   ============================================ */

/* --------------------------------------------
   1. RESET & BASE
   -------------------------------------------- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    scroll-behavior: smooth;
    background: #000;
    color: #fff;
}

/* --------------------------------------------
   2. SCROLLBAR
   -------------------------------------------- */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #000; }
::-webkit-scrollbar-thumb { background: #ea580c; border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: #fff; }
* { scrollbar-color: #ea580c #000; scrollbar-width: thin; }

/* --------------------------------------------
   3. BACKGROUND TECH DOTS
   -------------------------------------------- */
.bg-tech-dots {
    background-color: #000;
    background-image: radial-gradient(
        rgba(234, 88, 12, 0.15) 1px,
        transparent 1px
    );
    background-size: 30px 30px;
}

/* --------------------------------------------
   4. NAVBAR SCROLLED
   -------------------------------------------- */
#navbar {
    transition: padding 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}

#navbar.scrolled {
    background: rgba(0, 0, 0, 0.95);
    padding: 12px 0;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(234, 88, 12, 0.1);
}

/* --------------------------------------------
   5. ANIMAÇÕES GLOBAIS
   -------------------------------------------- */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-50px); }
    to   { opacity: 1; transform: translateX(0); }
}

@keyframes glow {
    0%, 100% { box-shadow: 0 0 20px rgba(234, 88, 12, 0.3); }
    50%       { box-shadow: 0 0 40px rgba(234, 88, 12, 0.6); }
}

@keyframes cardReveal {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes shimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.animate-fade-in {
    animation: fadeIn 1s ease-out forwards;
}

.animate-glow {
    animation: glow 3s ease-in-out infinite;
}

/* --------------------------------------------
   6. CARD ANIMATE
   Para cards estáticos no HTML (index, ferramentas)
   -------------------------------------------- */
.card-animate {
    opacity: 0;
    animation: cardReveal 0.6s ease-out forwards;
}

.card-animate:nth-child(1)  { animation-delay: 0.10s; }
.card-animate:nth-child(2)  { animation-delay: 0.20s; }
.card-animate:nth-child(3)  { animation-delay: 0.30s; }
.card-animate:nth-child(4)  { animation-delay: 0.40s; }
.card-animate:nth-child(5)  { animation-delay: 0.50s; }
.card-animate:nth-child(6)  { animation-delay: 0.60s; }
.card-animate:nth-child(7)  { animation-delay: 0.70s; }
.card-animate:nth-child(8)  { animation-delay: 0.80s; }
.card-animate:nth-child(9)  { animation-delay: 0.90s; }
.card-animate:nth-child(10) { animation-delay: 1.00s; }
.card-animate:nth-child(11) { animation-delay: 1.10s; }
.card-animate:nth-child(12) { animation-delay: 1.20s; }

/* --------------------------------------------
   7. REVEAL
   Para cards gerados via JavaScript (blog, artigo)
   -------------------------------------------- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal.visible {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* --------------------------------------------
   8. FORMULÁRIOS
   -------------------------------------------- */
input::placeholder,
textarea::placeholder {
    color: #555;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: #ea580c;
    box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.15);
}

/* --------------------------------------------
   9. FILTER BUTTONS — Blog
   -------------------------------------------- */
.filter-btn {
    cursor: pointer;
    transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.filter-btn.active {
    background: #ea580c !important;
    color: #000 !important;
    border-color: #ea580c !important;
}

.filter-btn:not(.active):hover {
    border-color: #ea580c;
    color: #ea580c;
}

/* --------------------------------------------
   10. PORTFOLIO FILTER BUTTONS
   -------------------------------------------- */
.portfolio-filter {
    cursor: pointer;
    transition: all 0.3s ease;
}

.portfolio-filter.active {
    background: #ea580c !important;
    color: #000 !important;
    border-color: #ea580c !important;
}

.portfolio-filter:not(.active):hover {
    border-color: rgba(234, 88, 12, 0.5);
    color: #ea580c;
}

/* --------------------------------------------
   11. PROSE — Conteúdo de artigos
   -------------------------------------------- */
.prose { color: inherit; line-height: 1.8; }

.prose h1, .prose h2, .prose h3,
.prose h4, .prose h5, .prose h6 {
    color: #ea580c;
    font-weight: 900;
    margin-top: 2rem;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.prose p    { margin-bottom: 1.2rem; line-height: 1.8; }

.prose ul,
.prose ol   { margin-left: 1.5rem; margin-bottom: 1rem; }

.prose li   { margin-bottom: 0.5rem; }

.prose a {
    color: #ea580c;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.prose a:hover { color: #fff; }

.prose blockquote {
    border-left: 4px solid #ea580c;
    padding-left: 1rem;
    margin: 1.5rem 0;
    color: #aaa;
    font-style: italic;
}

.prose code {
    background: #111;
    color: #ea580c;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-size: 0.9em;
}

.prose pre {
    background: #111;
    padding: 1rem;
    border-radius: 8px;
    overflow-x: auto;
    margin-bottom: 1.2rem;
    border: 1px solid rgba(234, 88, 12, 0.2);
}

.prose strong { color: #fff; }

/* --------------------------------------------
   12. 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;
}

/* --------------------------------------------
   13. UTILITÁRIOS
   -------------------------------------------- */
.no-transition,
.no-transition * {
    transition: none !important;
}

.border-glow {
    border: 1px solid rgba(234, 88, 12, 0.3);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.border-glow:hover {
    border-color: #ea580c;
    box-shadow: 0 0 20px rgba(234, 88, 12, 0.2);
}

/* --------------------------------------------
   14. SKELETON LOADING
   -------------------------------------------- */
.skeleton {
    background: linear-gradient(
        90deg,
        rgba(255,255,255,0.03) 25%,
        rgba(234,88,12,0.08) 50%,
        rgba(255,255,255,0.03) 75%
    );
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 4px;
}

/* --------------------------------------------
   15. BARRA DE PROGRESSO DE LEITURA
   -------------------------------------------- */
#reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0%;
    background: #ea580c;
    z-index: 9999;
    transition: width 0.1s linear;
}