/* ===============================================
   ELDER SPORES ONLINE - SKILLS SYSTEM STYLES
   Version: 1.0
   Created: January 3, 2025
   
   Extracted skill system styles from main styles.css
   =============================================== */

.skill-selector-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.0);
    z-index: 1000;
    align-items: center;
    justify-content: flex-start;
}

.skill-selector-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
}

.editor-mode .skill-selector-window { 
    position: absolute;
    left: 20%; /* 29.66 */
    bottom: 2%;
    width: 60%; /* 39.2% */
    height: 81%;
    max-height: 800px;
    background-color: #1a1a1a01;
    background-image: url('/graphics/skill_selector_background2.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border: var(--border-standard);
    border-radius: 24px;
    display: flex;
    flex-direction: column;
    box-shadow: 
        0 0px 5px rgba(0, 0, 0, 0.9),
        0 0px 10px rgba(0, 0, 0, 0.9),
        0 0px 15px rgba(0, 0, 0, 0.9);
}

.skill-selector-header {
    display: flex;
    max-height: 10%;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: linear-gradient(to right, var(--color-secondary), #2a2a2a);
    border-bottom: 1px solid #000000;
    border-radius: 22px 22px 0 0;
}

.skill-selector-header h2 {
    margin: 0;
    color: var(--color-primary);
    font-size: 1.5rem;
    text-shadow: 
        0px 0px 4px rgba(0, 0, 0, 0.8),
        1px 1px 8px rgba(0, 0, 0, 0.8),
        2px 2px 16px rgba(0, 0, 0, 0.8);
}

.skill-selector-close {
    padding: 5px 10px;
    background: none;
    border: none;
    color: var(--color-text);
    font-size: 24px;
    border-radius: 3px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.skill-selector-close:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Skill Categories Panel */
.skill-categories-panel {
    width: 30%;
    background: rgba(26, 26, 26, 1);
    border-right: 1px solid var(--color-secondary);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--color-secondary) #1a1a1a;
}

.skill-categories-panel h3 {
    margin: 0;
    padding: 15px 20px;
    color: var(--color-primary);
    background: rgb(15, 15, 15);
    border-bottom: 1.5px solid var(--color-secondary);
    text-align: center;
    text-shadow: 
        2px 2px 4px rgba(0, 0, 0, 0.8),
        2px 2px 8px rgba(0, 0, 0, 0.8),
        2px 2px 16px rgba(0, 0, 0, 0.8);
}

.skill-category {
    border-bottom: 1px solid #333;
}

.category-header {
    display: flex;
    width: 100%;
    align-items: center;
    gap: 10px;
    padding: 13.5px 15px;
    background: rgba(33, 33, 33, 0.8);
    color: var(--color-text);
    cursor: pointer;
    transition: background-color 0.2s;
    text-shadow: 
        0px 0px 4px rgba(0, 0, 0, 0.8),
        1px 1px 8px rgba(0, 0, 0, 0.8),
        2px 2px 16px rgba(0, 0, 0, 0.8);
}

.category-header:hover {
    background: rgba(81, 81, 81, 0.9);
}

.category-icon {
    width: 20px;
    font-size: 16px;
    text-align: center;
}

.category-name {
    flex: 1;
    font-weight: bold;
}

.category-toggle {
    transition: transform 0.2s;
}

.skill-category.expanded .category-toggle {
    transform: rotate(180deg);
}

.skill-lines {
    background: rgb(15, 15, 15);
    max-height: 300px;
    overflow-y: auto;
    transition: max-height 0.3s ease;
}

.skill-lines.collapsed {
    max-height: 0;
    overflow: hidden;
}

.skill-line {
    padding: 10px 50px;
    color: #ccc;
    border-bottom: 1px solid #333;
    cursor: pointer;
    transition: var(--transition-fast);
    text-shadow: 
        0px 0px 4px rgba(0, 0, 0, 0.8),
        1px 1px 8px rgba(0, 0, 0, 0.8),
        2px 2px 16px rgba(0, 0, 0, 0.8);
}

button.skill-line {
    display: block;
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 2px solid #3b3b3b;
    text-align: left;
    font-family: inherit;
    font-size: inherit;
}

.skill-line:hover {
    background: rgba(69, 69, 69, 0.7);
    color: var(--color-primary);
}

.skill-line.selected {
    color: var(--color-primary);
    font-weight: bold;
}

/* ===============================================
   SKILLS SEARCH BAR
   =============================================== */

.skill-search-container {
    position: sticky;
    top: 0;
    z-index: 10;
    margin-bottom: 5px;
    padding: 15px 20px 15px 20px;
    background: linear-gradient(to bottom, rgb(0, 0, 0) 35%, rgba(10, 10, 10, 0.0));
    /*border-bottom: 1px solid var(--color-secondary);*/
    backdrop-filter: blur(3px);
}

.skill-search-input {
    width: 100%;
    padding: 10px 40px 10px 15px;
    background: rgba(0, 0, 0, 0.85);
    color: var(--color-text);
    border: 1px solid #666;
    border-radius: 5px;
    font-size: 14px;
    transition: all 0.3s;
    box-shadow: 
        0px 0px 4px rgba(0, 0, 0, 0.8),
        1px 1px 8px rgba(0, 0, 0, 0.8),
        2px 2px 16px rgba(0, 0, 0, 0.8);
}

.skill-search-input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 5px rgba(255, 215, 0, 0.3);
}

.skill-search-input::placeholder {
    color: #999;
    opacity: 0.7;
}

.skill-search-container .search-icon {
    position: absolute;
    right: 7%;
    top: 49%;
    transform: translateY(-50%);
    color: #999;
    pointer-events: none;
}

/* ===============================================
   SKILLS SEARCH BAR END
   =============================================== */

/* Skills Display Panel */
.skills-display-panel {
    flex: 1;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--color-secondary) #1a1a1a;
}

