/* ==========================================================================
   Skills Intelligence Matrix Styles
   Google-Level Interactive Visualization
   ========================================================================== */

/* Skills Section Base */
.skills {
    position: relative;
    padding: var(--space-5xl) 0;
    background: var(--color-grey-50);
    overflow: hidden;
}

.skills-container {
    position: relative;
}

.skills-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: var(--z-below);
    overflow: hidden;
}

.bg-circle-6 {
    width: 600px;
    height: 600px;
    top: -300px;
    right: -200px;
    background: linear-gradient(135deg, 
        rgba(26, 115, 232, 0.08) 0%, 
        rgba(52, 168, 83, 0.08) 100%);
    border-radius: 50%;
}

.bg-circle-7 {
    width: 400px;
    height: 400px;
    bottom: -200px;
    left: -100px;
    background: linear-gradient(135deg, 
        rgba(161, 66, 244, 0.08) 0%, 
        rgba(251, 188, 4, 0.08) 100%);
    border-radius: 50%;
}

.skills-bg-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(26, 115, 232, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(52, 168, 83, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(161, 66, 244, 0.05) 0%, transparent 50%);
}

/* Skills Dashboard */
.skills-dashboard {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: var(--space-3xl);
    margin-bottom: var(--space-4xl);
}

/* Skills Controls */
.skills-controls {
    position: sticky;
    top: 120px;
    height: fit-content;
}

.controls-card {
    background: var(--color-white);
    border-radius: var(--radius-xl);
    padding: var(--space-2xl);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--color-grey-100);
}

.controls-title {
    font-size: 24px;
    font-weight: 600;
    color: #202124;
    margin-bottom: var(--space-xs);
}

.controls-subtitle {
    font-size: 14px;
    color: #5F6368;
    margin-bottom: var(--space-2xl);
    line-height: 1.5;
}

/* Category Filters */
.category-filters {
    margin-bottom: var(--space-2xl);
}

.filter-title {
    font-size: 14px;
    font-weight: 600;
    color: #202124;
    margin-bottom: var(--space-md);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-tags {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.filter-tag {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-md);
    background: var(--color-grey-50);
    border: 1px solid var(--color-grey-100);
    border-radius: var(--radius-md);
    font-size: 14px;
    color: #5F6368;
    cursor: pointer;
    transition: all var(--transition-fast);
    text-align: left;
    width: 100%;
}

.filter-tag:hover {
    background: var(--color-grey-100);
    transform: translateX(4px);
}

.filter-tag.active {
    background: var(--color-primary-50);
    border-color: var(--color-primary-200);
    color: var(--color-primary-600);
    font-weight: 500;
}

.filter-icon {
    font-size: 16px;
    margin-right: var(--space-sm);
}

.filter-count {
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 500;
    background: var(--color-white);
    padding: 2px 8px;
    border-radius: var(--radius-full);
}

.filter-tag.active .filter-count {
    background: var(--color-primary-100);
    color: var(--color-primary-700);
}

/* Proficiency Filter */
.proficiency-filter {
    margin-bottom: var(--space-2xl);
}

.proficiency-slider {
    margin-top: var(--space-md);
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    margin-bottom: var(--space-sm);
}

.slider-labels span {
    font-size: 11px;
    color: #5F6368;
    font-weight: 500;
}

.slider-track {
    position: relative;
    height: 6px;
    background: var(--color-grey-100);
    border-radius: var(--radius-full);
    margin: var(--space-md) 0;
    cursor: pointer;
}

.slider-fill {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
}

.slider-handle {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    background: var(--color-white);
    border: 3px solid var(--color-primary-600);
    border-radius: 50%;
    box-shadow: var(--shadow-md);
    cursor: grab;
}

.slider-handle:active {
    cursor: grabbing;
}

.slider-value {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-primary-600);
    text-align: center;
    margin-top: var(--space-sm);
}

/* Sort Controls */
.sort-controls {
    margin-bottom: var(--space-2xl);
}

.sort-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-sm);
}

.sort-option {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-md);
    background: var(--color-grey-50);
    border: 1px solid var(--color-grey-100);
    border-radius: var(--radius-md);
    font-size: 13px;
    color: #5F6368;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.sort-option:hover {
    background: var(--color-grey-100);
}

.sort-option.active {
    background: var(--color-primary-50);
    border-color: var(--color-primary-200);
    color: var(--color-primary-600);
    font-weight: 500;
}

.sort-option i {
    font-size: 12px;
}

/* Stats Summary */
.stats-summary {
    display: flex;
    justify-content: space-between;
    padding: var(--space-lg);
    background: var(--color-grey-50);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-grey-100);
    margin-bottom: var(--space-2xl);
}

