/*
Theme Name: BraCalculator Blog Theme
Theme URI: https://bracalculator.net
Author: BraCalculator.net
Author URI: https://bracalculator.net
Description: A custom WordPress theme for BraCalculator.net blog with elegant design, optimized for bra sizing content.
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: bracalculator
Tags: blog, custom-logo, featured-images, custom-menu, translation-ready

This theme is designed specifically for BraCalculator.net
*/

:root {
    --cream: #FDF8F3;
    --cream-dark: #F5EDE3;
    --rose: #C4A68D;
    --rose-deep: #A68B6E;
    --charcoal: #2D2926;
    --charcoal-light: #4A4543;
    --blush: #E8D5C4;
    --gold: #D4A574;
    --white: #FFFFFF;
    --shadow-soft: 0 4px 20px rgba(45, 41, 38, 0.08);
    --shadow-medium: 0 8px 40px rgba(45, 41, 38, 0.12);
    --transition-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'DM Sans', sans-serif; background: var(--cream); color: var(--charcoal); line-height: 1.6; overflow-x: hidden; }
h1, h2, h3, h4, h5, h6 { font-family: 'Cormorant Garamond', serif; font-weight: 600; line-height: 1.2; }
a { text-decoration: none; color: inherit; transition: color 0.3s ease; }
img { max-width: 100%; height: auto; }

/* Navigation */
#navbar { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; background: rgba(253, 248, 243, 0.95); backdrop-filter: blur(20px); border-bottom: 1px solid rgba(196, 166, 141, 0.2); padding: 5px 0; }
.nav-container { max-width: 1261px; margin: 0 auto; padding: 1rem 2rem; display: flex; justify-content: space-between; align-items: center; }
#navbar.scrolled { box-shadow: var(--shadow-soft); }
.logo { font-family: 'Cormorant Garamond', serif; font-size: 1.5rem; font-weight: 700; color: var(--charcoal); text-decoration: none; display: flex; align-items: center; }
.logo img { display: block; width: 25%; }
.nav-links { display: flex; gap: 2.5rem; list-style: none; }
.nav-links a { color: var(--charcoal-light); text-decoration: none; font-size: 0.9rem; font-weight: 500; transition: color 0.3s ease; }
.nav-links a:hover, .nav-links a.active, .nav-links .current-menu-item a { color: var(--charcoal); }
.mobile-menu { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 5px; background: none; border: none; }
.mobile-menu span { width: 24px; height: 2px; background: var(--charcoal); display: block; transition: all 0.3s ease; }

/* Page Header */
.page-header { padding: 10rem 2rem 4rem; text-align: center; position: relative; }
.page-header::before { content: ''; position: absolute; top: -50%; right: -30%; width: 80%; height: 150%; background: radial-gradient(ellipse at center, var(--blush) 0%, transparent 70%); opacity: 0.5; pointer-events: none; }
.page-header-content { max-width: 800px; margin: 0 auto; position: relative; z-index: 1; }
.page-header h1 { font-size: clamp(2.5rem, 5vw, 3.5rem); margin-bottom: 1rem; }
.page-header h1 span { color: var(--rose-deep); font-style: italic; }
.page-header p { font-size: 1.15rem; color: var(--charcoal-light); }

/* Blog Section */
.blog-section { padding: 5rem 2rem; }
.blog-container { max-width: 1200px; margin: 0 auto; }
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }

