/* Resumo Design System - Modern CV Template Styles */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* ============================================
   CSS VARIABLES (Design Tokens)
   ============================================ */
:root {
    /* Color Palette - Light Mode */
    --background: 210 20% 98%;
    --foreground: 222 47% 11%;
    
    --card: 0 0% 100%;
    --card-foreground: 222 47% 11%;
    
    --popover: 0 0% 100%;
    --popover-foreground: 222 47% 11%;
    
    --primary: 221 83% 53%;
    --primary-foreground: 0 0% 100%;
    
    --secondary: 210 40% 96%;
    --secondary-foreground: 222 47% 11%;
    
    --muted: 210 40% 96%;
    --muted-foreground: 215 16% 47%;
    
    --accent: 210 40% 96%;
    --accent-foreground: 222 47% 11%;
    
    --destructive: 0 84% 60%;
    --destructive-foreground: 0 0% 100%;
    
    --border: 214 32% 91%;
    --input: 214 32% 91%;
    --ring: 221 83% 53%;
    
    --radius: 0.75rem;
    
    /* Custom Tokens */
    --success: 142 76% 36%;
    --skill-bg: 221 83% 96%;
    --skill-text: 221 83% 40%;
    --timeline-line: 214 32% 91%;
    
    /* Sidebar Tokens */
    --sidebar-background: 0 0% 98%;
    --sidebar-foreground: 240 5.3% 26.1%;
    --sidebar-primary: 240 5.9% 10%;
    --sidebar-primary-foreground: 0 0% 98%;
    --sidebar-accent: 240 4.8% 95.9%;
    --sidebar-accent-foreground: 240 5.9% 10%;
    --sidebar-border: 220 13% 91%;
    --sidebar-ring: 217.2 91.2% 59.8%;
}

/* Dark Mode */
.dark {
    --background: 222 47% 11%;
    --foreground: 210 40% 98%;
    
    --card: 222 47% 14%;
    --card-foreground: 210 40% 98%;
    
    --popover: 222 47% 14%;
    --popover-foreground: 210 40% 98%;
    
    --primary: 221 83% 53%;
    --primary-foreground: 0 0% 100%;
    
    --secondary: 217 33% 17%;
    --secondary-foreground: 210 40% 98%;
    
    --muted: 217 33% 17%;
    --muted-foreground: 215 20% 65%;
    
    --accent: 217 33% 17%;
    --accent-foreground: 210 40% 98%;
    
    --destructive: 0 63% 31%;
    --destructive-foreground: 210 40% 98%;
    
    --border: 217 33% 17%;
    --input: 217 33% 17%;
    --ring: 213 27% 84%;
    
    --success: 142 76% 36%;
    --skill-bg: 221 60% 20%;
    --skill-text: 221 83% 70%;
    --timeline-line: 217 33% 25%;
    
    --sidebar-background: 240 5.9% 10%;
    --sidebar-foreground: 240 4.8% 95.9%;
    --sidebar-primary: 224.3 76.3% 48%;
    --sidebar-primary-foreground: 0 0% 100%;
    --sidebar-accent: 240 3.7% 15.9%;
    --sidebar-accent-foreground: 240 4.8% 95.9%;
    --sidebar-border: 240 3.7% 15.9%;
    --sidebar-ring: 217.2 91.2% 59.8%;
}

/* ============================================
   BASE STYLES
   ============================================ */
* {
    border-color: hsl(var(--border));
}

body {
    background-color: hsl(var(--background));
    color: hsl(var(--foreground));
    font-family: 'Inter', system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ============================================
   COMPONENT STYLES
   ============================================ */

/* Card Component */
.resumo-card {
    background-color: hsl(var(--card));
    color: hsl(var(--card-foreground));
    border-radius: var(--radius);
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    overflow: hidden;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.resumo-card:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.resumo-card-header {
    padding: 1.5rem 1.5rem 0.75rem;
}

.resumo-card-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: hsl(var(--foreground));
}

.resumo-card-content {
    padding: 1.5rem;
}

.resumo-card.border {
    border: 1px solid hsl(var(--border));
}

/* Button Component */
.resumo-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: calc(var(--radius) - 2px);
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
    text-decoration: none;
    white-space: nowrap;
}