.stats-summary .stat-item {
    text-align: center;
}

.stats-summary .stat-value {
    font-size: 24px;
    font-weight: 600;
    color: #202124;
    line-height: 1;
    margin-bottom: var(--space-xs);
}

.stats-summary .stat-label {
    font-size: 12px;
    color: #5F6368;
    letter-spacing: 0.3px;
}

/* Export Button */
.export-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    width: 100%;
    padding: var(--space-lg);
    background: var(--color-white);
    border: 2px solid var(--color-primary-600);
    border-radius: var(--radius-md);
    font-size: 15px;
    font-weight: 500;
    color: var(--color-primary-600);
    cursor: pointer;
    transition: all var(--transition-base);
}

.export-btn:hover {
    background: var(--color-primary-50);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.export-btn i {
    font-size: 14px;
}

/* Skills Visualization */
.skills-visualization {
    display: flex;
    flex-direction: column;
    gap: var(--space-3xl);
}

/* Radial Chart */
.radial-chart-container {
    background: var(--color-white);
    border-radius: var(--radius-xl);
    padding: var(--space-2xl);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--color-grey-100);
    position: relative;
}

.radial-chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-2xl);
}

.chart-title {
    font-size: 20px;
    font-weight: 600;
    color: #202124;
}

.chart-legend {
    display: flex;
    gap: var(--space-lg);
}

.legend-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 12px;
    color: #5F6368;
}

.legend-color {
    width: 12px;
    height: 12px;
    border-radius: 2px;
}

.radial-chart-wrapper {
    position: relative;
    width: 400px;
    height: 400px;
    margin: 0 auto;
}

.radial-chart {
    width: 100%;
    height: 100%;
}

.chart-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.center-value {
    font-size: 32px;
    font-weight: 600;
    color: #202124;
    line-height: 1;
    margin-bottom: var(--space-xs);
}

.center-label {
    font-size: 12px;
    color: #5F6368;
    letter-spacing: 0.5px;
}

.chart-categories {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.category-label {
    position: absolute;
    top: 50%;
    left: 50%;
    transform-origin: 0 0;
    font-size: 12px;
    font-weight: 500;
    color: #5F6368;
    white-space: nowrap;
}

/* Skills Grid */
.skills-grid-container {
    background: var(--color-white);
    border-radius: var(--radius-xl);
    padding: var(--space-2xl);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--color-grey-100);
}

.skills-grid-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-2xl);
}

.grid-title {
    font-size: 20px;
    font-weight: 600;
    color: #202124;
}

.grid-count {
    display: flex;
    align-items: baseline;
    gap: var(--space-xs);
}

.count-value {
    font-size: 24px;
    font-weight: 600;
    color: var(--color-primary-600);
}

.count-label {
    font-size: 14px;
    color: #5F6368;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--space-lg);
}

.skill-card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    border: 1px solid var(--color-grey-100);
    transition: all var(--transition-base);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.skill-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.skill-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.skill-card:hover::before {
    opacity: 1;
}

.skill-header {
    display: flex;
    align-items: center;
    margin-bottom: var(--space-lg);
}

.skill-icon {
    width: 48px;
    height: 48px;
    background: var(--color-primary-50);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-right: var(--space-md);
    color: var(--color-primary-600);
}

.skill-name-category {
    flex: 1;
}

.skill-name {
    font-size: 18px;
    font-weight: 600;
    color: #202124;
    margin-bottom: 4px;
}

.skill-category {
    font-size: 12px;
    color: #5F6368;
    background: var(--color-grey-50);
    padding: 2px 8px;
    border-radius: var(--radius-full);
    display: inline-block;
}

.skill-proficiency {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-lg);
}

.proficiency-level {
    font-size: 14px;
    font-weight: 600;
    color: #202124;
}

.proficiency-bars {
    flex: 1;
    height: 8px;
    background: var(--color-grey-100);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.proficiency-fill {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
    transition: width 1s ease;
}

.skill-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: var(--space-lg);
}

.meta-item {
    text-align: center;
}

.meta-label {
    font-size: 11px;
    color: #5F6368;
    margin-bottom: 2px;
    letter-spacing: 0.3px;
}

.meta-value {
    font-size: 14px;
    font-weight: 600;
    color: #202124;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs);
}

.skill-tag {
    font-size: 11px;
    color: #5F6368;
    background: var(--color-grey-50);
    padding: 2px 8px;
    border-radius: var(--radius-full);
    border: 1px solid var(--color-grey-100);
}

/* Skill Modal */
.skill-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    z-index: var(--z-modal);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-xl);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
}

