/**
 * PSU Calculator Frontend Styles
 */

 .psu-calculator-container {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    max-width: 1200px;
    margin: 0 auto;
    background-color: #f7f7f7;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.psu-calculator-header {
    background-color: #1b1d21;
    color: #ffffff;
    padding: 2rem;
    text-align: center;
}

.psu-calculator-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 0 1rem;
    text-transform: uppercase;
}

.psu-calculator-header p {
    font-size: 1rem;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.5;
}

.psu-calculator-content {
    display: flex;
    flex-wrap: wrap;
}

.psu-calculator-form-container {
    flex: 2;
    padding: 2rem;
    background-color: #1f2228;
    color: #ffffff;
}

.psu-calculator-form-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.psu-calculator-form-header h3 {
    font-size: 1.2rem;
    margin: 0;
    font-weight: 400;
}

.psu-calculator-form-header h4 {
    font-size: 1.5rem;
    margin: 0.5rem 0;
    width: 100%;
}

.psu-reset-button {
    background-color: #36393f;
    color: #fff;
    border: 1px solid #434750;
    border-radius: 4px;
    padding: 0.5rem 1rem;
    cursor: pointer;
    font-size: 0.875rem;
}

.psu-reset-button:hover {
    background-color: #434750;
}

.psu-component-section {
    margin-bottom: 2rem;
    border-top: 1px solid #36393f;
    padding-top: 1rem;
}

.psu-component-section h4 {
    color: #3ac7f5;
    font-size: 1.2rem;
    margin: 0 0 1rem;
}

.psu-component-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
}

.psu-component-column {
    flex: 1;
    min-width: 150px;
}

.psu-component-column label {
    display: block;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
    color: #a8abb5;
}

.psu-select {
    width: 100%;
    padding: 0.75rem;
    border-radius: 4px;
    border: 1px solid #36393f;
    background-color: #2a2d34;
    color: #fff;
    font-size: 0.875rem;
    appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="6" viewBox="0 0 12 6"><path fill="%23a8abb5" d="M6 6L0 0h12z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 1rem center;
    cursor: pointer;
}

.psu-select:focus {
    outline: none;
    border-color: #3ac7f5;
}

.psu-calculator-result-container {
    flex: 1;
    padding: 2rem;
    background-color: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-width: 300px;
}

.psu-calculator-result {
    text-align: center;
}

.psu-calculator-result h3 {
    font-size: 1.2rem;
    margin: 0 0 1.5rem;
    color: #333;
}

.psu-wattage-display {
    font-size: 3rem;
    font-weight: 700;
    color: #3ac7f5;
}

.psu-actual-wattage-display {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: #666;
    font-style: italic;
}

.psu-actual-wattage-display small {
    font-size: inherit;
}

/* PSU Recommendations Styles */
.psu-recommendations {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid #3ac7f5;
}

.psu-recommendations h4 {
    margin: 0 0 1rem;
    font-size: 1.2rem;
    color: #333;
    font-weight: 600;
    text-align: center;
}

.psu-recommendation-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.psu-recommendation-item {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
    text-align: center;
}

.psu-recommendation-item:hover {
    border-color: #3ac7f5;
    box-shadow: 0 2px 8px rgba(161, 101, 247, 0.15);
    transform: translateY(-1px);
}

.psu-recommendation-item a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    display: block;
    transition: color 0.3s ease;
}

.psu-recommendation-item a:hover {
    color: #3ac7f5;
}

.psu-recommendation-item a::after {
    content: " ↗";
    font-size: 0.8rem;
    opacity: 0.6;
    margin-left: 0.25rem;
}

@media (max-width: 768px) {
    .psu-calculator-content {
        flex-direction: column;
    }
    
    .psu-calculator-result-container {
        padding: 2rem;
    }
}