/* Blog Card */
.blog-card { background: var(--white); border-radius: 20px; overflow: hidden; transition: all 0.3s var(--transition-smooth); }
.blog-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-medium); }
.blog-card-image { height: 200px; background: linear-gradient(135deg, var(--blush) 0%, var(--cream-dark) 100%); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.blog-card-image img { width: 100%; height: 100%; object-fit: cover; }
.blog-card-image svg { width: 50px; height: 50px; color: var(--rose-deep); opacity: 0.5; }
.blog-card-content { padding: 1.5rem; }
.post-category { display: inline-block; color: var(--rose-deep); font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 0.5rem; }
.post-category a { color: inherit; }
.blog-card h3 { font-size: 1.25rem; margin-bottom: 0.75rem; }
.blog-card h3 a { color: var(--charcoal); text-decoration: none; }
.blog-card h3 a:hover { color: var(--rose-deep); }
.post-excerpt { font-size: 0.95rem; margin-bottom: 1rem; color: var(--charcoal-light); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.post-meta { font-size: 0.85rem; color: var(--charcoal-light); }

/* Breadcrumb */
.breadcrumb { display: flex; align-items: center; gap: 0.5rem; font-size: 0.85rem; flex-wrap: wrap; margin-bottom: 1.5rem; margin-top: 0.5rem; }
.breadcrumb a { color: var(--charcoal-light); text-decoration: none; transition: color 0.3s ease; }
.breadcrumb a:hover { color: var(--rose-deep); }
.breadcrumb span.separator { color: var(--rose); }
.breadcrumb span.current { color: var(--charcoal); }

/* Content Wrapper */
.content-wrapper { max-width: 1261px; margin: 0 auto; padding: 100px 2rem 2rem; display: grid; grid-template-columns: 1fr 340px; gap: 3rem; }

/* Article */
.article-main { min-width: 0; }
.article-header { margin-bottom: 2rem; }
.article-header .post-category { display: inline-block; color: var(--rose-deep); font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 1rem; background: var(--blush); padding: 0.35rem 0.85rem; border-radius: 20px; }
.article-header h1 { font-size: clamp(2rem, 4vw, 2.75rem); margin-bottom: 1.25rem; line-height: 1.25; color: var(--charcoal); }

/* Article Meta */
.article-meta { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; padding-bottom: 1.5rem; border-bottom: 1px solid var(--cream-dark); }
.author-info { display: flex; align-items: center; gap: 0.75rem; }
.author-avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--blush); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.author-avatar img { width: 100%; height: 100%; object-fit: cover; }
.author-avatar svg { width: 24px; height: 24px; color: var(--rose-deep); }
.author-details { display: flex; flex-direction: column; }
.author-name { font-weight: 600; color: var(--charcoal); font-size: 0.95rem; }
.author-name a { color: inherit; }
.meta-divider { width: 1px; height: 24px; background: var(--cream-dark); }
.meta-item { display: flex; align-items: center; gap: 0.4rem; color: var(--charcoal-light); font-size: 0.85rem; }
.meta-item svg { width: 16px; height: 16px; }

/* Featured Image */
.featured-image { width: 100%; height: 350px; background: linear-gradient(135deg, var(--blush) 0%, var(--cream-dark) 100%); border-radius: 16px; overflow: hidden; position: relative; display: flex; align-items: center; justify-content: center; margin: 1.5rem 0; }
.featured-image img { width: 100%; height: 100%; object-fit: cover; }
.featured-placeholder { text-align: center; color: var(--rose-deep); }
.featured-placeholder svg { width: 60px; height: 60px; margin-bottom: 0.75rem; opacity: 0.5; }
.featured-placeholder p { font-size: 0.85rem; opacity: 0.7; }

/* Social Share */
.social-share { display: flex; align-items: center; gap: 0.75rem; margin-top: 1.5rem; }
.social-share span { font-size: 0.85rem; color: var(--charcoal-light); font-weight: 500; }
.share-buttons { display: flex; gap: 0.5rem; }
.share-btn { width: 36px; height: 36px; border-radius: 50%; background: var(--cream-dark); border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.3s ease; text-decoration: none; }
.share-btn:hover { background: var(--rose); transform: translateY(-2px); }
.share-btn svg { width: 18px; height: 18px; color: var(--charcoal); transition: color 0.3s ease; }
.share-btn:hover svg { color: var(--white); }

/* Article Content */
.article-content { padding: 2rem 0; }
.article-content p { font-size: 1.05rem; line-height: 1.85; margin-bottom: 1.5rem; color: var(--charcoal); }
.article-content h2 { font-size: 1.65rem; margin: 2.5rem 0 1.25rem; color: var(--charcoal); }
.article-content h3 { font-size: 1.3rem; margin: 2rem 0 1rem; color: var(--charcoal); }
.article-content h4 { font-size: 1.15rem; margin: 1.5rem 0 0.75rem; color: var(--charcoal); }
.article-content ul, .article-content ol { margin: 1.5rem 0; padding-left: 1.5rem; }
.article-content li { font-size: 1.05rem; line-height: 1.85; margin-bottom: 0.6rem; color: var(--charcoal); }
.article-content blockquote { background: var(--white); border-left: 4px solid var(--rose-deep); padding: 1.5rem 2rem; margin: 2rem 0; border-radius: 0 16px 16px 0; box-shadow: var(--shadow-soft); }
.article-content blockquote p { font-size: 1.1rem; font-style: italic; margin-bottom: 0; color: var(--charcoal-light); }
.article-content a { color: var(--rose-deep); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; }
.article-content a:hover { color: var(--charcoal); }
.article-content img { max-width: 100%; height: auto; border-radius: 12px; margin: 1.5rem 0; }
.article-content .wp-block-image { margin: 1.5rem 0; }
.article-content figure { margin: 1.5rem 0; }
.article-content figcaption { font-size: 0.85rem; color: var(--charcoal-light); text-align: center; margin-top: 0.5rem; }

/* Tags */
.article-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 2rem 0; padding-top: 1.5rem; border-top: 1px solid var(--cream-dark); }
.tag, .article-tags a { display: inline-block; padding: 0.4rem 0.9rem; background: var(--cream-dark); color: var(--charcoal-light); font-size: 0.8rem; border-radius: 20px; text-decoration: none; transition: all 0.3s ease; }
.tag:hover, .article-tags a:hover { background: var(--rose); color: var(--white); }

