/* Certificate System Styles */
.certificate-card {
    background: var(--surface-primary);
    border-radius: var(--radius-3xl);
    border: 2px solid rgba(59, 130, 246, 0.15);
    padding: var(--space-10);
    box-shadow: var(--shadow-2xl);
    max-width: 960px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.certificate-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(circle at 100% 0%, rgba(59, 130, 246, 0.08), transparent 50%),
        radial-gradient(circle at 0% 100%, rgba(6, 182, 212, 0.06), transparent 50%);
    opacity: 1;
}

.certificate-card__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-8);
    position: relative;
    z-index: 1;
}

.certificate-card__body {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: var(--space-6);
    position: relative;
    z-index: 1;
}

.certificate-meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--space-4);
    margin: var(--space-6) 0;
}

.certificate-meta-grid div {
    background: var(--white);
    border: 2px solid rgba(59, 130, 246, 0.12);
    border-radius: var(--radius-xl);
    padding: var(--space-5);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.certificate-meta-grid div::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--brand-600), var(--accent-500));
    transform: scaleX(0);
    transition: transform var(--transition-base);
}

.certificate-meta-grid div:hover {
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.certificate-meta-grid div:hover::before {
    transform: scaleX(1);
}

.certificate-meta-grid span {
    display: block;
    font-size: var(--text-xs);
    letter-spacing: var(--letter-spacing-wider);
    color: var(--neutral-500);
    margin-bottom: var(--space-2);
    text-transform: uppercase;
    font-weight: var(--font-weight-semibold);
}

.certificate-meta-grid strong {
    font-size: var(--text-lg);
    color: var(--brand-900);
    font-weight: var(--font-weight-bold);
}

.certificate-meta {
    background: var(--certificate-bg);
    border-radius: 12px;
    padding: 16px 20px;
    border: 1px solid var(--certificate-border);
}

.certificate-meta span {
    display: block;
    color: var(--certificate-muted);
    font-size: 0.85rem;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.certificate-meta strong {
    font-size: 1.1rem;
    color: var(--certificate-text);
}

.certificate-actions {
    margin-top: var(--space-8);
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-4);
    position: relative;
    z-index: 1;
}

.certificate-actions .primary-btn,
.certificate-actions .secondary-btn {
    min-width: 200px;
    text-align: center;
    position: relative;
}

.certificate-actions .primary-btn::after,
.certificate-actions .secondary-btn::after {
    content: '↓';
    margin-left: var(--space-2);
    display: inline-block;
    transition: transform var(--transition-base);
}

.certificate-actions .primary-btn:hover::after,
.certificate-actions .secondary-btn:hover::after {
    transform: translateY(3px);
}

.verification-form {
    max-width: 520px;
    margin: 0 auto;
}

.verification-form .form-group {
    margin-bottom: var(--space-5);
}

.verification-status {
    margin-top: var(--space-8);
    padding: var(--space-6);
    border-radius: var(--radius-2xl);
    border: 2px solid transparent;
    animation: slide-in-up 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: var(--shadow-lg);
}

@keyframes slide-in-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.verification-status.success {
    border-color: var(--success-500);
    background: linear-gradient(135deg, #ecfdf5, #d1fae5);
    color: #065f46;
    position: relative;
    overflow: hidden;
}

.verification-status.success::before {
    content: '✓';
    position: absolute;
    top: var(--space-4);
    right: var(--space-4);
    font-size: 3rem;
    color: var(--success-500);
    opacity: 0.2;
}

.verification-status.error {
    border-color: var(--error-500);
    background: linear-gradient(135deg, #fef2f2, #fee2e2);
    color: #7f1d1d;
    position: relative;
    overflow: hidden;
}

.verification-status.error::before {
    content: '✕';
    position: absolute;
    top: var(--space-4);
    right: var(--space-4);
    font-size: 3rem;
    color: var(--error-500);
    opacity: 0.2;
}

@media (max-width: 768px) {
    .certificate-card {
        padding: 24px;
    }

    .certificate-card__header {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .certificate-actions {
        flex-direction: column;
    }
}

.profile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: var(--space-8);
    margin-bottom: var(--space-12);
}

.profile-summary {
    position: relative;
}

.profile-summary h2 {
    margin-top: 0;
    font-size: var(--text-3xl);
    background: linear-gradient(135deg, var(--brand-950), var(--brand-700));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.profile-summary__stats {
    display: flex;
    gap: var(--space-8);
    margin: var(--space-6) 0;
}

.profile-summary__stats > div {
    display: grid;
    gap: var(--space-2);
}

.profile-summary__stats span {
    display: block;
    font-size: var(--text-xs);
    color: var(--neutral-500);
    text-transform: uppercase;
    letter-spacing: var(--letter-spacing-widest);
    font-weight: var(--font-weight-semibold);
}

.profile-summary__stats strong {
    font-size: var(--text-4xl);
    font-weight: var(--font-weight-bold);
    background: linear-gradient(135deg, var(--brand-800), var(--brand-600));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.profile-panel {
    grid-column: 1 / -1;
}

.profile-panel__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 20px;
}

.profile-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.profile-list__item {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: var(--space-4);
    align-items: center;
    padding: var(--space-5) var(--space-6);
    border: 2px solid rgba(59, 130, 246, 0.12);
    border-radius: var(--radius-2xl);
    background: var(--white);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.profile-list__item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--brand-600), var(--accent-500));
    opacity: 0;
    transition: opacity var(--transition-base);
}

.profile-list__item:hover {
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.profile-list__item:hover::before {
    opacity: 1;
}

.profile-list__item strong {
    display: block;
    font-size: var(--text-lg);
    color: var(--brand-900);
    font-weight: var(--font-weight-bold);
}

.profile-list__item span {
    display: block;
    font-size: var(--text-sm);
    color: var(--neutral-600);
}

.profile-list__meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.profile-list__actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.badge--muted {
    background: var(--neutral-100);
    color: var(--neutral-600);
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-full);
    text-transform: uppercase;
    font-size: var(--text-xs);
    letter-spacing: var(--letter-spacing-widest);
    font-weight: var(--font-weight-semibold);
    border: 1px solid var(--neutral-200);
}

.empty-state {
    padding: var(--space-12) var(--space-6);
    border-radius: var(--radius-2xl);
    background: var(--neutral-50);
    border: 2px dashed var(--neutral-300);
    color: var(--neutral-500);
    text-align: center;
    animation: fade-in 0.6s ease-out;
}

@keyframes fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

.empty-state::before {
    content: '📋';
    display: block;
    font-size: 3rem;
    margin-bottom: var(--space-4);
    opacity: 0.5;
}


