@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@600;700;800;900&display=swap');

:root {
    --primary-blue: #1cb0f6;
    --primary-blue-hover: #1899d6;
    --text-dark: #4b4b4b;
    --text-gray: #afafaf;
    --border-color: #e5e5e5;
    --bg-light-blue: #ddf4ff;
    --logo-green: #58cc02;
    --bg-hover-gray: #f7f7f7;
    --font-family: 'Nunito', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    color: var(--text-dark);
    background-color: #ffffff;
    font-size: 15px;
}

/* Header */
.top-nav {
    border-bottom: 2px solid var(--border-color);
    position: sticky;
    top: 0;
    background: white;
    z-index: 100;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1040px;
    margin: 0 auto;
    padding: 12px 24px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 20px;
    font-weight: 800;
    color: var(--logo-green);
    text-transform: lowercase;
}

.logo svg {
    fill: var(--logo-green);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 24px;
}

.cart-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--primary-blue);
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-btn svg {
    fill: currentColor;
}

.profile-avatar {
    width: 32px;
    height: 32px;
    background-color: #ce82ff;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 16px;
    cursor: pointer;
}

/* Main Layout */
.main-wrapper {
    display: flex;
    max-width: 1040px;
    margin: 0 auto;
    padding: 32px 24px;
    gap: 48px;
}

/* Sidebar */
.sidebar {
    width: 240px;
    flex-shrink: 0;
}

.sidebar nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 16px;
    text-decoration: none;
    color: var(--text-gray);
    font-weight: 800;
    border-radius: 12px;
    border: 2px solid transparent;
    transition: all 0.2s;
    font-size: 13px;
    letter-spacing: 0.5px;
}

.nav-item:hover {
    background-color: var(--bg-hover-gray);
}

.nav-item.active {
    background-color: var(--bg-light-blue);
    color: var(--primary-blue);
    border-color: #84d8ff;
}

.nav-item svg {
    width: 28px;
    height: 28px;
}

/* Content Area */
.content {
    flex-grow: 1;
    max-width: 700px;
}

/* Banner */
.banner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 32px;
    border-bottom: 2px solid var(--border-color);
    margin-bottom: 32px;
}

.banner-text h1 {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 20px;
}

.btn-primary {
    background-color: var(--primary-blue);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 800;
    font-size: 15px;
    cursor: pointer;
    box-shadow: 0 4px 0 #1899d6;
    transition: transform 0.1s, box-shadow 0.1s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary:active {
    transform: translateY(4px);
    box-shadow: 0 0 0 #1899d6;
}

.banner-image {
    width: 240px;
    height: 140px;
}

/* Practice Skills Section */
.practice-skills h2 {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 24px;
}

.tabs {
    display: flex;
    border-bottom: 2px solid var(--border-color);
    margin-bottom: 24px;
    gap: 32px;
}

.tab {
    background: none;
    border: none;
    padding: 12px 0;
    font-weight: 800;
    font-size: 13px;
    color: var(--text-gray);
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    font-family: var(--font-family);
}

.tab:hover {
    color: var(--text-dark);
}

.tab.active {
    color: var(--primary-blue);
}

.tab.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 3px;
    background-color: var(--primary-blue);
    border-radius: 3px 3px 0 0;
}

/* Skills Grid */
.skills-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.skill-card {
    display: flex;
    align-items: center;
    padding: 16px;
    border: 2px solid var(--border-color);
    border-radius: 16px;
    gap: 16px;
    background-color: white;
    box-shadow: 0 2px 0 var(--border-color);
    cursor: pointer;
    transition: transform 0.1s, box-shadow 0.1s, background-color 0.1s;
}

.skill-card:hover {
    background-color: var(--bg-hover-gray);
}

.skill-card:active {
    transform: translateY(2px);
    box-shadow: 0 0 0 var(--border-color);
}

.card-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.card-icon svg {
    width: 100%;
    height: 100%;
}

