/* ===============================================
   ELDER SPORES ONLINE - MORPH SELECTOR STYLES
   Version: 1.0
   Created: January 3, 2025
   
   Extracted morph selector styles from main styles.css
   =============================================== */

/* Morph System */
.skill-morph-button {
    width: 24px;
    height: 24px;
    margin-right: 15px;
    background: rgba(74, 55, 40, 0.9);
    border: 2px solid var(--color-primary);
    border-radius: 3px;
    cursor: pointer;
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    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-morph-button:hover {
    background: var(--color-primary);
    transform: scale(1.1);
}

.skill-morph-button img {
    width: 12px;
    height: 12px;
}

.skill-item .morph-indicator {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 20px;
    height: 20px;
    background: url('/graphics/morphs.png') center/cover;
    border: 1px solid var(--color-primary);
    border-radius: 3px;
    cursor: pointer;
    transition: var(--transition-fast);
}

.skill-item .morph-indicator:hover {
    transform: scale(1.1);
    box-shadow: 0 0 8px rgba(255, 215, 0, 0.6);
}

/* Morph Overlay */
#row-morph-overlay {
   position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    z-index: 1200;
}

.row-morph-content {
    position: relative;
    top: 16.1%;
    left: 20%;
    width: 60%;
    max-height: 77%;
    background-image: url('/graphics/morph_background3.png');
    background-size: cover;
    border: var(--border-standard);
    border-radius: 32px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
}

.row-morph-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: linear-gradient(to right, var(--color-secondary), #2a2a2a);
    border-bottom: 1px solid var(--color-secondary);
    border-radius: 30px 30px 0 0;
}

.row-morph-header h3 {
    margin: 0;
    color: var(--color-primary);
    font-size: 1.3rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.row-morph-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;
}

.row-morph-close:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.row-morph-options {
    flex: 1;
    padding: 20px;
}

.morph-options-row {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.row-morph-option {
    position: relative;
    width: 31%;
    min-height: 340px;
    max-height: 80%;
    padding: 15px;
    background: rgba(25, 25, 25, 0.8);
    border: 2px solid #666;
    border-radius: 20px;
    cursor: pointer;
    transition: var(--transition-fast);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    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);
}

.row-morph-option:hover {
    border-color: var(--color-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.row-morph-option.selected {
    background: rgba(10, 74, 10, 0.8);
    border-color: var(--color-success);
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.3);
}

.row-morph-icon {
    width: 39%;
    aspect-ratio: 1;
    border: 2px solid #666;
    border-radius: 10px;
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
    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);
}

.row-morph-option.selected .row-morph-icon {
    border-color: var(--color-success);
    box-shadow: 0 0 8px rgba(0, 255, 0, 0.5);
}

.row-morph-info {
    flex: 1;
    text-align: center;
}

.row-morph-name {
    margin-bottom: 8px;
    color: var(--color-primary);
    font-size: 14px;
    font-weight: bold;
    line-height: 1.2;
    text-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);
}

.row-morph-description {
    color: #ccc;
    font-size: 12px;
    line-height: 1.3;
    text-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);
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 16;
    line-clamp: 1;
    -webkit-box-orient: vertical;
}

.row-morph-selector {
    position: relative;
    width: 20px;
    height: 20px;
    background: rgba(0, 0, 0, 0.9);
    border: 2px solid #666;
    border-radius: 50%;
    transition: var(--transition-fast);
    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);
}

.row-morph-option.selected .row-morph-selector {
    background: var(--color-success);
    border-color: var(--color-success);
}

.row-morph-option.selected .row-morph-selector::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    color: var(--color-background);
    font-size: 12px;
    font-weight: bold;
    transform: translate(-50%, -50%);
}