/* Author Bio */
.author-bio { background: var(--white); border-radius: 16px; padding: 2rem; margin: 2rem 0; box-shadow: var(--shadow-soft); }
.author-bio-header { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.author-bio-avatar { width: 70px; height: 70px; border-radius: 50%; background: var(--blush); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.author-bio-avatar img { width: 100%; height: 100%; object-fit: cover; }
.author-bio-avatar svg { width: 36px; height: 36px; color: var(--rose-deep); }
.author-bio-info h4 { font-size: 1.25rem; margin-bottom: 0.25rem; }
.author-bio-info p { font-size: 0.85rem; color: var(--rose-deep); margin: 0; }
.author-bio-text { font-size: 0.95rem; color: var(--charcoal-light); line-height: 1.7; }

/* Comments Section */
.comments-section { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--cream-dark); }
.comments-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2rem; }
.comments-header h3 { font-size: 1.5rem; }
.comment-count { background: var(--cream-dark); padding: 0.3rem 0.75rem; border-radius: 20px; font-size: 0.85rem; color: var(--charcoal-light); }

/* Comment Form */
.comment-form, .comment-respond { background: var(--white); border-radius: 16px; padding: 1.5rem; margin-bottom: 2rem; box-shadow: var(--shadow-soft); }
.comment-form h4, .comment-reply-title { font-size: 1.1rem; margin-bottom: 1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1rem; }
.form-group { display: flex; flex-direction: column; gap: 0.4rem; }
.form-group.full { grid-column: 1 / -1; }
.form-group label, .comment-form label { font-size: 0.85rem; font-weight: 500; color: var(--charcoal); }
.form-group input, .form-group textarea, .comment-form input[type="text"], .comment-form input[type="email"], .comment-form textarea { padding: 0.85rem 1rem; border: 1px solid var(--cream-dark); border-radius: 10px; font-family: 'DM Sans', sans-serif; font-size: 0.95rem; background: var(--cream); transition: all 0.3s ease; width: 100%; }
.form-group input:focus, .form-group textarea:focus, .comment-form input:focus, .comment-form textarea:focus { outline: none; border-color: var(--rose); background: var(--white); }
.form-group textarea, .comment-form textarea { min-height: 120px; resize: vertical; }
.submit-btn, .comment-form input[type="submit"] { padding: 0.85rem 1.75rem; background: var(--charcoal); color: var(--white); border: none; border-radius: 50px; font-family: 'DM Sans', sans-serif; font-size: 0.9rem; font-weight: 600; cursor: pointer; transition: all 0.3s ease; margin-top: 1rem; }
.submit-btn:hover, .comment-form input[type="submit"]:hover { background: var(--rose-deep); transform: translateY(-2px); }

