/* Universidade Guarda Digital — Identity from GitHub reference */

html, body {
    background-color: #F5F3FF;
    color: #1C1326;
    font-family: 'DM Sans', system-ui, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .font-display {
    font-family: 'Playfair Display', Georgia, serif;
    letter-spacing: -0.02em;
}

/* Golden thread decoration */
.golden-thread {
    position: relative;
}
.golden-thread::after {
    content: '';
    display: block;
    width: 100%;
    height: 1px;
    margin-top: 0.5rem;
    background: linear-gradient(90deg, transparent, #C9A84C, transparent);
}

/* Section label styling */
.section-label {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #C9A84C;
}

/* Custom shadows matching reference */
.shadow-legacy {
    box-shadow: 0 0 0 1px rgba(102,57,166,0.08), 0 2px 4px rgba(0,0,0,0.05), 0 12px 24px -4px rgba(0,0,0,0.1);
}
.shadow-legacy-hover {
    box-shadow: 0 0 0 1px rgba(201,168,76,0.3), 0 8px 24px rgba(0,0,0,0.15);
}

/* Card styles */
.uni-card {
    background: #FFFFFF;
    border-radius: 0.75rem;
    box-shadow: 0 0 0 1px rgba(102,57,166,0.08), 0 2px 4px rgba(0,0,0,0.05), 0 12px 24px -4px rgba(0,0,0,0.1);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.uni-card:hover {
    box-shadow: 0 0 0 1px rgba(201,168,76,0.3), 0 8px 24px rgba(0,0,0,0.15);
    transform: translateY(-2px);
}

/* Progress bar */
.uni-progress {
    width: 100%;
    height: 0.375rem;
    background: rgba(87,15,97,0.1);
    border-radius: 9999px;
    overflow: hidden;
}
.uni-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #6639A6, #C9A84C);
    border-radius: 9999px;
    transition: width 0.7s ease-out;
}

/* Metadata pills */
.meta-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    background: #EEEAF5;
    padding: 0.25rem 0.625rem;
    border-radius: 9999px;
    font-size: 0.6875rem;
    font-weight: 500;
    color: #6B6773;
}

/* XP badge */
.xp-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    background: rgba(201,168,76,0.1);
    color: #C9A84C;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: #F5F3FF;
}
::-webkit-scrollbar-thumb {
    background: #E1D9EC;
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: #6639A6;
}

/* MudBlazor overrides */
.mud-appbar {
    border-bottom: 1px solid #E1D9EC !important;
}

.mud-drawer {
    border-right: 1px solid #E1D9EC !important;
}

/* Hero gradient */
.hero-gradient {
    background: linear-gradient(135deg, rgba(102,57,166,0.05), transparent, rgba(201,168,76,0.05));
}

/* CTA gradient */
.cta-gradient {
    background: linear-gradient(135deg, #6639A6, #570F61);
}

/* Certificate gradient */
.cert-gradient {
    background: linear-gradient(135deg, #6639A6, #570F61, #6639A6);
}

/* Module list item */
.module-item {
    background: #FFFFFF;
    border-radius: 0.75rem;
    box-shadow: 0 0 0 1px rgba(102,57,166,0.08), 0 2px 4px rgba(0,0,0,0.05), 0 12px 24px -4px rgba(0,0,0,0.1);
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: box-shadow 0.3s ease;
    cursor: pointer;
}
.module-item:hover {
    box-shadow: 0 0 0 1px rgba(201,168,76,0.3), 0 8px 24px rgba(0,0,0,0.15);
}
.module-item.blocked {
    opacity: 0.6;
    cursor: default;
}
.module-item.blocked:hover {
    box-shadow: 0 0 0 1px rgba(102,57,166,0.08), 0 2px 4px rgba(0,0,0,0.05), 0 12px 24px -4px rgba(0,0,0,0.1);
}

/* Stat card */
.stat-card {
    background: #EEEAF5;
    border-radius: 0.75rem;
    padding: 1rem;
    text-align: center;
}

/* Badge display */
.badge-card {
    background: #FFFFFF;
    border-radius: 0.75rem;
    box-shadow: 0 0 0 1px rgba(102,57,166,0.08), 0 2px 4px rgba(0,0,0,0.05);
    padding: 1rem;
    text-align: center;
    transition: opacity 0.3s ease;
}
.badge-card.locked {
    opacity: 0.4;
    filter: grayscale(1);
}
