/* Shared Skill Menu Styles
   Used across all practice platform menu pages.
   Override --menu-* variables per platform. */

:root {
    --menu-primary: #00695c;
    --menu-dark: #004d40;
    --menu-darker: #00332e;
    --menu-accent: #26a69a;
    --menu-hover-bg: #e0f2f1;
    --menu-light-bg: #f8fffe;
    --menu-border-accent: #e0f2f1;
    --menu-red: #c62828;
    --menu-green: #2e7d32;
    --menu-orange: #f57c00;
    --menu-blue: #1565c0;
    --menu-purple: #7b1fa2;
}

/* Hero */
.unit-hero {
    background: linear-gradient(135deg, var(--menu-dark) 0%, var(--menu-darker) 100%);
    padding: 50px 0 60px;
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.unit-hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='100' height='100' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='50' cy='50' r='20' fill='none' stroke='%23ffffff' stroke-opacity='0.03' stroke-width='1'/%3E%3Ccircle cx='50' cy='50' r='8' fill='none' stroke='%23ffffff' stroke-opacity='0.03' stroke-width='1'/%3E%3C/svg%3E");
}
.unit-hero h1 {
    font-size: 2.4em;
    font-weight: 800;
    margin-bottom: 8px;
    position: relative;
    color: white;
}
.unit-hero .unit-question {
    font-size: 1.1em;
    font-style: italic;
    opacity: 0.85;
    margin-bottom: 15px;
    position: relative;
}
.unit-badges {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    position: relative;
}
.badge-pill {
    display: inline-block;
    padding: 6px 18px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 600;
}
.badge-school { background: var(--menu-blue); color: white; }
.badge-skills { background: rgba(255,255,255,0.15); color: white; border: 1px solid rgba(255,255,255,0.3); }

/* Breadcrumb */
.breadcrumb-bar {
    background: #f0f0f0;
    padding: 12px 0;
    border-bottom: 2px solid var(--menu-border-accent);
}
.breadcrumb-bar .breadcrumb { background: none; margin: 0; padding: 0; font-size: 0.9em; }
.breadcrumb-bar .breadcrumb a { color: var(--menu-primary); text-decoration: none; }
.breadcrumb-bar .breadcrumb a:hover { text-decoration: underline; }

/* Concept Map / Skill Map Section */
.concept-map-section {
    padding: 40px 0 20px;
}
.concept-map-section h2 {
    font-size: 1.6em;
    font-weight: 700;
    color: var(--menu-primary);
    text-align: center;
    margin-bottom: 5px;
}
.concept-map-subtitle {
    text-align: center;
    color: #888;
    font-size: 0.95em;
    margin-bottom: 30px;
}

/* AoS Sections */
.aos-section {
    margin-bottom: 40px;
}
.aos-header {
    background: linear-gradient(135deg, var(--menu-primary), var(--menu-dark));
    color: white;
    padding: 20px 25px;
    border-radius: 16px 16px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}
.aos-header h3 {
    font-size: 1.2em;
    font-weight: 700;
    margin: 0;
    color: white;
}
.aos-header .aos-count {
    background: rgba(255,255,255,0.2);
    padding: 4px 14px;
    border-radius: 15px;
    font-size: 0.85em;
    font-weight: 600;
}

/* Skill Groups (Collapsible) */
.skill-group {
    background: white;
    border: 2px solid #e0e0e0;
    border-top: none;
    padding: 0;
}
.skill-group:last-child {
    border-radius: 0 0 16px 16px;
}
.group-header {
    padding: 16px 25px;
    background: var(--menu-light-bg);
    border-bottom: 1px solid #e8e8e8;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: background 0.2s;
}
.group-header:hover { background: var(--menu-hover-bg); }
.group-header h4 {
    font-size: 1.05em;
    font-weight: 600;
    color: var(--menu-dark);
    margin: 0;
}
.group-header .group-count {
    color: #999;
    font-size: 0.85em;
}
.group-header .chevron {
    transition: transform 0.3s;
    color: #999;
    font-size: 1.2em;
}
.group-header.collapsed .chevron { transform: rotate(-90deg); }

