/* ============================================
   REAPRENDER - Stylesheet Principal
   Design System Premium
   ============================================ */

/* CSS Variables / Design Tokens */
:root {
    /* Cores Primárias */
    --brand-primary: #0f766e;
    --brand-primary-dark: #0d5f58;
    --brand-primary-light: #14b8a6;
    
    /* Cores de Acento */
    --brand-accent: #14b8a6;
    --brand-accent-hover: #0d9488;
    
    /* Cores de Fundo */
    --brand-light: #f0fdfa;
    --brand-lighter: #ccfbf1;
    --bg-white: #ffffff;
    --bg-gray: #f8fafc;
    --bg-dark: #0a192f;
    
    /* Cores de Texto */
    --text-primary: #1e293b;
    --text-secondary: #475569;
    --text-muted: #64748b;
    --text-light: #94a3b8;
    
    /* Cores Funcionais */
    --success: #10b981;
    --success-light: #d1fae5;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #3b82f6;
    
    /* Sombras */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    
    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --radius-full: 9999px;
    
    /* Transições */
    --transition-fast: 150ms ease-in-out;
    --transition: 300ms ease-in-out;
    --transition-slow: 500ms ease-in-out;
}

/* Reset e Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-white);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); }
h5 { font-size: clamp(1.1rem, 2vw, 1.25rem); }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

a {
    color: var(--brand-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--brand-accent);
}

/* Navbar */
.navbar {
    background-color: rgba(255, 255, 255, 0.98);
    border-bottom: 3px solid var(--brand-primary);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all var(--transition);
}

.navbar.scrolled {
    box-shadow: var(--shadow-md);
}

.navbar-brand {
    font-weight: 800;
    color: var(--brand-primary) !important;
    font-size: 1.5rem;
}

.nav-link {
    font-weight: 600;
    color: var(--text-secondary) !important;
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
    transition: all var(--transition-fast);
}

.nav-link:hover {
    color: var(--brand-accent) !important;
    background-color: var(--brand-light);
}

/* Botões */
.btn-brand {
    background-color: var(--brand-primary);
    border: none;
    color: white;
    font-weight: 600;
    border-radius: var(--radius-md);
    padding: 0.75rem 1.5rem;
    transition: all var(--transition);
    box-shadow: var(--shadow);
}

.btn-brand:hover {
    background-color: var(--brand-accent);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: white;
}

.btn-primary {
    background-color: var(--brand-primary) !important;
    border-color: var(--brand-primary) !important;
}

.btn-primary:hover {
    background-color: var(--brand-accent) !important;
    border-color: var(--brand-accent) !important;
}

.btn-outline-success {
    border-color: var(--brand-primary);
    color: var(--brand-primary);
}

.btn-outline-success:hover {
    background-color: var(--brand-primary);
    border-color: var(--brand-primary);
    color: white;
}

/* Cards */
.card {
    border: none;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
    overflow: hidden;
}

.card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

.card-pilar {
    border: none;
    border-radius: var(--radius-xl);
    transition: transform var(--transition);
    background: white;
    border-bottom: 5px solid var(--brand-primary);
}

.card-pilar:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.card-post {
    border: none;
    border-radius: var(--radius-lg);
    transition: transform var(--transition);
    overflow: hidden;
    background: white;
}

.card-post:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.resource-card {
    border: none;
    border-radius: var(--radius-lg);
    transition: all var(--transition);
    background: white;
}

.resource-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.contact-card {
    border: none;
    border-radius: var(--radius-xl);
    background: white;
    box-shadow: var(--shadow-lg);
}

/* Formulários */
.form-control {
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-md);
    padding: 0.75rem 1rem;
    transition: all var(--transition-fast);
}

.form-control:focus {
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 0.25rem rgba(15, 118, 110, 0.15);
    outline: none;
}

.form-select {
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-md);
    padding: 0.75rem 1rem;
    transition: all var(--transition-fast);
}

.form-select:focus {
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 0.25rem rgba(15, 118, 110, 0.15);
    outline: none;
}

/* Badges */
.badge-cat {
    background-color: var(--brand-light);
    color: var(--brand-primary);
    font-weight: 700;
    font-size: 0.75rem;
    padding: 0.375rem 0.75rem;
    border-radius: var(--radius-full);
}

.badge-recurso {
    background-color: var(--brand-primary);
    color: white;
    padding: 0.375rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    text-transform: uppercase;
    font-weight: bold;
}

/* Seções */
section {
    padding: 5rem 0;
}

.hero-section {
    padding: 6rem 0;
    background: linear-gradient(180deg, #ffffff 0%, #f1f5f9 100%);
}

/* Footer */
footer {
    background: linear-gradient(135deg, #0a192f 0%, #062c29 100%);
    color: white;
}

footer a {
    color: rgba(255, 255, 255, 0.7);
    transition: color var(--transition-fast);
}

footer a:hover {
    color: var(--brand-accent);
}

/* Imagens */
.img-post {
    height: 200px;
    object-fit: cover;
}

.profile-img-container {
    position: relative;
    display: inline-block;
}

.profile-img-container::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border: 2px dashed var(--brand-primary);
    border-radius: 50%;
    opacity: 0.3;
}

/* Utilitários */
.text-justify {
    text-align: justify;
}

.bg-success-subtle {
    background-color: var(--success-light) !important;
}

.text-success {
    color: var(--success) !important;
}

.bg-dark {
    background-color: var(--bg-dark) !important;
}

/* Animações */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

/* Responsive */
@media (max-width: 768px) {
    section {
        padding: 3rem 0;
    }
    
    .hero-section {
        padding: 4rem 0;
    }
    
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }
}

/* Glassmorphism */
.glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Loading States */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}
