/**
 * WOW Cataclysm Talent Calculator Styles
 * These styles are isolated to prevent conflicts with the WordPress theme
 */

/* Container */
.wctc-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 6px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    padding: 20px;
    box-sizing: border-box;
}

/* Header */
.wctc-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.wctc-header h2 {
    margin: 0;
    font-size: 24px;
    color: #333;
}

.wctc-points {
    font-size: 16px;
    font-weight: bold;
    color: #333;
}

/* Class Selection */
.wctc-class-selection {
    margin-bottom: 20px;
}

.wctc-class-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
}

.wctc-class-btn {
    background: #f0f0f0;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 8px 15px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.wctc-class-btn:hover {
    background: #e0e0e0;
}

.wctc-class-btn.active {
    background: #333;
    color: #fff;
    border-color: #333;
}

/* Talent Trees */
.wctc-specs {
    display: flex;
    margin-bottom: 15px;
    border-bottom: 1px solid #e0e0e0;
}

.wctc-spec-tab {
    padding: 10px 20px;
    cursor: pointer;
    border-bottom: 3px solid transparent;
}

.wctc-spec-tab:hover {
    background: #f5f5f5;
}

.wctc-spec-tab.active {
    border-bottom-color: #000000;
    font-weight: bold;
}

.wctc-talent-trees {
    display: flex;
    flex-wrap: wrap;
}

.wctc-talent-tree {
    display: none;
    flex: 1;
    min-width: 300px;
    padding: 15px;
}

.wctc-talent-tree.active {
    display: block;
}

/* Talent Rows */
.wctc-talent-row {
    display: flex;
    justify-content: space-around;
    margin-bottom: 30px;
}

/* Talent Icons */
.wctc-talent {
    position: relative;
    width: 50px;
    height: 50px;
    background: #f0f0f0;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    border: 2px solid transparent;
}

.wctc-talent:hover {
    border-color: #999;
}

.wctc-talent.active {
    border-color: #000;
    background: #e0e0e0;
}

.wctc-talent.locked {
    opacity: 0.5;
    cursor: not-allowed;
}

.wctc-talent-rank {
    position: absolute;
    bottom: -5px;
    right: -5px;
    background: #000;
    color: #fff;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 12px;
    font-weight: bold;
}

/* Talent Tooltip */
.wctc-tooltip {
    position: absolute;
    z-index: 100;
    background: #333;
    color: #fff;
    border-radius: 4px;
    padding: 10px;
    width: 200px;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    display: none;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.wctc-talent:hover .wctc-tooltip {
    display: block;
}

.wctc-tooltip-name {
    font-weight: bold;
    margin-bottom: 5px;
    font-size: 14px;
}

.wctc-tooltip-desc {
    font-size: 12px;
    margin-bottom: 5px;
}

.wctc-tooltip-rank {
    font-size: 12px;
    color: #ccc;
}

/* Actions */
.wctc-actions {
    margin-top: 20px;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.wctc-btn {
    background: #000000;
    color: #ffffff;
    border: none;
    padding: 10px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.2s ease;
}

.wctc-btn:hover {
    background: #333;
}

.wctc-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* Talent Links */
.wctc-talent-links {
    position: absolute;
    z-index: 1;
    pointer-events: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .wctc-talent-trees {
        flex-direction: column;
    }
    
    .wctc-talent-tree {
        min-width: 100%;
    }
    
    .wctc-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .wctc-points {
        margin-top: 10px;
    }
    
    .wctc-class-selector {
        overflow-x: auto;
        padding-bottom: 10px;
    }
    
    .wctc-specs {
        overflow-x: auto;
    }
}

@media (max-width: 480px) {
    .wctc-talent-row {
        flex-wrap: wrap;
        gap: 15px;
        justify-content: flex-start;
    }
    
    .wctc-talent {
        width: 40px;
        height: 40px;
    }
    
    .wctc-actions {
        flex-wrap: wrap;
    }
} 