.skill-line-header { 
    padding: 10px 15px;
    background: rgba(0, 0, 0, 1);
    border-radius: 20px;
    margin-top: 0;
    margin-left: 10px;
    margin-right: 10px;
    box-shadow: 
        0px 0px 5px rgba(0, 0, 0, 1),
        1px 1px 10px rgba(0, 0, 0, 1),
        2px 2px 16px rgba(0, 0, 0, 1);
}
.skill-line-header h3 {
    margin: 0;
    color: var(--color-primary);
    background: solid rgba(0, 0, 0, 1);
    font-size: x-large;
    letter-spacing: 1px;
    text-shadow: 
        0px 0px 5px rgba(0, 0, 0, 1),
        1px 1px 10px rgba(0, 0, 0, 1),
        2px 2px 16px rgba(0, 0, 0, 1);
}

.skill-section {
    margin: 10px;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 1) 60px, rgba(10, 10, 10, 0.0) 100%);
    border-radius: 12px 12px 0 0;
}

.skill-section-header {
    margin-bottom: 10px;
    padding-top: 15px;
    padding-left: 15px;
    padding-bottom: 15px;
    color: var(--color-primary);
    font-size: 14px;
    letter-spacing: 2px;
    font-weight: bold;
    border-bottom: 1px solid var(--color-secondary);
    
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.skills-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
}

/* Skill Items and Rows */
.skill-row {
    position: relative;
    width: 95%;
    height: 80px;
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 0;
    padding-left: 150px;
    background: transparent;
    border: none;
}

.skill-display-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    width: 100%;
    height: 80px;
    gap: 15px;
    padding-right: 20px;
    margin-left: 0;
}

.skill-name-header {
    width: 40%;
    color: var(--color-primary);
    font-size: 16px;
    font-weight: bold;
    line-height: 1.2;
    text-align: left;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    flex-shrink: 0;
}

.skill-item {
    position: relative;
    width: 100px;
    height: 100px;
    padding: 5px;
    background-image: url('/graphics/Icon-Skill.jpg');
    background-size: cover;
    background-position: center;
    border: 2px solid #666;
    border-radius: 5px;
    color: var(--color-text);
    font-size: 12px;
    text-align: center;
    text-shadow: 
        0px 0px 5px rgba(0, 0, 0, 1),
        1px 1px 10px rgba(0, 0, 0, 1),
        2px 2px 16px rgba(0, 0, 0, 1);
    cursor: grab;
    transition: var(--transition-fast);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    box-shadow: 
        0px 0px 5px rgba(0, 0, 0, 1),
        1px 1px 10px rgba(0, 0, 0, 1),
        2px 2px 16px rgba(0, 0, 0, 1);
}

.skill-item:hover {
    border-color: var(--color-primary);
    background: #3a3a3a;
    box-shadow: 
        0px 0px 8px rgba(0, 0, 0, 1),
        1px 1px 15px rgba(0, 0, 0, 1),
        2px 2px 20px rgba(0, 0, 0, 1);
}