/* Skill Nodes */
.skill-node {
    display: flex;
    align-items: center;
    padding: 12px 25px;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.2s;
    text-decoration: none;
    color: #333;
}
.skill-node:hover {
    background: var(--menu-hover-bg);
    text-decoration: none;
    color: var(--menu-primary);
}
.skill-node:last-child { border-bottom: none; }

/* Status Dots */
.node-status {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 12px;
    flex-shrink: 0;
}
.node-status.live { background: var(--menu-green); box-shadow: 0 0 6px rgba(46,125,50,0.4); }
.node-status.soon { background: #ddd; }
.node-status.building { background: var(--menu-orange); box-shadow: 0 0 6px rgba(245,124,0,0.4); }

/* Skill Metadata */
.skill-name {
    flex: 1;
    font-size: 0.9em;
    line-height: 1.4;
}
.skill-id {
    color: #bbb;
    font-size: 0.75em;
    font-family: monospace;
    margin-left: 8px;
    flex-shrink: 0;
}
.skill-type-tag {
    font-size: 0.7em;
    padding: 2px 8px;
    border-radius: 10px;
    margin-left: 8px;
    flex-shrink: 0;
    font-weight: 600;
}
.tag-calc { background: #e3f2fd; color: var(--menu-blue); }
.tag-mcq { background: #f3e5f5; color: var(--menu-purple); }
.tag-eq { background: #fff3e0; color: var(--menu-orange); }
.tag-graph { background: #e8f5e9; color: var(--menu-green); }
.tag-struct { background: #fce4ec; color: var(--menu-red); }

/* Navigation Footer */
.nav-footer {
    display: flex;
    justify-content: center;
    gap: 15px;
    padding: 40px 0;
    flex-wrap: wrap;
}
.nav-btn {
    padding: 12px 28px;
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    font-size: 0.95em;
}
.nav-btn.primary {
    background: linear-gradient(135deg, var(--menu-primary), var(--menu-dark));
    color: white;
}
.nav-btn.primary:hover { background: linear-gradient(135deg, var(--menu-dark), var(--menu-darker)); color: white; text-decoration: none; transform: translateY(-2px); }
.nav-btn.secondary { background: white; color: var(--menu-primary); border: 2px solid var(--menu-primary); }
.nav-btn.secondary:hover { background: var(--menu-primary); color: white; text-decoration: none; transform: translateY(-2px); }

/* Legend */
.legend {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 20px 0;
    flex-wrap: wrap;
}
.legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8em;
    color: #888;
}

/* Skill Search */
.skill-search-wrap {
    max-width: 480px;
    margin: 24px auto 0;
    position: relative;
}
.skill-search-wrap i {
    position: absolute;
    left: 16px;
    top: 35%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 14px;
    pointer-events: none;
}
.skill-search-input {
    width: 100%;
    padding: 12px 16px 12px 42px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 0.95em;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: #fff;
}
.skill-search-input:focus {
    border-color: var(--menu-primary);
    box-shadow: 0 0 0 3px rgba(var(--menu-primary-rgb, 0,105,92), 0.1);
}
.skill-search-input::placeholder { color: #94a3b8; }
.skill-search-count {
    text-align: center;
    font-size: 0.82em;
    color: #64748b;
    margin-top: 8px;
    min-height: 1.4em;
}
.skill-node.search-hidden,
.skill-group.search-hidden,
.aos-section.search-hidden { display: none !important; }
.skill-node.search-highlight .skill-name { background: #fef9c3; border-radius: 3px; }

/* FREE badge */
.badge-free {
    background: #27ae60;
    color: #fff;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 3px;
    margin-left: 4px;
    font-weight: bold;
}