/* Comment List */
.comment-list { display: flex; flex-direction: column; gap: 1.5rem; list-style: none; padding: 0; margin: 0; }
.comment { background: var(--white); border-radius: 16px; padding: 1.5rem; box-shadow: var(--shadow-soft); }
.comment .children { margin-top: 1.5rem; margin-left: 1.5rem; }
.comment-header, .comment-meta { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 0.75rem; }
.comment-author { display: flex; align-items: center; gap: 0.75rem; }
.comment-avatar, .comment-author .avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--blush); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.comment-avatar svg { width: 20px; height: 20px; color: var(--rose-deep); }
.comment-author-info h5, .comment-author .fn { font-family: 'DM Sans', sans-serif; font-size: 0.95rem; font-weight: 600; }
.comment-author-info span, .comment-metadata { font-size: 0.8rem; color: var(--charcoal-light); }
.comment-metadata a { color: var(--charcoal-light); }
.comment-text, .comment-content { font-size: 0.95rem; color: var(--charcoal-light); line-height: 1.7; }
.comment-content p { margin-bottom: 0.5rem; }
.comment-reply { margin-top: 0.75rem; }
.comment-reply a, .comment-reply-link { font-size: 0.85rem; color: var(--rose-deep); text-decoration: none; font-weight: 500; }
.comment-reply a:hover, .comment-reply-link:hover { text-decoration: underline; }

/* Sidebar */
.sidebar { margin-top: 3.5rem; }
.sticky-widget { position: sticky; top: 100px; }
.sidebar-widget { background: var(--white); border-radius: 16px; padding: 1.5rem; margin-bottom: 1.5rem; box-shadow: var(--shadow-soft); }
.sidebar-widget h4, .widget-title { font-size: 1.15rem; margin-bottom: 1rem; padding-bottom: 0.75rem; border-bottom: 1px solid var(--cream-dark); }

