/* ============================================
   CurriculoPRO - Estilos Personalizados
   ============================================ */

:root {
    --primary: #1e3a5f;
    --primary-light: #2a5280;
    --accent: #0ea5e9;
    --accent-hover: #0284c7;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --dark: #0f172a;
    --text: #1e293b;
    --text-muted: #64748b;
    --border: #e2e8f0;
    --bg: #f8fafc;
    --bg-card: #ffffff;
    --radius: 12px;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text);
    background: var(--bg);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

/* Navbar */
.navbar-main {
    background: var(--primary);
    padding: 0.75rem 0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.navbar-main .navbar-brand {
    color: #fff;
    font-weight: 700;
    font-size: 1.3rem;
    letter-spacing: -0.5px;
}

.navbar-main .nav-link {
    color: rgba(255,255,255,0.85);
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.navbar-main .nav-link:hover {
    color: #fff;
}

.navbar-main .navbar-toggler {
    border-color: rgba(255,255,255,0.3);
}

.navbar-main .navbar-toggler-icon {
    filter: invert(1);
}

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

/* Buttons */
.btn-accent {
    background: var(--accent);
    color: #fff;
    border: none;
    font-weight: 600;
    border-radius: 8px;
    padding: 0.5rem 1.25rem;
    transition: all 0.2s;
}

.btn-accent:hover {
    background: var(--accent-hover);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(14,165,233,0.3);
}

.btn-primary-custom {
    background: var(--primary);
    color: #fff;
    border: none;
    font-weight: 600;
    border-radius: 8px;
    padding: 0.625rem 1.5rem;
    transition: all 0.2s;
}

.btn-primary-custom:hover {
    background: var(--primary-light);
    color: #fff;
    transform: translateY(-1px);
}

.btn-outline-custom {
    border: 2px solid var(--border);
    color: var(--text);
    background: transparent;
    font-weight: 500;
    border-radius: 8px;
    padding: 0.5rem 1.25rem;
    transition: all 0.2s;
}

.btn-outline-custom:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(14,165,233,0.05);
}

/* Cards */
.card-custom {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    transition: all 0.2s;
}

.card-custom:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.card-custom .card-header-custom {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border);
    font-weight: 600;
    font-size: 1rem;
    color: var(--text);
}

.card-custom .card-body {
    padding: 1.5rem;
}

/* Form Styles */
.form-control-custom,
.form-select-custom {
    border: 2px solid var(--border);
    border-radius: 8px;
    padding: 0.625rem 0.875rem;
    font-size: 0.9rem;
    transition: border-color 0.2s, box-shadow 0.2s;
    color: var(--text);
    background: #fff;
}

.form-control-custom:focus,
.form-select-custom:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(14,165,233,0.15);
    outline: none;
}

.form-label-custom {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text);
    margin-bottom: 0.375rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: #fff;
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: rgba(14,165,233,0.1);
    border-radius: 50%;
}

.hero-section h1 {
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: -1px;
    line-height: 1.1;
}

.hero-section p {
    font-size: 1.15rem;
    opacity: 0.9;
    line-height: 1.6;
}

/* Stats Cards */
.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    text-align: center;
    transition: all 0.2s;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.stat-card .stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.75rem;
    font-size: 1.25rem;
}

.stat-card .stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text);
    line-height: 1;
}

.stat-card .stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 0.25rem;
}

/* Resume Card */
.resume-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all 0.3s;
}

.resume-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.1);
}

.resume-card .resume-card-header {
    background: var(--primary);
    color: #fff;
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.resume-card .resume-card-body {
    padding: 1.25rem 1.5rem;
}

.resume-card .resume-card-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border);
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* Score Badge */
.score-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.8rem;
}

.score-badge.score-low {
    background: rgba(239,68,68,0.1);
    color: var(--danger);
}

.score-badge.score-medium {
    background: rgba(245,158,11,0.1);
    color: var(--warning);
}

.score-badge.score-good {
    background: rgba(14,165,233,0.1);
    color: var(--accent);
}

.score-badge.score-excellent {
    background: rgba(16,185,129,0.1);
    color: var(--success);
}

/* Progress Bar */
.progress-custom {
    height: 8px;
    background: var(--border);
    border-radius: 4px;
    overflow: hidden;
}

.progress-custom .progress-bar-custom {
    height: 100%;
    border-radius: 4px;
    transition: width 0.6s ease;
}

