/*
Theme Name: CalcPortalPro
Theme URI: https://calcportalpro.com
Author: CalcPortalPro Team
Author URI: https://calcportalpro.com
Description: A fully dynamic calculator portal theme with custom post types, taxonomies, and extensive admin customization options. Manage calculators, categories, homepage sections, and featured calculators easily from the WordPress dashboard.
Version: 1.0.0
License: GPL v2 or later
Text Domain: calcportalpro
*/

:root {
    --primary-color: #2c3e66;
    --primary-dark: #1e2a47;
    --secondary-color: #27ae60;
    --accent-color: #f39c12;
    --light-bg: #f8f9fa;
    --dark-text: #2c3e50;
    --light-text: #ffffff;
    --border-radius: 12px;
    --box-shadow: 0 10px 25px -5px rgba(0,0,0,0.1);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    color: var(--dark-text);
    line-height: 1.6;
    background: #ffffff;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

h2 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.section-title {
    text-align: center;
    margin-bottom: 2rem;
}

.btn {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 12px 28px;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--box-shadow);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
}

.site-header {
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.site-title a {
    font-size: 1.8rem;
    font-weight: 800;
    text-decoration: none;
    color: var(--primary-color);
}

.site-tagline {
    font-size: 0.9rem;
    color: #666;
}

.hero {
    text-align: center;
    padding: 60px 0 40px;
    background: linear-gradient(135deg, #f5f7fa 0%, #e9edf2 100%);
    border-radius: 0 0 40px 40px;
    margin-bottom: 3rem;
}

.hero p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 2rem;
    color: #4a5568;
}

.search-box {
    max-width: 500px;
    margin: 0 auto;
}

.search-box input {
    width: 100%;
    padding: 14px 20px;
    border: 2px solid #e2e8f0;
    border-radius: 50px;
    font-size: 1rem;
    transition: all 0.3s;
}

.search-box input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(44,62,102,0.1);
}

.features-grid {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin: 2rem 0;
}

.feature-card {
    text-align: center;
    padding: 1rem;
}

.feature-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.category-card {
    background: var(--light-bg);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    transition: all 0.3s;
    text-decoration: none;
    color: inherit;
    display: block;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow);
}

.category-card h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.category-card p {
    color: #4a5568;
    margin-bottom: 1rem;
}

.category-link {
    font-weight: 600;
    color: var(--secondary-color);
}

.popular-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.calculator-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    transition: all 0.3s;
    text-decoration: none;
    color: inherit;
}

.calculator-card:hover {
    box-shadow: var(--box-shadow);
    border-color: transparent;
}

.calculator-card h3 {
    color: var(--primary-color);
    margin-bottom: 0.75rem;
}

.calculator-device {
    background: #2d3436;
    border-radius: 30px;
    padding: 20px;
    max-width: 400px;
    margin: 0 auto;
    box-shadow: 0 20px 35px -10px rgba(0,0,0,0.3);
}

.calc-display {
    background: #1e272e;
    color: #0be881;
    font-size: 2.5rem;
    font-family: 'Courier New', monospace;
    text-align: right;
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 20px;
    min-height: 90px;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.calc-buttons {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
}

.calc-btn {
    background: #485460;
    color: white;
    border: none;
    padding: 18px 0;
    font-size: 1.2rem;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 600;
}

.calc-btn:hover {
    background: #747d8c;
    transform: scale(0.96);
}

.calc-btn.operator {
    background: #f39c12;
    color: #2c3e50;
}

.calc-btn.equal {
    background: #27ae60;
    grid-column: span 2;
}

.calc-btn.clear {
    background: #e74c3c;
}

.site-footer {
    background: var(--primary-color);
    color: white;
    padding: 3rem 0 1.5rem;
    margin-top: 4rem;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-links a {
    color: #cbd5e0;
    text-decoration: none;
}

.footer-links a:hover {
    color: white;
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #4a5568;
}

.calculator-form {
    background: var(--light-bg);
    padding: 2rem;
    border-radius: var(--border-radius);
    margin: 2rem 0;
}

.input-group {
    margin-bottom: 1.5rem;
}

.input-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.input-group input, .input-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #cbd5e0;
    border-radius: 8px;
    font-size: 1rem;
}

.calc-result {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    margin-top: 1.5rem;
    font-size: 1.2rem;
    text-align: center;
    border-left: 4px solid var(--secondary-color);
}

@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.5rem; }
    .container { padding: 0 16px; }
    .categories-grid, .popular-grid { grid-template-columns: 1fr; }
}