/*
Theme Name: CalcHub Pro
Theme URI: https://example.com
Author: CalcHub Team
Author URI: https://example.com
Description: Classic, professional WordPress theme for calculator and generator websites using Tailwind CSS.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: calchub-pro
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* Reset WordPress Defaults */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Color Scheme: Black + White + Gold/Green CTA */
:root {
    --black-primary: #000000;
    --black-dark: #111111;
    --white-primary: #ffffff;
    --white-light: #fafafa;
    --gold-primary: #d4af37;
    --gold-light: #f4e4bc;
    --green-cta: #10b981;
    --green-cta-dark: #059669;
}

/* Classic Typography */
body {
    font-family: 'Georgia', 'Times New Roman', serif;
    line-height: 1.7;
    background-color: var(--white-light);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Georgia', 'Times New Roman', serif;
    font-weight: 600;
    color: var(--black-primary);
}

/* Sticky Header */
.site-header {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* WordPress Menu Styles */
.menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 32px;
}

.menu li {
    list-style: none;
    margin: 0;
    padding: 0;
}

.menu a {
    color: var(--black-primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    font-size: 16px;
}

.menu a:hover {
    color: var(--gold-primary);
}

/* Mobile Menu Styles */
#mobileNav .menu {
    flex-direction: column;
    gap: 16px;
}

/* Gold Button Style */
.btn-gold {
    border: 2px solid var(--gold-primary);
    background: var(--white-primary);
    color: var(--gold-primary);
    transition: all 0.3s;
}

.btn-gold:hover {
    background: var(--gold-primary);
    color: var(--white-primary);
}

/* Green CTA Button Style */
.btn-green-cta {
    background: var(--green-cta);
    color: var(--white-primary);
    border: 2px solid var(--green-cta);
    transition: all 0.3s;
    font-weight: 600;
}

.btn-green-cta:hover {
    background: var(--green-cta-dark);
    border-color: var(--green-cta-dark);
}

/* No underline on links */
a {
    text-decoration: none;
}

/* Fix WordPress default list styles */
ul, ol {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Site Logo */
.site-logo a {
    text-decoration: none;
    color: var(--black-primary);
}

.site-logo a:hover {
    color: var(--gold-primary);
}

/* Dropdown Menu */
.site-nav .menu {
    position: relative;
}

.site-nav .menu-item {
    position: relative;
}

.site-nav .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background: white;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border-radius: 8px;
    padding: 8px 0;
    display: none;
    z-index: 100;
}

.site-nav .menu-item:hover > .sub-menu {
    display: block;
}

.site-nav .sub-menu li {
    list-style: none;
}

.site-nav .sub-menu a {
    display: block;
    padding: 10px 16px;
    color: var(--black-primary);
    font-size: 15px;
    text-decoration: none;
    transition: all 0.3s;
}

.site-nav .sub-menu a:hover {
    background: var(--white-light);
    color: var(--gold-primary);
}

/* Footer Widget Titles */
footer h4 {
    color: white !important;
}

/* Blog Post & Tool Description Formatting */
article {
    line-height: 1.8;
}

article h1 {
    font-size: 36px;
    margin-bottom: 24px;
    margin-top: 0;
}

article h2 {
    font-size: 28px;
    margin-bottom: 20px;
    margin-top: 36px;
    color: var(--black-primary);
}

article h3 {
    font-size: 24px;
    margin-bottom: 16px;
    margin-top: 30px;
    color: var(--black-primary);
}

article h4 {
    font-size: 20px;
    margin-bottom: 14px;
    margin-top: 24px;
    color: var(--black-primary);
}

article p {
    margin-bottom: 20px;
    color: var(--black-dark);
}

article ul, article ol {
    margin-bottom: 24px;
    padding-left: 32px;
    list-style: disc;
}

article ul {
    list-style: disc;
}

article ol {
    list-style: decimal;
}

article ul li, article ol li {
    margin-bottom: 10px;
    color: var(--black-dark);
}

article ul ul, article ol ol {
    margin-top: 10px;
    margin-bottom: 0;
}

article blockquote {
    border-left: 4px solid var(--gold-primary);
    padding-left: 24px;
    margin: 32px 0;
    font-style: italic;
    color: var(--black-dark);
}

article a {
    color: var(--gold-primary);
    text-decoration: underline;
}

article a:hover {
    color: var(--black-primary);
}

article img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 24px 0;
}

/* Tool Description Formatting */
.tool-description-content {
    line-height: 1.8;
}

.tool-description-content p {
    margin-bottom: 20px;
    color: var(--black-dark);
}

.tool-description-content h2 {
    font-size: 28px;
    margin-bottom: 20px;
    margin-top: 36px;
    color: var(--black-primary);
}

.tool-description-content h3 {
    font-size: 24px;
    margin-bottom: 16px;
    margin-top: 30px;
    color: var(--black-primary);
}

.tool-description-content h4 {
    font-size: 20px;
    margin-bottom: 14px;
    margin-top: 24px;
    color: var(--black-primary);
}

.tool-description-content ul, .tool-description-content ol {
    margin-bottom: 24px;
    padding-left: 32px;
    list-style: disc;
}

.tool-description-content ul {
    list-style: disc;
}

.tool-description-content ol {
    list-style: decimal;
}

.tool-description-content ul li, .tool-description-content ol li {
    margin-bottom: 10px;
    color: var(--black-dark);
}

.tool-description-content ul ul, .tool-description-content ol ol {
    margin-top: 10px;
    margin-bottom: 0;
}

.tool-description-content blockquote {
    border-left: 4px solid var(--gold-primary);
    padding-left: 24px;
    margin: 32px 0;
    font-style: italic;
    color: var(--black-dark);
}

.tool-description-content a {
    color: var(--gold-primary);
    text-decoration: underline;
}

.tool-description-content a:hover {
    color: var(--black-primary);
}

.tool-description-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 24px 0;
}
