/**
 * Mana Curve Calculator Styles
 * Using the color scheme:
 * - Call to actions: #000000 (black)
 * - Background: #ffffff (white)
 */

/* Reset and Base Styles */
.mana-curve-calculator-container * {
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.mana-curve-calculator-container {
    background-color: #ffffff;
    max-width: 1000px;
    margin: 2rem auto;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.mana-curve-calculator-container h2 {
    text-align: center;
    margin-top: 0;
    margin-bottom: 2rem;
    color: #000000;
    font-weight: 600;
}

.mana-curve-calculator-container h3 {
    color: #000000;
    font-weight: 500;
    margin-top: 0;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

/* Input Section */
.mcc-card-inputs {
    background-color: #f9f9f9;
    padding: 1.5rem;
    border-radius: 6px;
    margin-bottom: 2rem;
}

.mcc-input-group {
    margin-bottom: 1rem;
}

.mcc-input-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #333;
}

.mcc-input-group input {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #ffffff;
}

.mcc-input-group input:focus {
    outline: none;
    border-color: rgba(0, 0, 0, 0.5);
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.1);
}

.mcc-button {
    background-color: #000000;
    color: #ffffff;
    border: none;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.mcc-button:hover {
    background-color: #333333;
}

.mcc-button.mcc-secondary {
    background-color: transparent;
    color: #000000;
    border: 1px solid #000000;
}

.mcc-button.mcc-secondary:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

/* Card List Section */
.mcc-card-list {
    background-color: #f9f9f9;
    padding: 1.5rem;
    border-radius: 6px;
    margin-bottom: 2rem;
}

.mcc-empty-state {
    color: #666;
    text-align: center;
    font-style: italic;
}

#mcc-cards-list {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 300px;
    overflow-y: auto;
}

.mcc-card-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background-color: #ffffff;
    border-radius: 4px;
    margin-bottom: 0.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.mcc-card-info {
    flex: 1;
}

.mcc-card-name {
    font-weight: 500;
    color: #000000;
}

.mcc-card-details {
    font-size: 0.875rem;
    color: #666;
}

.mcc-card-remove {
    background: none;
    border: none;
    color: #ff5252;
    cursor: pointer;
    font-size: 1.25rem;
    padding: 0.25rem 0.5rem;
}

.mcc-card-list-controls {
    margin-top: 1rem;
    text-align: right;
}

/* Curve Display Section */
.mcc-curve-display {
    background-color: #f9f9f9;
    padding: 1.5rem;
    border-radius: 6px;
}

.mcc-curve-graph {
    position: relative;
    height: 300px;
    display: flex;
    flex-direction: column;
    margin: 2rem 0;
    padding-left: 40px;  /* Space for Y-axis */
    padding-bottom: 40px; /* Space for X-axis */
}

.mcc-y-axis {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 40px;
    width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mcc-y-axis span {
    transform: rotate(-90deg);
    font-size: 0.875rem;
    color: #666;
    white-space: nowrap;
}

.mcc-x-axis {
    position: absolute;
    left: 40px;
    right: 0;
    bottom: 0;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mcc-x-axis span {
    font-size: 0.875rem;
    color: #666;
}

.mcc-bars-container {
    display: flex;
    height: 100%;
    width: 100%;
    justify-content: space-around;
    align-items: flex-end;
    padding: 1rem 1rem 0;
}

.mcc-bar {
    flex: 1;
    margin: 0 0.5rem;
    background-color: #000000;
    position: relative;
    min-height: 1px;
    transition: height 0.3s ease;
}

.mcc-bar-label {
    position: absolute;
    bottom: -25px;
    left: 0;
    right: 0;
    text-align: center;
    font-size: 0.75rem;
    color: #666;
}

.mcc-bar-value {
    position: absolute;
    top: -25px;
    left: 0;
    right: 0;
    text-align: center;
    font-size: 0.75rem;
    color: #000000;
    font-weight: 500;
}

/* Stats Section */
.mcc-stats {
    display: flex;
    flex-wrap: wrap;
    margin-top: 2rem;
    background-color: #ffffff;
    padding: 1rem;
    border-radius: 4px;
}

.mcc-stat {
    flex: 1;
    min-width: 150px;
    text-align: center;
    padding: 0.5rem;
}

.mcc-stat-label {
    display: block;
    font-size: 0.875rem;
    color: #666;
    margin-bottom: 0.25rem;
}

.mcc-stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 600;
    color: #000000;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .mana-curve-calculator-container {
        padding: 1rem;
        margin: 1rem auto;
    }
    
    .mcc-curve-graph {
        height: 250px;
    }
    
    .mcc-stat {
        min-width: 100%;
        margin-bottom: 1rem;
    }
}

@media (max-width: 480px) {
    .mcc-bar {
        margin: 0 0.25rem;
    }
    
    .mcc-curve-graph {
        height: 200px;
    }
} 