/*
Theme Name: ThePulse
Theme URI: https://thepulse.com
Author: ThePulse Magazine
Author URI: https://thepulse.com
Description: A premium single-post blog & magazine WordPress theme with elegant typography, gold accents, and a sophisticated editorial layout.
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: thepulse
Tags: blog, magazine, one-column, custom-colors, featured-images, post-formats, translation-ready
*/

/* =============================================
   GOOGLE FONTS
============================================= */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;1,400&family=Inter:wght@300;400;500&display=swap');

/* =============================================
   RESET & BASE
============================================= */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', Georgia, serif;
    font-weight: 300;
    background: #FAFAF8;
    color: #1a1a1a;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s ease;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* =============================================
   TYPOGRAPHY
============================================= */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 600;
    line-height: 1.2;
    color: #1a1a1a;
}

p {
    margin-bottom: 1.5rem;
    font-size: 17px;
    line-height: 1.85;
    color: #3a3a3a;
    font-weight: 300;
}

/* =============================================
   TOP BAR
============================================= */
.site-top-bar {
    background: #1a1a1a;
    color: #aaa;
    font-size: 11px;
    letter-spacing: 1px;
    text-align: center;
    padding: 8px 16px;
    text-transform: uppercase;
}

.site-top-bar .gold {
    color: #D4AF6A;
    margin: 0 12px;
}

/* =============================================
   NAVIGATION
============================================= */
.site-header {
    background: #FAFAF8;
    border-bottom: 1px solid #e8e4dc;
    position: sticky;
    top: 0;
    z-index: 999;
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px 48px;
    max-width: 1280px;
    margin: 0 auto;
}

.nav-left-links {
    display: flex;
    gap: 32px;
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #666;
}

.nav-left-links a:hover {
    color: #1a1a1a;
}

.site-logo {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 28px;
    font-weight: 600;
    letter-spacing: -0.5px;
    color: #1a1a1a;
}

.site-logo span {
    color: #D4AF6A;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.nav-search-icon {
    font-size: 18px;
    color: #888;
    cursor: pointer;
    background: none;
    border: none;
}

.nav-search-icon:hover {
    color: #D4AF6A;
}

.subscribe-btn {
    background: #1a1a1a;
    color: #FAFAF8;
    border: none;
    padding: 10px 24px;
    font-size: 11px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    transition: background 0.2s ease;
}

.subscribe-btn:hover {
    background: #D4AF6A;
}

/* =============================================
   ISSUE LABEL
============================================= */
.issue-label {
    text-align: center;
    padding: 12px 16px;
    font-size: 10px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #999;
    border-bottom: 1px solid #e8e4dc;
    background: #FAFAF8;
}

/* =============================================
   HERO SECTION
============================================= */
.post-hero {
    position: relative;
    width: 100%;
    height: 520px;
    overflow: hidden;
    background: #1a1a1a;
    display: flex;
    align-items: flex-end;
}

.post-hero .hero-thumbnail {
    position: absolute;
    inset: 0;
    object-fit: cover;
    width: 100%;
    height: 100%;
    opacity: 0.55;
}

.post-hero .hero-placeholder {
    position: absolute;
    inset: 0;
    background: #2C2C2A;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.80) 0%, rgba(0,0,0,0.10) 60%, transparent 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 48px 48px;
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
}

.hero-eyebrow {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
}

.hero-category-line {
    height: 1px;
    width: 40px;
    background: #D4AF6A;
}

.hero-category-label {
    font-size: 10px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #D4AF6A;
    font-weight: 500;
}

.hero-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 48px;
    font-weight: 600;
    color: #fff;
    line-height: 1.15;
    letter-spacing: -1px;
    max-width: 720px;
    margin-bottom: 18px;
}

.hero-excerpt {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.72);
    line-height: 1.65;
    max-width: 560px;
    font-weight: 300;
}

/* =============================================
   META BAR
============================================= */
.post-meta-bar {
    background: #fff;
    border-bottom: 1px solid #e8e4dc;
    padding: 16px 48px;
}

.post-meta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1280px;
    margin: 0 auto;
}

.meta-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1.5px solid #D4AF6A;
    overflow: hidden;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff9ee;
    font-size: 13px;
    font-weight: 500;
    color: #D4AF6A;
}

.author-info .author-name {
    font-size: 13px;
    font-weight: 500;
    color: #1a1a1a;
    display: block;
}

.author-info .author-role {
    font-size: 11px;
    color: #999;
    letter-spacing: 0.3px;
    display: block;
}

.meta-divider {
    width: 1px;
    height: 32px;
    background: #e8e4dc;
}

.meta-item {
    font-size: 11px;
    color: #888;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.meta-item strong {
    display: block;
    font-size: 13px;
    color: #1a1a1a;
    font-weight: 500;
    text-transform: none;
    letter-spacing: 0;
    margin-bottom: 2px;
}

.meta-share {
    display: flex;
    gap: 8px;
}

.share-icon-btn {
    width: 34px;
    height: 34px;
    border: 1px solid #e8e4dc;
    background: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    color: #888;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.share-icon-btn:hover {
    border-color: #D4AF6A;
    color: #D4AF6A;
}

