/*
Theme Name: Calculator Theme
Theme URI: https://yourwebsite.com
Author: Developer
Author URI: https://yourwebsite.com
Description: A professional calculator theme with ACF Pro integration
Version: 1.0.0
License: GPL v2 or later
Text Domain: calculator-theme
*/

/* ===== BASE STYLES ===== */
:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #0dcaf0;
    --light-color: #f8f9fa;
    --dark-color: #212529;
    --border-radius: 8px;
    --box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f7fa;
    color: var(--dark-color);
    line-height: 1.6;
}
.hero-text {
    color: #fff;
}
a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

a:hover {
    color: #0a58ca;
}

/* ===== HEADER ===== */
.site-header {
    background: #fff;
    box-shadow: var(--box-shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.site-logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
}

.site-logo span {
    color: var(--success-color);
}

/* ===== NAVIGATION ===== */
.main-navigation ul {
    display: flex;
    list-style: none;
    gap: 5px;
}

.main-navigation a {
    display: block;
    padding: 10px 15px;
    color: var(--dark-color);
    font-weight: 500;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.main-navigation a:hover,
.main-navigation .current-menu-item a {
    background: var(--primary-color);
    color: #fff;
}

/* ===== MEGA MENU ===== */
.mega-menu {
    position: relative;
}

.mega-menu .mega-menu-content {
    position: absolute;
    top: 100%;
    left: 0;
    width: 600px;
    background: #fff;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    border-radius: var(--border-radius);
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
}

.mega-menu:hover .mega-menu-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mega-menu-content .menu-column h4 {
    font-size: 14px;
    text-transform: uppercase;
    color: var(--primary-color);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
}

.mega-menu-content .menu-column ul {
    list-style: none;
}

.mega-menu-content .menu-column li {
    margin-bottom: 8px;
}

.mega-menu-content .menu-column a {
    color: var(--secondary-color);
    font-size: 14px;
    transition: var(--transition);
}

.mega-menu-content .menu-column a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

/* ===== CALCULATOR CARD ===== */
.calculator-card {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: var(--box-shadow);
    margin-bottom: 30px;
    transition: var(--transition);
}

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

.calculator-card h2 {
    font-size: 24px;
    margin-bottom: 20px;
    color: var(--dark-color);
}

/* ===== FORM ELEMENTS ===== */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--dark-color);
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e9ecef;
    border-radius: var(--border-radius);
    font-size: 16px;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(13,110,253,0.1);
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border: none;
    border-radius: var(--border-radius);
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary {
    background: var(--primary-color);
    color: #fff;
}

.btn-primary:hover {
    background: #0a58ca;
    color: #fff;
}

.btn-success {
    background: var(--success-color);
    color: #fff;
}

.btn-success:hover {
    background: #146c43;
    color: #fff;
}

/* ===== TABS ===== */
.nav-tabs {
    display: flex;
    border-bottom: 2px solid #e9ecef;
    margin-bottom: 25px;
}

.nav-tab {
    padding: 12px 25px;
    cursor: pointer;
    border: none;
    background: none;
    font-size: 16px;
    font-weight: 500;
    color: var(--secondary-color);
    position: relative;
    transition: var(--transition);
}

.nav-tab:hover {
    color: var(--primary-color);
}

.nav-tab.active {
    color: var(--primary-color);
}

.nav-tab.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary-color);
}

/* ===== RESULT BOX ===== */
.result-box {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 25px;
    border-radius: 12px;
    margin-top: 25px;
    display: none;
}

.result-box.show {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.result-box h3 {
    font-size: 18px;
    margin-bottom: 15px;
}

.result-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,0.2);
}

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

.result-value {
    font-weight: 700;
    font-size: 18px;
}

/* ===== FOOTER ===== */
.site-footer {
    background: var(--dark-color);
    color: #fff;
    padding: 50px 0 20px;
    margin-top: 50px;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.footer-widget h4 {
    font-size: 18px;
    margin-bottom: 20px;
    color: #fff;
}

.footer-widget ul {
    list-style: none;
}

.footer-widget li {
    margin-bottom: 10px;
}

.footer-widget a {
    color: #adb5bd;
    transition: var(--transition);
}

.footer-widget a:hover {
    color: #fff;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    margin-top: 30px;
    border-top: 1px solid #495057;
    color: #6c757d;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
    .footer-container {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .mega-menu .mega-menu-content {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        height: auto;
        padding: 15px 20px;
    }
    
    .main-navigation ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
    }
    
    .calculator-card {
        padding: 20px;
    }
}