/* TryHackMe Page Specific Styles */

/* Center all content on TryHackMe page */
main {
    display: flex;
    flex-direction: column;
    align-items: center;
}

main > * {
    width: 100%;
}

.thm-badge {
    background: linear-gradient(135deg, #1c2538 0%, #212c42 100%);
    border-radius: 16px;
    padding: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    margin: 0 auto 32px;
    border: 1px solid #2a3a5a;
    flex-direction: column;
    text-align: center;
    max-width: 900px;
}

.thm-logo {
    height: 80px;
    width: auto;
}

.thm-info {
    text-align: center;
}

.thm-info h2 {
    color: #88cc14;
    margin-bottom: 8px;
}

.thm-info p {
    color: var(--md-sys-color-on-surface-variant);
    max-width: 600px;
    margin: 0 auto 12px;
}

.thm-rank {
    display: inline-block;
    background: #88cc14;
    color: #1c2538;
    padding: 4px 16px;
    border-radius: 16px;
    font-weight: 600;
    margin-top: 8px;
}

.profile-stats {
    display: flex;
    gap: 24px;
    margin-top: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--cyber-purple);
}

.stat-label {
    font-size: 0.875rem;
    color: var(--md-sys-color-on-surface-variant);
}

/* Skill categories on THM - centered */
.skill-category.offensive,
.skill-category.defensive,
.skill-category.networking,
.skill-category.frameworks,
.skill-category.web,
.skill-category.operating-systems {
    text-align: center;
    align-items: center;
}

/* Section titles - center without the bar breaking alignment */
.section-title {
    width: 100%;
    justify-content: center;
    text-align: center;
}

/* Center cards-grid and constrain width */
.cards-grid {
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
    justify-content: center;
}

.challenge-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 32px;
    justify-content: center;
    justify-items: center;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.challenge-card {
    background: var(--md-sys-color-surface-container-low);
    border-radius: 12px;
    padding: 16px;
    border: 1px solid var(--md-sys-color-outline-variant);
    text-align: center;
    transition: all 0.3s ease;
    width: 100%;
}

.challenge-card:hover {
    border-color: var(--cyber-green);
    box-shadow: 0 0 15px rgba(0, 255, 65, 0.1);
    transform: translateY(-2px);
}

.challenge-card strong {
    display: block;
    color: var(--cyber-green);
    margin-bottom: 4px;
}

.challenge-card p {
    font-size: 0.875rem;
    color: var(--md-sys-color-on-surface-variant);
}

/* Center the skills grid on THM */
.skills-grid {
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
    justify-content: center;
}

/* Card content centering */
.card {
    text-align: center;
    align-items: center;
}

.card h3 {
    justify-content: center;
}

.card-actions {
    justify-content: center;
}

.card-meta {
    justify-content: center;
}