/* =============================================
   ARTICLE CONTENT
============================================= */
.article-container {
    max-width: 740px;
    margin: 0 auto;
    padding: 60px 24px 90px;
}

/* Drop Cap */
.entry-content > p:first-of-type::first-letter {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 72px;
    font-weight: 600;
    float: left;
    line-height: 0.78;
    margin: 8px 14px 0 0;
    color: #D4AF6A;
}

.entry-content p {
    font-size: 17px;
    line-height: 1.85;
    color: #3a3a3a;
    margin-bottom: 28px;
    font-weight: 300;
}

.entry-content h2 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 28px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 44px 0 20px;
    letter-spacing: -0.3px;
}

.entry-content h3 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 22px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 36px 0 16px;
}

.entry-content blockquote,
.entry-content .wp-block-quote {
    margin: 44px 0;
    padding: 32px 40px;
    border-top: 2px solid #D4AF6A;
    border-bottom: 2px solid #D4AF6A;
    border-left: none;
    border-right: none;
    text-align: center;
    background: transparent;
}

.entry-content blockquote p,
.entry-content .wp-block-quote p {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 22px;
    font-style: italic;
    color: #1a1a1a;
    line-height: 1.55;
    font-weight: 400;
    margin: 0;
}

.entry-content blockquote cite {
    display: block;
    margin-top: 14px;
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #999;
    font-style: normal;
}

.entry-content ul,
.entry-content ol {
    padding-left: 24px;
    margin-bottom: 28px;
}

.entry-content li {
    font-size: 17px;
    line-height: 1.8;
    color: #3a3a3a;
    margin-bottom: 8px;
    font-weight: 300;
}

.entry-content img {
    width: 100%;
    margin: 32px 0;
}

/* Article Divider */
.article-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 48px 0;
}

.article-divider .divider-line {
    flex: 1;
    height: 1px;
    background: #e8e4dc;
}

.article-divider .divider-ornament {
    font-size: 14px;
    color: #D4AF6A;
    letter-spacing: 6px;
}

/* =============================================
   POST TAGS
============================================= */
.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 48px 0 36px;
    padding-top: 32px;
    border-top: 1px solid #e8e4dc;
}

.post-tags a {
    font-size: 10px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 7px 16px;
    border: 1px solid #e8e4dc;
    color: #888;
    transition: all 0.2s ease;
}

.post-tags a:hover {
    border-color: #D4AF6A;
    color: #D4AF6A;
}

/* =============================================
   AUTHOR BIO CARD
============================================= */
.author-bio-card {
    background: #fff;
    border: 1px solid #e8e4dc;
    padding: 28px 32px;
    display: flex;
    gap: 20px;
    align-items: flex-start;
    margin-top: 16px;
}

.author-bio-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2px solid #D4AF6A;
    overflow: hidden;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 500;
    color: #D4AF6A;
    background: #fff9ee;
}

.author-bio-name {
    font-size: 16px;
    font-weight: 500;
    color: #1a1a1a;
    margin-bottom: 4px;
}

.author-bio-title {
    font-size: 11px;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: #D4AF6A;
    margin-bottom: 10px;
}

.author-bio-text {
    font-size: 13px;
    color: #777;
    line-height: 1.65;
    font-weight: 300;
    margin: 0;
}

/* =============================================
   FOOTER
============================================= */
.site-footer {
    background: #1a1a1a;
    color: #aaa;
    padding: 48px 48px 28px;
    margin-top: 60px;
}

.footer-inner {
    max-width: 1280px;
    margin: 0 auto;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding-bottom: 32px;
    border-bottom: 1px solid #333;
    margin-bottom: 24px;
}

.footer-logo {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 30px;
    font-weight: 600;
    color: #fff;
}

.footer-logo span {
    color: #D4AF6A;
}

.footer-tagline {
    font-size: 11px;
    color: #666;
    margin-top: 6px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.footer-nav {
    display: flex;
    gap: 28px;
    font-size: 11px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #666;
    align-items: center;
}

.footer-nav a:hover {
    color: #D4AF6A;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    color: #555;
    letter-spacing: 0.5px;
}

.footer-bottom .gold-text {
    color: #D4AF6A;
    letter-spacing: 2px;
}

/* =============================================
   RESPONSIVE
============================================= */
@media (max-width: 900px) {
    .nav-inner { padding: 18px 24px; }
    .nav-left-links { display: none; }
    .hero-content { padding: 32px 24px; }
    .hero-title { font-size: 32px; }
    .post-meta-inner { flex-direction: column; gap: 16px; align-items: flex-start; }
    .post-meta-bar { padding: 16px 24px; }
    .article-container { padding: 40px 20px 60px; }
    .site-footer { padding: 36px 24px 20px; }
    .footer-top { flex-direction: column; gap: 24px; }
    .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}

@media (max-width: 600px) {
    .hero-title { font-size: 26px; }
    .hero-content { padding: 24px 20px; }
    .post-hero { height: 420px; }
    .meta-left { flex-wrap: wrap; gap: 12px; }
    .meta-divider { display: none; }
    .entry-content > p:first-of-type::first-letter { font-size: 52px; }
    .entry-content blockquote p,
    .entry-content .wp-block-quote p { font-size: 18px; }
    .author-bio-card { flex-direction: column; }
}
