/* Calculator Specific Styles */

.calculator-header {
    background: linear-gradient(135deg, rgba(30, 30, 30, 0.95), rgba(20, 20, 20, 0.95));
    border: 2px solid rgba(255, 215, 0, 0.3);
    border-radius: 15px;
    padding: 2rem;
    margin: 2rem 0;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.calculator-header h2 {
    color: #ffd700;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.calculator-header .subtitle {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.2rem;
    margin: 0;
}

.calculator-container {
    max-width: 1400px;
    margin: 2rem auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.calc-section {
    background: linear-gradient(135deg, rgba(30, 30, 30, 0.95), rgba(20, 20, 20, 0.95));
    border: 2px solid rgba(255, 215, 0, 0.3);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.calc-section h2 {
    color: #ffd700;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    text-align: center;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.stat-group {
    margin-bottom: 1.2rem;
    display: flex;
    flex-direction: column;
}

.stat-group label {
    color: #ffd700;
    font-size: 1rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.stat-group input,
.stat-group select {
    padding: 0.8rem;
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(255, 215, 0, 0.3);
    border-radius: 8px;
    color: #fff;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.stat-group input:focus,
.stat-group select:focus {
    outline: none;
    border-color: #ffd700;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

.stat-group input:hover,
.stat-group select:hover {
    border-color: rgba(255, 215, 0, 0.5);
}

.calculate-btn {
    width: 100%;
    padding: 1.5rem;
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #1a1a1a;
    font-size: 1.5rem;
    font-weight: bold;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.calculate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.5);
    background: linear-gradient(135deg, #ffed4e, #ffd700);
}

.calculate-btn:active {
    transform: translateY(0);
}

.skill-section {
    grid-column: 1 / -1;
}

.results-section {
    grid-column: 1 / -1;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.damage-result-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.damage-card {
    background: rgba(0, 0, 0, 0.4);
    border: 2px solid rgba(255, 215, 0, 0.2);
    border-radius: 10px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.damage-card:hover {
    border-color: #ffd700;
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(255, 215, 0, 0.2);
}

.damage-card-title {
    color: #ffd700;
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.damage-card-value {
    color: #fff;
    font-size: 2rem;
    font-weight: bold;
    margin: 0.5rem 0;
}

.damage-card-value.min {
    color: #ff6b6b;
}

.damage-card-value.max {
    color: #51cf66;
}

.damage-card-value.avg {
    color: #ffd700;
}

.damage-card-description {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.hit-chance-bar {
    width: 100%;
    height: 30px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 15px;
    overflow: hidden;
    margin-top: 1rem;
    position: relative;
}

.hit-chance-fill {
    height: 100%;
    background: linear-gradient(90deg, #51cf66, #40c057);
    transition: width 0.5s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: bold;
}

.crit-indicator {
    background: linear-gradient(135deg, #ff6b6b, #fa5252);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    color: #fff;
    font-weight: bold;
    margin-top: 1rem;
    display: inline-block;
}

.formula-explanation {
    background: rgba(0, 0, 0, 0.3);
    border-left: 4px solid #ffd700;
    padding: 1rem;
    margin-top: 1.5rem;
    border-radius: 5px;
}

.formula-explanation h3 {
    color: #ffd700;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.formula-explanation p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0.3rem 0;
}

.formula-explanation code {
    background: rgba(255, 215, 0, 0.1);
    padding: 0.2rem 0.5rem;
    border-radius: 3px;
    color: #ffd700;
    font-family: 'Courier New', monospace;
}

/* Responsive Design */
@media (max-width: 968px) {
    .calculator-container {
        grid-template-columns: 1fr;
    }
    
    .calc-section {
        grid-column: 1;
    }
}

@media (max-width: 768px) {
    .damage-result-grid {
        grid-template-columns: 1fr;
    }
    
    .calc-section {
        padding: 1.5rem;
    }
    
    .calc-section h2 {
        font-size: 1.5rem;
    }
}