.resumo-button:focus-visible {
    outline: 2px solid hsl(var(--ring));
    outline-offset: 2px;
}

.resumo-button:disabled {
    pointer-events: none;
    opacity: 0.5;
}

.resumo-button-primary {
    background-color: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.resumo-button-primary:hover {
    background-color: hsl(var(--primary) / 0.9);
}

.resumo-button-secondary {
    background-color: hsl(var(--secondary));
    color: hsl(var(--secondary-foreground));
}

.resumo-button-secondary:hover {
    background-color: hsl(var(--secondary) / 0.8);
}

.resumo-button-outline {
    background-color: transparent;
    border: 1px solid hsl(var(--input));
    color: hsl(var(--foreground));
}

.resumo-button-outline:hover {
    background-color: hsl(var(--accent));
    color: hsl(var(--accent-foreground));
}

.resumo-button-ghost {
    background-color: transparent;
    color: hsl(var(--foreground));
}

.resumo-button-ghost:hover {
    background-color: hsl(var(--accent));
    color: hsl(var(--accent-foreground));
}

.resumo-button-lg {
    padding: 0.625rem 1.25rem;
    font-size: 1rem;
    height: 2.75rem;
}

.resumo-button-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.8125rem;
    height: 2rem;
}

/* Badge Component */
.resumo-badge {
    display: inline-flex;
    align-items: center;
    border-radius: calc(var(--radius) - 2px);
    padding: 0.25rem 0.625rem;
    font-size: 0.75rem;
    font-weight: 600;
    transition: all 0.2s ease;
    white-space: nowrap;
    border: 1px solid transparent;
}

.resumo-badge-primary {
    background-color: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
}

.resumo-badge-secondary {
    background-color: hsl(var(--secondary));
    color: hsl(var(--secondary-foreground));
    border-color: hsl(var(--border));
}

.resumo-badge-outline {
    background-color: transparent;
    border-color: hsl(var(--border));
    color: hsl(var(--foreground));
}

/* Tabs Component */
.resumo-tabs-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: hsl(var(--muted-foreground));
    background-color: transparent;
    border: none;
    border-radius: calc(var(--radius) - 2px);
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.resumo-tabs-trigger:hover {
    color: hsl(var(--foreground));
    background-color: hsl(var(--muted) / 0.5);
}

.resumo-tabs-trigger.active {
    color: hsl(var(--foreground));
    background-color: hsl(var(--background));
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}

.resumo-tabs-trigger:focus-visible {
    outline: 2px solid hsl(var(--ring));
    outline-offset: 2px;
}

/* Skill Tag */
.skill-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.375rem 0.75rem;
    border-radius: calc(var(--radius) - 2px);
    font-size: 0.875rem;
    font-weight: 500;
    background-color: hsl(var(--skill-bg));
    color: hsl(var(--skill-text));
    transition: all 0.2s ease;
    white-space: nowrap;
}

.skill-tag:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.skill-tag.text-xs {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
}

/* Status Indicator */
.status-indicator {
    position: absolute;
    bottom: 0.25rem;
    right: 0.25rem;
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    border: 2px solid hsl(var(--card));
    background-color: hsl(var(--success));
    box-shadow: 0 0 0 2px hsl(var(--card));
}

/* Separator */
.resumo-separator {
    height: 1px;
    background-color: hsl(var(--border));
    margin: 1rem 0;
    flex-shrink: 0;
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeInUp 0.6s ease-out forwards;
}

/* Text Utilities */
.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;
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Focus Visible */
*:focus-visible {
    outline: 2px solid hsl(var(--ring));
    outline-offset: 2px;
}

/* Smooth transitions for theme changes */
* {
    transition-property: background-color, border-color, color, fill, stroke, box-shadow;
    transition-duration: 300ms;
    transition-timing-function: ease-in-out;
}

/* Override transitions for specific elements */
button, a, .resumo-tabs-trigger, .resumo-button, .skill-tag {
    transition-property: all;
    transition-duration: 200ms;
}
