/*
Theme Name: Finance Calculator
Theme URI: https://example.com/finance-calculator
Author: Manus
Author URI: https://example.com
Description: A lightweight, SEO-optimized WordPress theme for finance calculators with no header or footer.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: finance-calculator
Tags: finance, calculator, lightweight, seo-optimized
*/

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
    padding: 20px;
}

a {
    color: #0066cc;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #004080;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #222;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.75rem;
}

h4 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 20px;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Search Bar */
.search-bar {
    margin-bottom: 30px;
}

.search-bar input[type="text"] {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

/* Grid Layout */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

/* Calculator Card */
.calculator-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.calculator-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.calculator-card h3 {
    font-size: 1.25rem;
    margin-bottom: 10px;
}

.calculator-card p {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 15px;
}

.calculator-card .btn {
    display: inline-block;
    padding: 8px 15px;
    background-color: #0066cc;
    color: #fff;
    border-radius: 4px;
    font-size: 0.9rem;
    transition: background-color 0.3s ease;
}

.calculator-card .btn:hover {
    background-color: #004080;
}

/* Category Section */
.category-section {
    margin-bottom: 50px;
}

.category-section h2 {
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 30px;
}

/* Calculator Form */
.calculator-form {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 30px;
    margin-bottom: 40px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.form-group input[type="text"],
.form-group input[type="number"],
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.form-group .hint {
    font-size: 0.85rem;
    color: #666;
    margin-top: 5px;
}

.calculator-form button {
    padding: 12px 25px;
    background-color: #0066cc;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.calculator-form button:hover {
    background-color: #004080;
}

/* Results Section */
.results-section {
    background-color: #f0f7ff;
    border-radius: 8px;
    padding: 20px;
    margin-top: 30px;
    display: none;
}

.results-section.active {
    display: block;
}

.result-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #ddd;
}

.result-item:last-child {
    border-bottom: none;
}

.result-label {
    font-weight: 600;
}

/* Content Sections */
.content-section {
    margin-bottom: 50px;
}

.content-section h2 {
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

/* FAQ Section */
.faq-item {
    margin-bottom: 20px;
}

.faq-question {
    font-weight: 600;
    margin-bottom: 10px;
}

.faq-answer {
    color: #444;
}

/* Related Calculators */
.related-calculators {
    margin-top: 50px;
}

.related-calculators h3 {
    margin-bottom: 20px;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 20px;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    .calculator-form {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .grid {
        grid-template-columns: 1fr;
    }
    
    body {
        padding: 10px;
    }
    
    h1 {
        font-size: 1.75rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
}