/* Calculator Widget */
.calculator-widget { background: linear-gradient(135deg, var(--charcoal) 0%, #1a1816 100%); color: var(--white); }
.calculator-widget h4, .calculator-widget .widget-title { color: var(--white); border-bottom-color: rgba(255,255,255,0.1); }
.calculator-widget p { font-size: 0.9rem; color: var(--blush); margin-bottom: 1rem; line-height: 1.6; }
.calculator-widget .widget-btn { display: block; width: 100%; padding: 0.85rem; background: var(--gold); color: var(--charcoal); text-align: center; text-decoration: none; font-weight: 600; border-radius: 50px; font-size: 0.9rem; transition: all 0.3s ease; }
.calculator-widget .widget-btn:hover { background: var(--white); transform: translateY(-2px); }
.calculator-features { margin: 1rem 0; padding: 0; list-style: none; }
.calculator-features li { display: flex; align-items: center; gap: 0.5rem; font-size: 0.85rem; color: var(--blush); margin-bottom: 0.5rem; }
.calculator-features li svg { width: 16px; height: 16px; color: var(--gold); flex-shrink: 0; }

/* Related Posts Widget */
.related-post { display: flex; gap: 0.75rem; padding: 0.75rem 0; border-bottom: 1px solid var(--cream-dark); }
.related-post:last-child { border-bottom: none; padding-bottom: 0; }
.related-post-thumb { width: 60px; height: 60px; border-radius: 8px; background: var(--blush); flex-shrink: 0; overflow: hidden; }
.related-post-thumb img { width: 100%; height: 100%; object-fit: cover; }
.related-post-info h5 { font-family: 'DM Sans', sans-serif; font-size: 0.9rem; font-weight: 600; margin-bottom: 0.25rem; line-height: 1.3; }
.related-post-info h5 a { color: var(--charcoal); text-decoration: none; }
.related-post-info h5 a:hover { color: var(--rose-deep); }
.related-post-info span { font-size: 0.75rem; color: var(--charcoal-light); }

/* Footer */
footer, .site-footer { padding: 4rem 2rem 2rem; background: var(--cream); border-top: 1px solid var(--cream-dark); margin-top: 3rem; }
.footer-container { max-width: 1200px; margin: 0 auto; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; margin-bottom: 3rem; }
.footer-brand .logo img { width: 25%; }
.footer-brand p { color: var(--charcoal-light); margin-top: 1rem; font-size: 0.95rem; max-width: 300px; }
.footer-column h4 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 1rem; font-family: 'DM Sans', sans-serif; font-weight: 600; }
.footer-column ul { list-style: none; padding: 0; margin: 0; }
.footer-column li { margin-bottom: 0.75rem; }
.footer-column a { color: var(--charcoal-light); text-decoration: none; font-size: 0.95rem; }
.footer-column a:hover { color: var(--rose-deep); }
.footer-bottom { padding-top: 2rem; border-top: 1px solid var(--cream-dark); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
.footer-bottom p { color: var(--charcoal-light); font-size: 0.85rem; margin: 0; }

/* Pagination */
.pagination { display: flex; justify-content: center; gap: 0.5rem; margin-top: 3rem; }
.pagination a, .pagination span, .page-numbers { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: var(--white); color: var(--charcoal); font-size: 0.9rem; font-weight: 500; text-decoration: none; transition: all 0.3s ease; box-shadow: var(--shadow-soft); }
.pagination a:hover, .page-numbers:hover { background: var(--rose); color: var(--white); }
.pagination .current, .page-numbers.current { background: var(--charcoal); color: var(--white); }

/* WordPress Core Styles */
.alignleft { float: left; margin: 0 1.5rem 1rem 0; }
.alignright { float: right; margin: 0 0 1rem 1.5rem; }
.aligncenter { display: block; margin: 1.5rem auto; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 0.85rem; color: var(--charcoal-light); text-align: center; margin-top: 0.5rem; }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin: 1.5rem 0; }
.gallery-item { margin: 0; }
.screen-reader-text { clip: rect(1px, 1px, 1px, 1px); position: absolute !important; height: 1px; width: 1px; overflow: hidden; }

/* Responsive */
@media (max-width: 1024px) {
    .content-wrapper { grid-template-columns: 1fr; }
    .sidebar { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin-top: 2rem; }
    .sticky-widget { position: static; }
    .blog-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--white); flex-direction: column; padding: 1.5rem 2rem; gap: 1rem; box-shadow: var(--shadow-medium); }
    .nav-links.open { display: flex; }
    .mobile-menu { display: flex; }
    .page-header { padding: 8rem 1.5rem 3rem; }
    .content-wrapper { padding: 100px 1.5rem 2rem; gap: 2rem; }
    .featured-image { height: 200px; }
    .sidebar { grid-template-columns: 1fr; }
    .blog-grid { grid-template-columns: 1fr; }
    .article-header h1 { font-size: 1.75rem; }
    .article-meta { gap: 1rem; }
    .meta-divider { display: none; }
    .form-row { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
    .footer-bottom { flex-direction: column; align-items: flex-start; }
    .gallery { grid-template-columns: repeat(2, 1fr); }
}
