/* Evolution Requirements Styles */

.evolution-requirements {
    padding: 20px;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 12px;
    margin: 20px 0;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.evolution-requirements h3 {
    color: #fff;
    font-size: 1.8em;
    margin-bottom: 25px;
    text-align: center;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    background: linear-gradient(45deg, #4facfe, #00f2fe);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Evolution Path Styles */
.evolution-path {
    margin-bottom: 30px;
}

.evolution-step {
    margin-bottom: 25px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.evolution-step:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.evolution-tier h4 {
    color: #4facfe;
    font-size: 1.3em;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.tier-names {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    font-size: 1.1em;
}

.current-name {
    color: #fff;
    padding: 8px 15px;
    background: rgba(79, 172, 254, 0.2);
    border-radius: 8px;
    border: 1px solid #4facfe;
}

.arrow {
    color: #00f2fe;
    font-size: 1.5em;
    font-weight: bold;
    text-shadow: 0 0 10px #00f2fe;
}

.next-name {
    color: #fff;
    padding: 8px 15px;
    background: rgba(0, 242, 254, 0.2);
    border-radius: 8px;
    border: 1px solid #00f2fe;
}

/* Requirements Styles */
.requirement-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.req-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 15px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.req-item:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #4facfe;
}

.req-item i {
    font-size: 1.2em;
    width: 24px;
    text-align: center;
}

.level-req {
    border-left: 4px solid #4caf50;
}

.level-req i {
    color: #4caf50;
}

.cost-req {
    border-left: 4px solid #ffc107;
}

.cost-req i {
    color: #ffc107;
}

.gems-req {
    border-left: 4px solid #e91e63;
}

.gems-req i {
    color: #e91e63;
}

.materials-req {
    border-left: 4px solid #9c27b0;
    flex-direction: column;
    align-items: flex-start;
}

.materials-req i {
    color: #9c27b0;
}

.materials-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
    width: 100%;
}

.material-item {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
}

.material-item:hover {
    background: rgba(0, 0, 0, 0.5);
    transform: translateY(-1px);
}

.material-name {
    font-weight: bold;
    font-size: 0.9em;
}

.material-quantity {
    color: #ccc;
    font-size: 0.8em;
}

/* Stat Boost Styles */
.stat-boost {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background: linear-gradient(90deg, rgba(76, 175, 80, 0.1), rgba(139, 195, 74, 0.1));
    border-radius: 8px;
    border: 1px solid rgba(76, 175, 80, 0.3);
}

.multiplier {
    color: #4caf50;
    font-weight: bold;
}

.boost {
    color: #8bc34a;
    font-size: 0.9em;
}

/* Cost Summary Styles */
.cost-summary {
    background: rgba(255, 255, 255, 0.03);
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.cost-summary h4 {
    color: #ffc107;
    font-size: 1.4em;
    margin-bottom: 20px;
    text-align: center;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.total-costs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
}

.cost-item {
    text-align: center;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.cost-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.cost-item i {
    font-size: 1.5em;
    margin-bottom: 8px;
    display: block;
}

.cost-value {
    display: block;
    font-size: 1.3em;
    font-weight: bold;
    color: #fff;
    margin-bottom: 5px;
}

.cost-label {
    color: #ccc;
    font-size: 0.9em;
}

.tier-breakdown h5 {
    color: #4facfe;
    margin-bottom: 15px;
    font-size: 1.1em;
}

.tier-cost {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    margin-bottom: 8px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 6px;
    border-left: 3px solid #4facfe;
}

.tier-name {
    color: #fff;
    font-weight: bold;
}

.tier-costs {
    display: flex;
    gap: 15px;
    font-size: 0.9em;
}

.tier-costs .coins {
    color: #ffc107;
}

.tier-costs .gems {
    color: #e91e63;
}

.tier-costs .materials {
    color: #9c27b0;
}

/* Materials Guide Styles */
.materials-guide {
    background: rgba(255, 255, 255, 0.03);
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.materials-guide h4 {
    color: #9c27b0;
    font-size: 1.4em;
    margin-bottom: 20px;
    text-align: center;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.materials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.material-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.material-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.material-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.material-name {
    font-size: 1.2em;
    font-weight: bold;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.material-rarity {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8em;
    font-weight: bold;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.material-description {
    color: #ccc;
    font-size: 0.95em;
    line-height: 1.4;
    margin-bottom: 15px;
}

.material-stats {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.drop-rate, .sources {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 0.9em;
}

.drop-rate i, .sources i {
    color: #4facfe;
    margin-top: 2px;
}

.sources ul {
    margin: 0;
    padding-left: 15px;
    color: #ccc;
}

.sources li {
    margin-bottom: 3px;
}

/* Farming Guide Styles */
.farming-guide {
    background: rgba(255, 255, 255, 0.03);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.farming-guide h4 {
    color: #4caf50;
    font-size: 1.4em;
    margin-bottom: 20px;
    text-align: center;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.farming-sections {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.farming-section h5 {
    color: #4facfe;
    margin-bottom: 15px;
    font-size: 1.1em;
    border-bottom: 2px solid rgba(79, 172, 254, 0.3);
    padding-bottom: 5px;
}

.farming-method {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.farming-method:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: #4caf50;
}

.method-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.method-name {
    color: #fff;
    font-weight: bold;
    font-size: 1em;
}

.efficiency {
    padding: 3px 10px;
    border-radius: 15px;
    font-size: 0.8em;
    font-weight: bold;
    text-transform: uppercase;
}

.efficiency.high {
    background: rgba(76, 175, 80, 0.2);
    color: #4caf50;
    border: 1px solid #4caf50;
}

.efficiency.ultra {
    background: rgba(255, 193, 7, 0.2);
    color: #ffc107;
    border: 1px solid #ffc107;
}

.efficiency.medium {
    background: rgba(255, 152, 0, 0.2);
    color: #ff9800;
    border: 1px solid #ff9800;
}

.efficiency.low {
    background: rgba(244, 67, 54, 0.2);
    color: #f44336;
    border: 1px solid #f44336;
}

.method-details {
    display: flex;
    flex-direction: column;
    gap: 5px;
    font-size: 0.9em;
}

.stamina-cost {
    color: #e91e63;
    font-weight: bold;
}

.materials {
    color: #ccc;
}

.farming-tips {
    background: rgba(76, 175, 80, 0.1);
    padding: 20px;
    border-radius: 8px;
    border: 1px solid rgba(76, 175, 80, 0.3);
}

.farming-tips h5 {
    color: #4caf50;
    margin-bottom: 15px;
    font-size: 1.1em;
}

.farming-tips ul {
    color: #ccc;
    line-height: 1.6;
}

.farming-tips li {
    margin-bottom: 8px;
}

.farming-tips strong {
    color: #4caf50;
}

/* Material Tooltip Styles */
.material-tooltip {
    background: rgba(0, 0, 0, 0.95);
    color: #fff;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    max-width: 300px;
    z-index: 1000;
}

.tooltip-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.tooltip-name {
    font-weight: bold;
    font-size: 1.1em;
}

.tooltip-rarity {
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.7em;
    font-weight: bold;
    color: #fff;
}

.tooltip-description {
    color: #ccc;
    font-size: 0.9em;
    line-height: 1.4;
    margin-bottom: 10px;
}

.tooltip-stats {
    font-size: 0.85em;
}

.tooltip-drop {
    color: #4facfe;
    margin-bottom: 5px;
}

.tooltip-sources {
    color: #9c27b0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .evolution-requirements {
        padding: 15px;
        margin: 10px 0;
    }
    
    .requirement-details {
        grid-template-columns: 1fr;
    }
    
    .total-costs {
        grid-template-columns: 1fr;
    }
    
    .materials-grid {
        grid-template-columns: 1fr;
    }
    
    .farming-sections {
        grid-template-columns: 1fr;
    }
    
    .tier-cost {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .tier-costs {
        flex-wrap: wrap;
    }
}

/* Animation for expanded material cards */
.material-card.expanded {
    background: rgba(255, 255, 255, 0.1);
    border-color: #9c27b0;
}

.material-card.expanded .material-info {
    animation: expandInfo 0.3s ease-in-out;
}

@keyframes expandInfo {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Enhanced Interactive Elements */
.loading-display, .error-display, .no-evolution-display, .data-updating {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    text-align: center;
    min-height: 200px;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-top: 4px solid #4facfe;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-message, .error-message, .no-evo-message, .updating-message {
    color: #fff;
    font-size: 1.2em;
    font-weight: 600;
    margin-bottom: 10px;
}

.error-icon, .no-evo-icon, .updating-icon {
    font-size: 3em;
    margin-bottom: 20px;
    opacity: 0.7;
}

.retry-button {
    background: linear-gradient(45deg, #4facfe, #00f2fe);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
}

.retry-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(79, 172, 254, 0.4);
}

/* Enhanced Cost Summary */
.cost-summary-container {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid rgba(162, 155, 254, 0.3);
}

.cost-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.difficulty-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8em;
    font-weight: 600;
    text-transform: uppercase;
}

.difficulty-badge.ultra { background: linear-gradient(45deg, #f44336, #e91e63); }
.difficulty-badge.high { background: linear-gradient(45deg, #ff9800, #f57c00); }
.difficulty-badge.medium { background: linear-gradient(45deg, #ffeb3b, #fbc02d); color: #333; }
.difficulty-badge.low { background: linear-gradient(45deg, #4caf50, #388e3c); }

.cost-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.cost-card {
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.cost-card:hover {
    transform: translateY(-5px);
}

.cost-icon {
    font-size: 2em;
    margin-bottom: 10px;
}

.cost-value {
    font-size: 1.8em;
    font-weight: bold;
    margin-bottom: 5px;
}

.cost-label {
    font-size: 0.9em;
    opacity: 0.9;
}

/* Enhanced Materials Display */
.materials-container {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid rgba(162, 155, 254, 0.3);
}

.materials-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.rarity-legend {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rarity-indicator {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.7em;
    font-weight: 600;
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.materials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 15px;
}

.material-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 15px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.material-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
}

.material-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.material-name {
    font-weight: 600;
    font-size: 1.1em;
}

.material-quantity {
    background: rgba(255, 255, 255, 0.1);
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.9em;
    font-weight: 600;
}

.material-rarity {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.7em;
    font-weight: 600;
    color: white;
    margin-bottom: 8px;
}

/* Enhanced Farming Guide */
.farming-guide-container {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}

.farming-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.efficiency-legend {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.efficiency-indicator {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.7em;
    font-weight: 600;
    color: white;
}

.efficiency-indicator.ultra { background: linear-gradient(45deg, #9c27b0, #e91e63); }
.efficiency-indicator.high { background: linear-gradient(45deg, #2196f3, #00bcd4); }
.efficiency-indicator.medium { background: linear-gradient(45deg, #ff9800, #f57c00); }
.efficiency-indicator.low { background: linear-gradient(45deg, #607d8b, #455a64); }

.farming-methods {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}

.farming-method {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
}

.farming-method:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
}

.method-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.method-name {
    color: #4facfe;
    font-size: 1.2em;
    font-weight: 600;
}

.efficiency-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8em;
    font-weight: 600;
    color: white;
}

.method-info {
    display: flex;
    gap: 20px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.method-info span {
    color: #ccc;
    font-size: 0.9em;
}

.method-materials, .method-recommendation {
    color: #fff;
    margin-bottom: 8px;
    line-height: 1.5;
}

.farming-tips {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 15px;
}

.farming-tips h4 {
    color: #4facfe;
    margin-bottom: 10px;
}

.farming-tips ul {
    list-style: none;
    padding: 0;
}

.farming-tips li {
    color: #ccc;
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
}

.farming-tips li::before {
    content: "💡";
    position: absolute;
    left: 0;
    top: 0;
}

/* Enhanced Mobile Responsive */
@media (max-width: 768px) {
    .cost-cards {
        grid-template-columns: 1fr;
    }

    .materials-header, .farming-header {
        flex-direction: column;
        align-items: stretch;
    }

    .method-header {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .method-info {
        flex-direction: column;
        gap: 8px;
    }

    .rarity-legend, .efficiency-legend {
        justify-content: center;
    }
}