.skill-item.dragging {
    opacity: 0.5;
    cursor: grabbing;
}

.skill-item.ultimate {
    background-image: url('/graphics/Icon-Ult.jpg');
}

.skill-item.passive {
    background-image: url('/graphics/Icon-Passive.jpg');
}

.skill-icon {
    width: 64px;
    height: 64px;
    border: 2px solid #666;
    border-radius: 5px;
    background-size: cover;
    background-position: center;
    cursor: grab;
    transition: var(--transition-fast);
    flex-shrink: 0;
}

.skill-icon:hover {
    border-color: var(--color-primary);
    box-shadow: 
        0px 0px 8px var(--color-primary),
        1px 1px 15px var(--color-primary),
}

.skill-item .skill-name {
    font-size: 12px;
    line-height: 1.1;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* Skill Selector Footer */
.skill-selector-footer,
.row-morph-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: #2a2a2a;
    border-top: 1px solid var(--color-secondary);
    border-radius: 0 0 20px 20px;
    order: 3;
}

/* Skill Bars */
.skill-selector-bars {
    padding: 15px 20px;
    background: rgba(10, 10, 10, 0.5);
    border-top: 1px solid var(--color-secondary);
    order: 2;
}

.skill-bar-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.bar-swap-controls {
    display: flex;
    justify-content: center;
}

.bar-swap-button {
    padding: 8px 20px;
    background: var(--color-secondary);
    border: 1px solid var(--color-primary);
    color: var(--color-primary);
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
    transition: var(--transition-fast);
}

.bar-swap-button:hover {
    background: var(--color-primary);
    color: var(--color-background);
}

.skill-slots-preview {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 10px;
}

.skill-bar-preview {
    display: none;
    flex-direction: row;
    gap: 8px;
}

.skill-bar-preview.active-bar {
    display: flex !important;
}

.Werewolf-bar {
    display: none !important;
}

.Werewolf-bar.active-bar {
    display: flex !important;
}

.preview-slot {
    width: 50px;
    height: 50px;
    background: var(--color-panel);
    border: 2px solid #666;
    border-radius: 5px;
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
}

.preview-slot.ultimate-slot {
    border-color: var(--color-primary);
}

.preview-slot.occupied {
    background: #0a4a0a;
    border-color: var(--color-success);
}

.preview-slot.drag-over {
    background: rgba(0, 255, 0, 0.2);
    border-color: var(--color-success);
}

.preview-slot.invalid-drop {
    background: rgba(255, 0, 0, 0.2);
    border-color: var(--color-error);
}

/* ===============================================
   COEFFICIENT TOOLTIP (shows above regular tooltip)
   =============================================== */

.coefficient-tooltip {
    position: fixed;
    padding: 0.5%;
    background: linear-gradient(135deg, rgba(30, 30, 35, 0.98), rgba(20, 20, 25, 0.99));
    border: 1px solid #4a3728;
    border-radius: 15px;
    color: var(--color-text);
    font-size: clamp(1.75vb, 1.75rem, 1.75vb);
    max-width: 20%;
    min-width: 400px;
    box-shadow: var(--shadow-lg);
    pointer-events: none;
    display: none;
    z-index: 15001;
    text-align: center;
}

.coefficient-tooltip.active {
    display: block !important;
}

.coefficient-tooltip-inner {
    padding: 8px;
    border: 2px solid rgb(106, 116, 255);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.2);
    box-shadow: 0 0 5px rgba(82, 93, 255, 0.5);
}

.coeff-header {
    color: #6a74ff;
    font-weight: bold;
    font-size: 16px;
    text-shadow: 0 0 5px rgba(106, 116, 255, 0.2);
    margin-bottom: 5px;
}
.coeff-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 10px;
}

.coeff-index-section {
    margin: 0;
    padding: 10px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 5px;
}

.coeff-index-title {
    color: #ffffff;
    font-weight: bold;
    font-size: 14px;
    margin-bottom: 5px;
    text-align: left;
}

.coeff-value {
    color: #cccccc;
    font-size: 13px;
    line-height: 1.4;
    text-align: left;
    padding-left: 10px;
}

.tooltip-footer {
    padding-top: 8px;
    padding-bottom: 1px;
    padding-right: 10px;
    color: #6a74ff;
    opacity: 0.75;
    font-size: 13px;
    text-align: right;
    font-style: italic;
}