.card-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.card-info h3 {
    font-size: 16px;
    font-weight: 800;
    color: var(--text-dark);
}

.progress-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.progress-bar-bg {
    flex-grow: 1;
    height: 10px;
    background-color: var(--border-color);
    border-radius: 5px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background-color: #58cc02;
    width: 0%;
    border-radius: 5px;
}

.score {
    font-size: 14px;
    color: var(--text-gray);
    font-weight: 800;
}

/* Footer */
.footer {
    display: flex;
    justify-content: center;
    gap: 32px;
    padding: 48px 0 32px;
    margin-top: 32px;
}

.footer a {
    color: var(--text-gray);
    text-decoration: none;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer a:hover {
    color: var(--text-dark);
}

/* Help Button */
.help-btn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background-color: white;
    border: 2px solid var(--border-color);
    padding: 12px 20px;
    border-radius: 24px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 800;
    font-size: 14px;
    color: var(--primary-blue);
    cursor: pointer;
    box-shadow: 0 2px 0 var(--border-color);
    font-family: var(--font-family);
    transition: transform 0.1s, box-shadow 0.1s, background-color 0.1s;
}

.help-btn:hover {
    background-color: var(--bg-hover-gray);
}

.help-btn:active {
    transform: translateY(2px);
    box-shadow: 0 0 0 var(--border-color);
}

.help-btn svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

/* Score Sections */
.score-section {
    margin-bottom: 32px;
}

.score-section h2 {
    font-size: 18px;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 16px;
}

.score-card {
    border: 2px solid var(--border-color);
    border-radius: 16px;
    padding: 32px;
    background-color: white;
}

/* Overall Score Card */
.overall-card {
    display: flex;
    gap: 48px;
    align-items: center;
}

.gauge-container {
    position: relative;
    width: 280px;
    height: auto;
    flex-shrink: 0;
    text-align: center;
}

.gauge-svg {
    width: 100%;
    height: 100%;
    overflow: visible;
}

.gauge-labels {
    display: flex;
    justify-content: space-between;
    margin-top: -10px;
    font-weight: 700;
    color: var(--text-gray);
    font-size: 14px;
}

.gauge-score {
    position: absolute;
    top: 40px;
    left: 0;
    right: 0;
    font-size: 48px;
    font-weight: 800;
    color: var(--text-dark);
}

.overall-details {
    flex-grow: 1;
    border-left: 2px solid var(--border-color);
    padding-left: 48px;
}

.overall-details h3 {
    font-size: 16px;
    font-weight: 800;
    margin-bottom: 16px;
    color: var(--text-dark);
}

.checklist {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.checklist li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 14px;
    color: #777;
    font-weight: 600;
    line-height: 1.5;
}

.checklist li svg {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

/* Grid Cards (Subscores) */
.grid-card-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    text-align: center;
}

.subscore-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.subscore-item .label {
    font-size: 12px;
    font-weight: 800;
    color: #777;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.subscore-item .value {
    font-size: 36px;
    font-weight: 800;
    color: var(--text-dark);
}

.subscore-item .desc {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-gray);
    margin-top: 4px;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .main-wrapper {
        flex-direction: column;
        padding: 16px;
        gap: 24px;
    }

    .sidebar {
        width: 100%;
    }

    .sidebar nav {
        flex-direction: row;
        gap: 8px;
    }

    .nav-item {
        flex: 1;
        justify-content: center;
        padding: 12px;
        gap: 8px; /* reduce gap between icon and text slightly */
    }

    .overall-card {
        flex-direction: column;
        gap: 24px;
        text-align: center;
    }

    .overall-details {
        border-left: none;
        border-top: 2px solid var(--border-color);
        padding-left: 0;
        padding-top: 24px;
        width: 100%;
    }

    .grid-card-4 {
        grid-template-columns: repeat(2, 1fr);
    }

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