/* PC Energy Cost Calculator Styles */

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 60px 0;
    text-align: center;
}

.hero-content h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.hero-content p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
    opacity: 0.9;
}

/* Calculator Section */
.calculator-section {
    padding: 60px 0;
    background: #f8f9fa;
}

.calculator-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    overflow: hidden;
}

/* Calculator Tabs */
.calculator-tabs {
    display: flex;
    background: #2c3e50;
    border-bottom: 1px solid #34495e;
}

.tab-btn {
    flex: 1;
    background: none;
    border: none;
    color: white;
    padding: 20px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border-right: 1px solid #34495e;
}

.tab-btn:last-child {
    border-right: none;
}

.tab-btn:hover {
    background: #34495e;
}

.tab-btn.active {
    background: #3498db;
    color: white;
}

/* Tab Content */
.tab-content {
    display: none;
    padding: 40px;
}

.tab-content.active {
    display: block;
}

.calculator-form h2 {
    color: #2c3e50;
    font-size: 2rem;
    margin-bottom: 10px;
    text-align: center;
}

.calculator-form p {
    color: #7f8c8d;
    text-align: center;
    margin-bottom: 30px;
    font-size: 1.1rem;
}

/* Form Groups */
.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3e50;
    font-size: 1rem;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e1e8ed;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    background: white;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.form-group small {
    display: block;
    margin-top: 5px;
    color: #7f8c8d;
    font-size: 0.9rem;
}

/* Component and Usage Sections */
.component-section,
.usage-section {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 25px;
}

.component-section h3,
.usage-section h3 {
    color: #2c3e50;
    font-size: 1.3rem;
    margin-bottom: 20px;
    border-bottom: 2px solid #3498db;
    padding-bottom: 10px;
}

/* Comparison Scenarios */
.comparison-scenarios {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 25px;
}

.scenario {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 8px;
    border: 2px solid #e1e8ed;
}

.scenario h3 {
    color: #2c3e50;
    font-size: 1.2rem;
    margin-bottom: 20px;
    text-align: center;
}

.scenario-a {
    border-color: #3498db;
}

.scenario-b {
    border-color: #e74c3c;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 15px 30px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.btn-primary {
    background: #3498db;
    color: white;
}

.btn-primary:hover {
    background: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.4);
}

.btn i {
    margin-right: 8px;
}

/* Results Section */
.results-section {
    margin-top: 40px;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #27ae60;
}

.results-section h3 {
    color: #2c3e50;
    font-size: 1.5rem;
    margin-bottom: 25px;
    text-align: center;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.result-item {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.result-label {
    font-weight: 600;
    color: #2c3e50;
}

.result-value {
    font-size: 1.2rem;
    font-weight: 700;
    color: #27ae60;
}

/* Component Breakdown */
.component-breakdown {
    margin-top: 30px;
}

.component-breakdown h4 {
    color: #2c3e50;
    font-size: 1.2rem;
    margin-bottom: 20px;
    text-align: center;
}

.breakdown-chart {
    background: white;
    padding: 20px;
    border-radius: 8px;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #7f8c8d;
    font-style: italic;
}

/* Comparison Table */
.comparison-table {
    margin-bottom: 30px;
    overflow-x: auto;
}

.comparison-table table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.comparison-table th,
.comparison-table td {
    padding: 15px;
    text-align: center;
    border-bottom: 1px solid #e1e8ed;
}

.comparison-table th {
    background: #2c3e50;
    color: white;
    font-weight: 600;
}

.comparison-table tr:nth-child(even) {
    background: #f8f9fa;
}

.comparison-table tr:hover {
    background: #e3f2fd;
}

/* Savings Summary */
.savings-summary {
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.savings-summary h4 {
    color: #2c3e50;
    font-size: 1.2rem;
    margin-bottom: 20px;
    text-align: center;
}

.savings-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #e1e8ed;
}

.savings-item:last-child {
    border-bottom: none;
}

.savings-label {
    font-weight: 600;
    color: #2c3e50;
}

.savings-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: #27ae60;
}

/* Tips Section */
.tips-section {
    padding: 60px 0;
    background: white;
}

.tips-section h2 {
    text-align: center;
    color: #2c3e50;
    font-size: 2.5rem;
    margin-bottom: 50px;
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.tip-item {
    text-align: center;
    padding: 30px 20px;
    background: #f8f9fa;
    border-radius: 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tip-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.tip-item i {
    font-size: 3rem;
    color: #3498db;
    margin-bottom: 20px;
}

.tip-item h3 {
    color: #2c3e50;
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.tip-item p {
    color: #7f8c8d;
    line-height: 1.6;
}

/* Related Tools */
.related-tools {
    padding: 60px 0;
    background: #f8f9fa;
}

.related-tools h2 {
    text-align: center;
    color: #2c3e50;
    font-size: 2.5rem;
    margin-bottom: 50px;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.tool-card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 2px solid transparent;
}

.tool-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    border-color: #3498db;
}

.tool-card i {
    font-size: 3rem;
    color: #3498db;
    margin-bottom: 20px;
}

.tool-card h3 {
    color: #2c3e50;
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.tool-card p {
    color: #7f8c8d;
    line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .calculator-tabs {
        flex-direction: column;
    }
    
    .tab-btn {
        border-right: none;
        border-bottom: 1px solid #34495e;
    }
    
    .tab-content {
        padding: 20px;
    }
    
    .comparison-scenarios {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .results-grid {
        grid-template-columns: 1fr;
    }
    
    .tips-grid,
    .tools-grid {
        grid-template-columns: 1fr;
    }
    
    .comparison-table {
        font-size: 0.9rem;
    }
    
    .comparison-table th,
    .comparison-table td {
        padding: 10px 5px;
    }
}

@media (max-width: 480px) {
    .hero-section {
        padding: 40px 0;
    }
    
    .calculator-section {
        padding: 40px 0;
    }
    
    .tab-content {
        padding: 15px;
    }
    
    .form-group input,
    .form-group select {
        padding: 10px 12px;
        font-size: 0.9rem;
    }
    
    .btn {
        padding: 12px 20px;
        font-size: 0.9rem;
    }
}
