/* ==========================================================================
   Teach Cloud — About Page & Dynamic Team Profiles Styles
   ========================================================================== */

/* About Hero */
.about-hero {
    text-align: center;
    padding: 3rem 0 3.5rem;
}

.about-hero-badge {
    margin-bottom: 1.5rem;
}

.about-hero-title {
    font-size: clamp(2rem, 5vw, 3rem);
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.gradient-text {
    background: var(--accent-gradient, linear-gradient(135deg, #3b82f6, #8b5cf6));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.about-hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 640px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ─── Admin Bar on About Page ──────────────────────────────────────────────── */
.about-admin-bar {
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: var(--radius-md, 8px);
    padding: 0.75rem 1.25rem;
    margin-bottom: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.about-admin-title {
    color: #a5b4fc;
    font-size: 0.88rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.about-admin-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-admin-action {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.75rem;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.15s ease;
}

.btn-admin-action.primary {
    background: #6366f1;
    color: #ffffff;
}

.btn-admin-action.primary:hover {
    background: #4f46e5;
}

.btn-admin-action.secondary {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #e0e7ff;
}

.btn-admin-action.secondary:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* Stats */
.about-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 4.5rem;
}

@media (min-width: 768px) {
    .about-stats {
        grid-template-columns: repeat(4, 1fr);
    }
}

.stat-card {
    background: var(--card-bg, #161b22);
    border: 1px solid var(--border-color, #30363d);
    border-radius: var(--radius-md, 8px);
    padding: 2rem 1.5rem;
    text-align: center;
    box-shadow: var(--card-shadow, 0 4px 16px rgba(0, 0, 0, 0.2));
    transition: var(--transition, all 0.2s ease);
}

.stat-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-hover, #8b949e);
}

.stat-number {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-secondary, #8b949e);
}

/* About Section */
.about-section {
    margin-bottom: 3.5rem;
}

.section-label {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent-blue, #3b82f6);
    display: block;
    margin-bottom: 0.75rem;
}

.about-section-heading {
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: 1.5rem;
}

.about-section-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

@media (min-width: 900px) {
    .about-section-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.about-section-text p {
    color: var(--text-secondary, #8b949e);
    margin-bottom: 1.25rem;
    line-height: 1.75;
}

/* Pillars */
.about-pillars {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.pillar-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.pillar-icon {
    font-size: 1.5rem;
    width: 2.5rem;
    flex-shrink: 0;
    text-align: center;
    margin-top: 0.1rem;
}

.pillar-item strong {
    display: block;
    margin-bottom: 0.3rem;
}

.pillar-item p {
    color: var(--text-secondary, #8b949e);
    font-size: 0.9rem;
    margin: 0;
}

/* Visual Code Card */
.about-visual-card {
    background: #0d1117;
    border: 1px solid var(--border-color, #30363d);
    border-radius: var(--radius-md, 8px);
    overflow: hidden;
    box-shadow: var(--card-shadow, 0 4px 16px rgba(0, 0, 0, 0.2));
}

.visual-card-header {
    background: #161b22;
    padding: 0.75rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 1px solid var(--border-color, #30363d);
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot.red { background: #ff5f57; }
.dot.yellow { background: #febc2e; }
.dot.green { background: #28c840; }

.visual-card-label {
    font-size: 0.8rem;
    color: var(--text-muted, #8b949e);
    margin-left: 0.5rem;
    font-family: var(--font-mono, monospace);
}

.visual-code {
    padding: 1.5rem;
    font-size: 0.82rem;
    line-height: 1.7;
    color: #c9d1d9;
    overflow-x: auto;
    font-family: var(--font-mono, monospace);
    white-space: pre;
    background: transparent;
    border: none;
    margin: 0;
}

.code-keyword { color: #ff7b72; }
.code-class   { color: #79c0ff; }
.code-fn      { color: #d2a8ff; }
.code-str     { color: #a5d6ff; }

/* ─── Team Grid & Dynamic Cards ────────────────────────────────────────────── */
.team-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 640px) {
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .team-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.team-card {
    background: var(--card-bg, #161b22);
    border: 1px solid var(--border-color, #30363d);
    border-radius: var(--radius-lg, 12px);
    padding: 2rem 1.75rem;
    box-shadow: var(--card-shadow, 0 4px 16px rgba(0, 0, 0, 0.2));
    transition: var(--transition, all 0.2s ease);
    display: flex;
    flex-direction: column;
    position: relative;
}

.team-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-blue, #3b82f6);
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.15);
}

.team-card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.25rem;
}

.team-avatar-box {
    position: relative;
    display: inline-block;
}

.team-avatar-img {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    object-fit: cover;
    border: 2.5px solid var(--accent-blue, #3b82f6);
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.25);
    background: var(--card-bg, #161b22);
}

.team-avatar-placeholder {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    background: var(--accent-gradient, linear-gradient(135deg, #3b82f6, #8b5cf6));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: 800;
    color: #ffffff;
    border: 2.5px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.25);
}

.team-admin-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.72rem;
    padding: 0.2rem 0.5rem;
    background: rgba(99, 102, 241, 0.15);
    border: 1px solid rgba(99, 102, 241, 0.35);
    color: #a5b4fc;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.15s ease;
}

.team-admin-badge:hover {
    background: rgba(99, 102, 241, 0.28);
    color: #ffffff;
}

.team-name {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 0.25rem;
}

.team-name-link {
    color: var(--text-primary, #f0f6fc);
    text-decoration: none;
    transition: color 0.15s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.team-name-link:hover {
    color: var(--accent-blue, #3b82f6);
}

.team-role {
    font-size: 0.82rem;
    color: var(--accent-blue, #60a5fa);
    font-weight: 600;
    display: block;
    margin-bottom: 0.85rem;
}

.team-bio {
    color: var(--text-secondary, #8b949e);
    font-size: 0.88rem;
    line-height: 1.6;
    flex-grow: 1;
    margin-bottom: 1.25rem;
}

.team-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 1.25rem;
}

.tag-item {
    font-size: 0.72rem;
    font-weight: 600;
    padding: 0.2rem 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color, #30363d);
    border-radius: 4px;
    color: var(--text-secondary, #8b949e);
}

/* Team Card Actions */
.team-card-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color, #30363d);
    margin-top: auto;
}

.btn-team-resume {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.85rem;
    border-radius: var(--radius-sm, 6px);
    font-size: 0.8rem;
    font-weight: 600;
    background: rgba(59, 130, 246, 0.12);
    border: 1px solid rgba(59, 130, 246, 0.35);
    color: #60a5fa;
    text-decoration: none;
    transition: var(--transition, all 0.2s ease);
    cursor: pointer;
}

.btn-team-resume:hover {
    background: var(--accent-blue, #3b82f6);
    color: #ffffff;
    box-shadow: 0 0 12px rgba(59, 130, 246, 0.4);
}

.team-social-icons {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.team-social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color, #30363d);
    color: var(--text-secondary, #8b949e);
    text-decoration: none;
    transition: all 0.15s ease;
}

.team-social-icon:hover {
    background: var(--bg-tertiary, #21262d);
    color: var(--text-primary, #f0f6fc);
    border-color: var(--accent-blue, #3b82f6);
}

/* ─── Resume Modal ─────────────────────────────────────────────────────────── */
.modal-backdrop-custom {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
    z-index: 1050;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal-backdrop-custom.show {
    display: flex;
}

.modal-dialog-custom {
    background: var(--card-bg, #161b22);
    border: 1px solid var(--border-color, #30363d);
    border-radius: var(--radius-lg, 12px);
    width: 100%;
    max-width: 860px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    animation: modalFadeIn 0.2s ease;
}

@keyframes modalFadeIn {
    from { opacity: 0; transform: scale(0.96); }
    to { opacity: 1; transform: scale(1); }
}

.modal-header-custom {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-color, #30363d);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #0d1117;
}

.modal-header-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.modal-avatar-thumb {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--accent-blue, #3b82f6);
}

.modal-body-custom {
    padding: 1.75rem;
    overflow-y: auto;
    flex: 1;
    font-size: 0.92rem;
    color: var(--text-primary, #c9d1d9);
    line-height: 1.7;
}

.modal-footer-custom {
    padding: 0.85rem 1.5rem;
    border-top: 1px solid var(--border-color, #30363d);
    background: #0d1117;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.modal-close-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary, #8b949e);
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
}

.modal-close-btn:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
}

/* CTA */
.about-cta {
    margin-top: 5rem;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.08) 0%, rgba(16, 185, 129, 0.08) 100%);
    border: 1px solid var(--border-color, #30363d);
    border-radius: var(--radius-lg, 12px);
    padding: 4rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.about-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--accent-gradient, linear-gradient(135deg, #3b82f6, #8b5cf6));
}

.about-cta h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: 1rem;
}

.about-cta p {
    color: var(--text-secondary, #8b949e);
    max-width: 480px;
    margin: 0 auto 2rem;
}

.about-cta-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-secondary {
    display: inline-block;
    padding: 0.85rem 2rem;
    border-radius: var(--radius-sm, 6px);
    border: 1px solid var(--border-hover, #8b949e);
    color: var(--text-primary, #f0f6fc);
    font-weight: 600;
    transition: var(--transition, all 0.2s ease);
    text-decoration: none;
}

.btn-secondary:hover {
    background: var(--bg-tertiary, #21262d);
    color: var(--text-primary, #f0f6fc);
    box-shadow: 0 0 15px var(--accent-glow, rgba(59, 130, 246, 0.2));
}
