/* ═══════════════════════════════════════════════════════════
   Portfolio Creator — CSS Professional & Elegant
   ═══════════════════════════════════════════════════════════ */

/* ─── Reset & Base ──────────────────────────────────────── */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #1a1a2e;
    --primary-light: #16213e;
    --accent: #0f3460;
    --highlight: #e94560;
    --highlight-hover: #d13550;
    --text: #2d2d3a;
    --text-light: #6b7280;
    --bg: #f8f9fc;
    --white: #ffffff;
    --card-bg: #ffffff;
    --border: #e5e7eb;
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 30px -5px rgba(0, 0, 0, 0.12), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --radius: 12px;
    --radius-sm: 8px;
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--highlight);
}

/* ─── Navbar ────────────────────────────────────────────── */
.navbar {
    background: var(--primary);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.nav-container {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
    height: 64px;
}

.nav-brand {
    color: var(--white);
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-brand:hover {
    color: var(--highlight);
}

.brand-icon {
    color: var(--highlight);
    font-size: 1.5rem;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-link {
    color: rgba(255, 255, 255, 0.8);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--white);
    background: rgba(255, 255, 255, 0.1);
}

.nav-link-accent {
    background: var(--highlight);
    color: var(--white);
}

.nav-link-accent:hover {
    background: var(--highlight-hover);
    color: var(--white);
}

.nav-link-logout {
    color: rgba(255, 255, 255, 0.6);
}

.nav-link-logout:hover {
    color: var(--highlight);
}

.nav-user {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
    padding-right: 0.5rem;
    border-right: 1px solid rgba(255, 255, 255, 0.15);
    margin-right: 0.5rem;
}

.nav-user-badge {
    background: var(--highlight);
    color: #ffffff;
    padding: 0.35rem 0.85rem;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.2px;
}

/* ─── Messages ──────────────────────────────────────────── */
.messages-container {
    max-width: 900px;
    margin: 1rem auto 0;
    padding: 0 2rem;
}

.alert {
    padding: 0.85rem 1.25rem;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    border-left: 4px solid;
}

.alert-success {
    background: #ecfdf5;
    color: #065f46;
    border-color: var(--success);
}

.alert-info {
    background: #eff6ff;
    color: #1e40af;
    border-color: #3b82f6;
}

.alert-warning {
    background: #fffbeb;
    color: #92400e;
    border-color: var(--warning);
}

.alert-error {
    background: #fef2f2;
    color: #991b1b;
    border-color: var(--error);
}

/* ─── Main Content ──────────────────────────────────────── */
.main-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem;
    width: 100%;
    flex: 1;
}

/* ─── Hero Section ──────────────────────────────────────── */
.hero-section {
    text-align: center;
    padding: 3rem 0 2rem;
}

.hero-title {
    font-size: 2.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--accent), var(--highlight));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-light);
    font-weight: 400;
}

/* ─── Platform Cards ────────────────────────────────────── */
.platforms-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin: 2rem 0;
}

.platform-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2.5rem 2rem;
    background: var(--card-bg);
    border-radius: var(--radius);
    border: 2px solid var(--border);
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.platform-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    transition: var(--transition);
}

.platform-gitlab::before {
    background: linear-gradient(90deg, #fc6d26, #e24329, #fca326);
}

.platform-github::before {
    background: linear-gradient(90deg, #24292f, #586069, #24292f);
}

.platform-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--highlight);
}

.platform-icon {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.platform-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.platform-desc {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.platform-arrow {
    font-size: 1.5rem;
    color: var(--highlight);
    font-weight: bold;
    transition: var(--transition);
}

.platform-card:hover .platform-arrow {
    transform: translateX(5px);
}

/* ─── Buttons ───────────────────────────────────────────── */
.btn {
    display: inline-block;
    padding: 0.7rem 1.5rem;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    line-height: 1.4;
}

.btn-primary {
    background: var(--highlight);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--highlight-hover);
    color: var(--white);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(233, 69, 96, 0.3);
}

.btn-secondary {
    background: var(--primary-light);
    color: var(--white);
}

.btn-secondary:hover {
    background: var(--primary);
    color: var(--white);
}

.btn-danger {
    background: var(--error);
    color: var(--white);
}

.btn-danger:hover {
    background: #dc2626;
    color: var(--white);
}

.btn-small {
    padding: 0.45rem 1rem;
    font-size: 0.85rem;
}

.btn-large {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

.btn-full {
    width: 100%;
}

/* ─── Auth Pages ────────────────────────────────────────── */
.auth-container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 2rem;
}

.auth-card {
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 440px;
    border: 1px solid var(--border);
}

.auth-card-wide {
    max-width: 640px;
}

.auth-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem;
    text-align: center;
}

