/*
 * Main stylesheet for the Indiana Paycheck Calculator WordPress theme.
 *
 * This file defines the visual appearance of the calculator,
 * informational sections and overall page. It uses modern flexbox
 * layouts, semi‑transparent panels and a gradient backdrop for a
 * polished look on desktop and mobile devices.
 */

/* Base styles */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    color: #ffffff;
    background: linear-gradient(135deg, #2b076e 0%, #391079 50%, #441d87 100%);
    min-height: 100vh;
}

/* Hero section */
.ipc-hero {
    text-align: center;
    padding: 60px 20px 40px;
}
.ipc-hero h1 {
    margin: 0 0 10px;
    font-size: 2.6rem;
    font-weight: 700;
    color: #f5e6ff;
}
.ipc-hero p {
    font-size: 1.1rem;
    opacity: 0.85;
    margin: 0 auto;
    max-width: 700px;
}

/* Calculator layout */
.ipc-calculator {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px;
}

.ipc-calculator-form,
.ipc-calculator-result {
    flex: 1 1 360px;
    background-color: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 25px;
    min-height: 430px;
    /* Add subtle shadow for depth */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.ipc-calculator-form h2,
.ipc-calculator-result h2 {
    margin-top: 0;
    font-size: 1.6rem;
    color: #e9d6ff;
    margin-bottom: 15px;
}

/* Form fields */
.ipc-calculator-form label {
    display: block;
    margin-bottom: 18px;
    font-size: 0.95rem;
}

.ipc-calculator-form label input,
.ipc-calculator-form label select {
    width: 100%;
    padding: 12px;
    margin-top: 6px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 1rem;
    background-color: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    transition: border-color 0.3s ease, background-color 0.3s ease;
}

/* Form input hover and focus states */
.ipc-calculator-form input:hover,
.ipc-calculator-form select:hover {
    background-color: rgba(255, 255, 255, 0.18);
}

.ipc-calculator-form input:focus,
.ipc-calculator-form select:focus {
    outline: none;
    border-color: #b494f7;
    background-color: rgba(255, 255, 255, 0.2);
}

.ipc-calculator-form button {
    background-image: linear-gradient(135deg, #a674f7 0%, #7457dc 100%);
    color: #ffffff;
    border: none;
    padding: 15px;
    width: 100%;
    font-size: 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: background-image 0.3s ease, transform 0.1s ease;
    margin-top: 12px;
}

.ipc-calculator-form button:hover {
    background-image: linear-gradient(135deg, #b285f7 0%, #8565f1 100%);
}

.ipc-calculator-form button:active {
    transform: scale(0.98);
}

/* Results panel */
.ipc-calculator-result {
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.ipc-calculator-result #takeHomePay {
    font-size: 2.6rem;
    font-weight: bold;
    margin: 12px 0;
    color: #b399f9;
}

.ipc-calculator-result .pay-period {
    font-size: 0.9rem;
    opacity: 0.75;
    margin-bottom: 22px;
}

.ipc-calculator-result #breakdown {
    margin-top: 10px;
    text-align: left;
}

/* Breakdown rows */
.breakdown-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.breakdown-row .label {
    color: #e3cef7;
}
.breakdown-row .value {
    color: #f38181;
}
.breakdown-row .value.positive {
    color: #9af79a;
}

/* Info sections */
.ipc-info,
.ipc-how-to,
.ipc-tips,
.ipc-disclaimer {
    max-width: 1100px;
    margin: 50px auto;
    padding: 0 20px;
}
.ipc-info h2,
.ipc-how-to h2,
.ipc-tips h2 {
    font-size: 1.9rem;
    margin-bottom: 24px;
    text-align: center;
    color: #e9d6ff;
}
.ipc-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 22px;
}
.ipc-info-item {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 18px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;

    /* Hover animation to lift cards */
    position: relative;
}

/* Lift info cards on hover */
.ipc-info-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.3);
}
.ipc-info-item h3 {
    margin-top: 0;
    font-size: 1.25rem;
    margin-bottom: 12px;
    color: #f3e6ff;
}
.ipc-info-item p {
    font-size: 0.93rem;
    line-height: 1.5;
    margin: 0;
}

.ipc-how-to ol {
    list-style: decimal;
    padding-left: 25px;
    font-size: 1rem;
    line-height: 1.6;
}

.ipc-tips ul {
    list-style: disc;
    padding-left: 25px;
    font-size: 1rem;
    line-height: 1.6;
}

.ipc-disclaimer p {
    font-size: 0.85rem;
    text-align: center;
    opacity: 0.8;
}

/* Responsive tweaks */
@media (max-width: 768px) {
    .ipc-hero h1 {
        font-size: 2.1rem;
    }
    .ipc-calculator-form,
    .ipc-calculator-result {
        min-height: auto;
    }
    .ipc-calculator-result #takeHomePay {
        font-size: 2.3rem;
    }
}