.skill-modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--color-white);
    border-radius: var(--radius-xl);
    width: 100%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: var(--shadow-2xl);
    border: 1px solid var(--color-grey-100);
}

.modal-close {
    position: absolute;
    top: var(--space-lg);
    right: var(--space-lg);
    width: 40px;
    height: 40px;
    background: var(--color-grey-50);
    border: 1px solid var(--color-grey-100);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #5F6368;
    cursor: pointer;
    transition: all var(--transition-fast);
    z-index: 1;
}

.modal-close:hover {
    background: var(--color-grey-100);
    color: #202124;
}

.modal-header {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    padding: var(--space-2xl) var(--space-2xl) 0;
    margin-bottom: var(--space-2xl);
}

.modal-icon {
    width: 64px;
    height: 64px;
    background: var(--color-primary-50);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: var(--color-primary-600);
}

.modal-title-info {
    flex: 1;
}

.modal-title {
    font-size: 32px;
    font-weight: 600;
    color: #202124;
    margin-bottom: var(--space-xs);
}

.modal-category {
    font-size: 14px;
    color: var(--color-primary-600);
    background: var(--color-primary-50);
    padding: 4px 12px;
    border-radius: var(--radius-full);
    display: inline-block;
}

.modal-body {
    padding: 0 var(--space-2xl);
}

.skill-metrics {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-lg);
    margin-bottom: var(--space-2xl);
    padding-bottom: var(--space-2xl);
    border-bottom: 1px solid var(--color-grey-100);
}

.metric {
    text-align: center;
}

.metric-label {
    font-size: 12px;
    color: #5F6368;
    margin-bottom: var(--space-sm);
    letter-spacing: 0.3px;
}

.metric-value {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.metric-number {
    font-size: 20px;
    font-weight: 600;
    color: #202124;
    min-width: 60px;
}

.modal-body h4 {
    font-size: 18px;
    font-weight: 600;
    color: #202124;
    margin-bottom: var(--space-md);
}

.skill-description {
    margin-bottom: var(--space-2xl);
}

.skill-description p {
    font-size: 16px;
    line-height: 1.7;
    color: #5F6368;
}

.skill-projects {
    margin-bottom: var(--space-2xl);
}

.projects-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.project-item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md);
    background: var(--color-grey-50);
    border-radius: var(--radius-md);
    border: 1px solid var(--color-grey-100);
}

.project-icon {
    font-size: 20px;
}

.project-info {
    flex: 1;
}

.project-name {
    font-size: 14px;
    font-weight: 500;
    color: #202124;
    margin-bottom: 2px;
}

.project-desc {
    font-size: 12px;
    color: #5F6368;
    line-height: 1.4;
}

.skill-growth {
    margin-bottom: var(--space-2xl);
}

.growth-chart {
    display: flex;
    align-items: flex-end;
    gap: var(--space-sm);
    height: 100px;
    padding: var(--space-lg) 0;
}

.growth-bar {
    flex: 1;
    background: var(--gradient-primary);
    border-radius: var(--radius-sm);
    position: relative;
    min-height: 20px;
    transition: all var(--transition-base);
    cursor: pointer;
}

.growth-bar:hover {
    opacity: 0.9;
    transform: scaleY(1.1);
}

.growth-year {
    position: absolute;
    bottom: -25px;
    left: 0;
    right: 0;
    text-align: center;
    font-size: 12px;
    color: #5F6368;
    font-weight: 500;
}

.growth-level {
    position: absolute;
    top: -25px;
    left: 0;
    right: 0;
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    color: var(--color-primary-600);
}

.modal-footer {
    padding: var(--space-2xl);
    border-top: 1px solid var(--color-grey-100);
    display: flex;
    justify-content: center;
}

/* Skills Legend */
.skills-legend {
    background: var(--color-white);
    border-radius: var(--radius-xl);
    padding: var(--space-2xl);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--color-grey-100);
}

.legend-title {
    font-size: 18px;
    font-weight: 600;
    color: #202124;
    margin-bottom: var(--space-lg);
    text-align: center;
}

.legend-scale {
    display: flex;
    justify-content: space-between;
    gap: var(--space-sm);
}

.scale-level {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: var(--space-lg);
    background: var(--color-grey-50);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-grey-100);
    transition: all var(--transition-fast);
}

.scale-level:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.level-color {
    width: 40px;
    height: 8px;
    border-radius: var(--radius-full);
    margin-bottom: var(--space-md);
}

.level-label {
    font-size: 14px;
    font-weight: 600;
    color: #202124;
    margin-bottom: var(--space-xs);
}

.level-desc {
    font-size: 12px;
    color: #5F6368;
    line-height: 1.4;
}