.auth-subtitle {
    color: var(--text-light);
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.auth-form {
    margin-top: 1.5rem;
}

.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: var(--text-light);
}

.auth-footer a {
    color: var(--highlight);
    font-weight: 600;
}

/* ─── Social Login ─────────────────────────────────────── */
.social-login-section {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.btn-social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.75rem 1.25rem;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    border: 2px solid transparent;
    cursor: pointer;
}

.btn-github {
    background: #24292f;
    color: #ffffff;
}

.btn-github:hover {
    background: #1b1f23;
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(36, 41, 47, 0.3);
}

.btn-google {
    background: #ffffff;
    color: #3c4043;
    border: 2px solid #dadce0;
}

.btn-google:hover {
    background: #f8f9fa;
    color: #3c4043;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.social-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin-bottom: 1.5rem;
    color: var(--text-light);
    font-size: 0.85rem;
}

.social-divider::before,
.social-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--border);
}

.social-divider span {
    padding: 0 1rem;
}

/* ─── Forms ─────────────────────────────────────────────── */
.form-group {
    margin-bottom: 1.25rem;
}

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

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-family: inherit;
    background: var(--bg);
    color: var(--text);
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(15, 52, 96, 0.1);
    background: var(--white);
}

.form-help {
    display: block;
    font-size: 0.8rem;
    color: var(--text-light);
    margin-top: 0.3rem;
}

.form-error {
    color: var(--error);
    font-size: 0.8rem;
    margin-top: 0.3rem;
}

/* ─── Token Help Cards ──────────────────────────────────── */
.token-help {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.help-card {
    background: var(--bg);
    padding: 1.25rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}

.help-card h3 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.help-card p {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-bottom: 0.3rem;
}

.help-card code {
    background: var(--primary);
    color: var(--highlight);
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    font-size: 0.8rem;
}

/* ─── Repos Grid ────────────────────────────────────────── */
.repos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.25rem;
    margin-top: 1.5rem;
}

.repo-card {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.repo-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--accent);
}

.repo-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
}

.repo-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
    word-break: break-word;
}

.repo-badge {
    font-size: 0.7rem;
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.badge-public {
    background: #ecfdf5;
    color: #065f46;
}

.badge-private {
    background: #fef3c7;
    color: #92400e;
}

.badge-internal {
    background: #eff6ff;
    color: #1e40af;
}

.repo-desc {
    font-size: 0.88rem;
    color: var(--text-light);
    flex: 1;
    margin-bottom: 0.75rem;
    line-height: 1.5;
}

.repo-lang {
    font-size: 0.82rem;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.repo-meta {
    font-size: 0.82rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.repo-actions {
    margin-top: auto;
}

/* ─── Page Headers ──────────────────────────────────────── */
.page-header {
    margin-bottom: 1.5rem;
}

.back-link {
    font-size: 0.9rem;
    color: var(--text-light);
    display: inline-block;
    margin-bottom: 0.75rem;
}

.back-link:hover {
    color: var(--highlight);
}

.page-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.5px;
}

/* ─── Detail Pages ──────────────────────────────────────── */
.detail-container {
    max-width: 100%;
    margin: 0 auto;
}

.detail-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    margin-bottom: 1.5rem;
}

.detail-section-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--bg);
}

.detail-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.detail-label {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.detail-value {
    font-size: 1rem;
    color: var(--text);
    word-break: break-all;
}

.detail-value a {
    color: var(--accent);
}

.detail-actions {
    text-align: center;
    margin-top: 1rem;
}

/* ─── Languages ─────────────────────────────────────────── */
.languages-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.lang-item {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.lang-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.lang-name {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text);
}

.lang-pct {
    font-size: 0.85rem;
    color: var(--text-light);
    font-weight: 500;
}

.lang-bar-bg {
    height: 8px;
    background: var(--bg);
    border-radius: 4px;
    overflow: hidden;
}

.lang-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent), var(--highlight));
    border-radius: 4px;
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ─── Resources Section ─────────────────────────────────── */
.section-recursos {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid var(--border);
}

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1rem;
}