/* Auth Pages */
.auth-container {
    min-height: calc(100vh - 120px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.auth-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2.5rem;
    width: 100%;
    max-width: 480px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}

.auth-card h2 {
    font-weight: 700;
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.auth-card .auth-subtitle {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

/* Resume Preview / Print */
.resume-preview {
    background: #fff;
    max-width: 210mm;
    margin: 0 auto;
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
    font-size: 10pt;
    line-height: 1.5;
    color: #1e293b;
}

.resume-preview .resume-header-section {
    background: var(--primary);
    color: #fff;
    padding: 2rem 2.5rem;
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.resume-preview .resume-photo {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(255,255,255,0.3);
    flex-shrink: 0;
}

.resume-preview .resume-name {
    font-size: 22pt;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin: 0;
}

.resume-preview .resume-contact {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 0.5rem;
    font-size: 9pt;
    opacity: 0.9;
}

.resume-preview .resume-contact i {
    margin-right: 4px;
}

.resume-preview .resume-body-section {
    padding: 1.5rem 2.5rem;
}

.resume-preview .section-title {
    font-size: 12pt;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 2px solid var(--primary);
    padding-bottom: 0.375rem;
    margin-bottom: 1rem;
    margin-top: 1.25rem;
}

.resume-preview .section-title:first-child {
    margin-top: 0;
}

.resume-preview .experience-item,
.resume-preview .education-item {
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #f1f5f9;
}

.resume-preview .experience-item:last-child,
.resume-preview .education-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.resume-preview .item-title {
    font-weight: 600;
    font-size: 11pt;
    color: var(--text);
}

.resume-preview .item-subtitle {
    color: var(--text-muted);
    font-size: 9.5pt;
}

.resume-preview .item-date {
    font-size: 9pt;
    color: var(--accent);
    font-weight: 600;
}

.resume-preview .skill-bar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.resume-preview .skill-bar .skill-name {
    flex: 0 0 120px;
    font-size: 9.5pt;
    font-weight: 500;
}

.resume-preview .skill-bar .skill-track {
    flex: 1;
    height: 6px;
    background: #e2e8f0;
    border-radius: 3px;
    overflow: hidden;
}

.resume-preview .skill-bar .skill-fill {
    height: 100%;
    background: var(--accent);
    border-radius: 3px;
}

/* Section builder */
.section-builder {
    background: var(--bg);
    border: 2px dashed var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.section-builder .section-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1rem 1.25rem;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.section-builder .section-item:last-child {
    margin-bottom: 0;
}

.btn-add-item {
    border: 2px dashed var(--accent);
    color: var(--accent);
    background: transparent;
    border-radius: 8px;
    padding: 0.75rem;
    width: 100%;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-add-item:hover {
    background: rgba(14,165,233,0.05);
    border-color: var(--accent-hover);
    color: var(--accent-hover);
}

/* Footer */
.footer-main {
    background: var(--dark);
    color: rgba(255,255,255,0.6);
    padding: 1.5rem 0;
    font-size: 0.85rem;
}

/* Share Modal */
.share-link-input {
    background: var(--bg);
    border: 2px solid var(--border);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-family: monospace;
    font-size: 0.85rem;
    width: 100%;
    color: var(--text);
}

/* Utilities */
.gap-3 {
    gap: 0.75rem;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
}

.empty-state i {
    font-size: 3rem;
    color: var(--border);
    margin-bottom: 1rem;
}

.empty-state h5 {
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.empty-state p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

/* Tabs */
.nav-tabs-custom {
    border-bottom: 2px solid var(--border);
}

.nav-tabs-custom .nav-link {
    border: none;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.75rem 1.25rem;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all 0.2s;
}

.nav-tabs-custom .nav-link.active {
    color: var(--accent);
    border-bottom-color: var(--accent);
    background: none;
}

.nav-tabs-custom .nav-link:hover:not(.active) {
    color: var(--text);
    border-bottom-color: var(--border);
}

/* Print Styles */
@media print {
    .navbar-main,
    .footer-main,
    .no-print,
    .btn {
        display: none !important;
    }

    body {
        background: #fff;
    }

    .resume-preview {
        box-shadow: none;
        max-width: none;
        margin: 0;
    }

    @page {
        size: A4;
        margin: 0;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2rem;
    }

    .auth-card {
        padding: 1.5rem;
    }

    .resume-preview .resume-header-section {
        flex-direction: column;
        text-align: center;
    }

    .resume-preview .resume-contact {
        justify-content: center;
    }

    .stat-card .stat-number {
        font-size: 1.5rem;
    }
}