.recursos-list {
    list-style: none;
    margin-bottom: 2rem;
}

.recurso-item {
    padding: 0.85rem 1.25rem;
    background: var(--card-bg);
    border: 1px solid var(--border);
    margin-bottom: 0.5rem;
    border-radius: var(--radius-sm);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.recurso-item:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow);
}

.recurso-item a {
    font-weight: 600;
    color: var(--primary);
}

.recurso-item a:hover {
    color: var(--highlight);
}

.recurso-fecha {
    font-size: 0.8rem;
    color: var(--text-light);
}

.form-section {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    margin-top: 1.5rem;
}

.form-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1rem;
}

.resource-form {
    max-width: 500px;
}

/* ─── Content Detail ────────────────────────────────────── */
.contenido-text {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text);
    margin-bottom: 1.5rem;
}

.contenido-meta {
    font-size: 0.85rem;
    color: var(--text-light);
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

/* ─── CTA Section ───────────────────────────────────────── */
.cta-section {
    text-align: center;
    padding: 3rem 2rem;
    background: var(--card-bg);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    margin-top: 2rem;
}

.cta-text {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* ─── Error Page ────────────────────────────────────────── */
.error-container {
    text-align: center;
    padding: 4rem 2rem;
}

.error-code {
    font-size: 4rem;
    font-weight: 900;
    color: var(--highlight);
    margin-bottom: 0.5rem;
}

.error-message {
    font-size: 1.15rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

/* ─── Empty State ───────────────────────────────────────── */
.empty-state {
    color: var(--text-light);
    font-size: 1rem;
    text-align: center;
    padding: 2rem;
}

.empty-state-container {
    text-align: center;
    padding: 3rem;
    background: var(--card-bg);
    border-radius: var(--radius);
    border: 1px dashed var(--border);
    margin-top: 1.5rem;
}

/* ─── Footer ────────────────────────────────────────────── */
.footer {
    background: var(--primary);
    padding: 1.5rem 2rem;
    margin-top: auto;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.footer-content p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
}

/* ─── CV Builder Layout ─────────────────────────────────── */
.cv-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
}

.cv-sidebar {
    background: var(--card-bg, #fff);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid var(--border-color, #eaecef);
    align-self: start;
}

.cv-projects-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.cv-download-btns {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.cv-item-card {
    border-left-width: 3px;
    border-left-style: solid;
}

.cv-item-info {
    flex: 1;
    min-width: 0;
}

.cv-item-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 5px;
}

.cv-item-badge {
    font-size: 0.85rem;
    color: #57606a;
    background: #eaecef;
    padding: 2px 6px;
    border-radius: 4px;
    display: inline-block;
}

.cv-item-id {
    font-size: 0.85rem;
    color: #57606a;
    word-break: break-all;
}

.cv-item-actions {
    flex-shrink: 0;
}

/* ─── Responsive ────────────────────────────────────────── */
@media (max-width: 768px) {
    /* Navbar */
    .nav-container {
        padding: 0 0.75rem;
        height: auto;
        min-height: 56px;
        flex-wrap: wrap;
        gap: 0.25rem;
    }

    .nav-brand {
        font-size: 1rem;
    }

    .brand-icon {
        font-size: 1.2rem;
    }

    .nav-links {
        gap: 0.15rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .nav-link {
        padding: 0.35rem 0.5rem;
        font-size: 0.78rem;
    }

    .nav-user-badge {
        font-size: 0.68rem;
        padding: 0.2rem 0.5rem;
    }

    /* Main Content */
    .main-content {
        padding: 0.75rem;
    }

    .page-header {
        padding: 1rem 0;
    }

    .page-title {
        font-size: 1.4rem;
    }

    /* Hero */
    .hero-title {
        font-size: 1.6rem;
    }

    .hero-subtitle {
        font-size: 0.95rem;
    }

    /* Grids */
    .platforms-grid {
        grid-template-columns: 1fr;
    }

    .repos-grid {
        grid-template-columns: 1fr;
    }

    .token-help {
        grid-template-columns: 1fr;
    }

    /* CV Builder */
    .cv-grid {
        grid-template-columns: 1fr;
    }

    .cv-sidebar {
        padding: 1rem;
    }

    .cv-projects-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .cv-download-btns {
        width: 100%;
    }

    .cv-download-btns .btn {
        flex: 1;
        text-align: center;
        font-size: 0.85rem;
        padding: 0.5rem 0.75rem;
    }

    .cv-item-card {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 0.75rem;
    }

    .cv-item-id {
        font-size: 0.75rem;
    }

    /* Buttons */
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        font-size: 0.85rem;
    }

    /* Auth */
    .auth-card {
        padding: 1.5rem;
        margin: 0 0.5rem;
    }

    /* Detail pages */
    .detail-container {
        padding: 0;
    }

    .detail-card {
        padding: 1rem;
    }

    .detail-actions {
        flex-direction: column;
    }

    .detail-actions .btn {
        width: 100%;
        text-align: center;
    }

    /* Footer */
    .footer {
        padding: 1.5rem 0.75rem;
    }

    .footer-content p {
        font-size: 0.75rem;
    }

    /* Repo cards */
    .repo-card {
        padding: 1rem;
    }
}

/* ─── Gemini AI Section ─────────────────────────────────── */
.gemini-section {
    border: 1px solid #c9b1ff;
    background: linear-gradient(135deg, #faf5ff 0%, #f0ebff 100%);
}

.cv-type-selector {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
}

.cv-type-option {
    cursor: pointer;
}

.cv-type-option input[type="radio"] {
    display: none;
}

.cv-type-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.25rem 0.75rem;
    background: var(--white);
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.cv-type-option input[type="radio"]:checked + .cv-type-card {
    border-color: #7c3aed;
    background: #ede9fe;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.15);
}

.cv-type-card:hover {
    border-color: #a78bfa;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.cv-type-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.cv-type-label {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--primary);
    margin-bottom: 0.25rem;
}

.cv-type-desc {
    font-size: 0.75rem;
    color: var(--text-light);
}

/* Gemini Result Card */
.gemini-result-card {
    border: 1px solid #c9b1ff;
    background: var(--white);
}

.gemini-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    background: linear-gradient(135deg, #7c3aed, #a78bfa);
    color: var(--white);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.gemini-badge-icon {
    font-size: 1.2rem;
}

.gemini-badge-type {
    margin-left: auto;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.8rem;
}

/* Rendered README / Gemini content */
.gemini-content h1, .gemini-content h2, .gemini-content h3,
.gemini-content h4, .gemini-content h5, .gemini-content h6 {
    color: var(--primary);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.gemini-content h1 { font-size: 1.6rem; border-bottom: 2px solid var(--border); padding-bottom: 0.4rem; }
.gemini-content h2 { font-size: 1.3rem; border-bottom: 1px solid var(--border); padding-bottom: 0.3rem; }
.gemini-content h3 { font-size: 1.1rem; }

.gemini-content h1, .gemini-content h2, .gemini-content h3 { color: var(--primary); margin-top: 1.5rem; margin-bottom: 0.75rem; font-weight: 600; line-height: 1.2; }
.gemini-content h1 { font-size: 1.5rem; border-bottom: 1px solid var(--border); padding-bottom: 0.3rem; }
.gemini-content h2 { font-size: 1.25rem; }
.gemini-content h3 { font-size: 1.1rem; }

.gemini-content p { margin-bottom: 0.75rem; line-height: 1.7; }
.gemini-content ul, .gemini-content ol { margin-bottom: 1rem; padding-left: 1.5rem; }
.gemini-content li { margin-bottom: 0.3rem; }

.gemini-content code {
    background: #f6f8fa;
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    font-size: 0.9em;
    color: #d73a49;
}

.gemini-content pre {
    background: #f6f8fa;
    border: 1px solid var(--border);
    padding: 1rem;
    border-radius: var(--radius-sm);
    overflow-x: auto;
    margin-bottom: 1rem;
}

.gemini-content pre code {
    background: transparent;
    color: var(--text);
    padding: 0;
}

.gemini-content blockquote {
    border-left: 4px solid #a78bfa;
    padding-left: 1rem;
    color: var(--text-light);
    margin: 1rem 0;
}

.gemini-content table {
    border-collapse: collapse;
    width: 100%;
    margin-bottom: 1rem;
}

.gemini-content th, .gemini-content td {
    border: 1px solid var(--border);
    padding: 0.5rem 0.75rem;
    text-align: left;
}

.gemini-content th {
    background: #f6f8fa;
    font-weight: 600;
}

.gemini-content strong { color: var(--primary); }

@media (max-width: 768px) {
    .cv-type-selector {
        grid-template-columns: repeat(2, 1fr);
    }
}

