/* ===========================================
   FLARE BED BUG BLOG STYLES
   Shared stylesheet for all blog pages
   =========================================== */

/* --- Fonts --- */
@font-face {
    font-family: 'Ebrima';
    src: url('../ebrima.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}
@font-face {
    font-family: 'Ebrima';
    src: url('../ebrimabd.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
}

/* --- Variables --- */
:root {
    --color-cream: #fffce6;
    --color-red: #dc4439;
    --color-dark-red: #62120c;
    --font-reg: 'Ebrima', sans-serif;
    --font-bold: 'Ebrima', sans-serif;
}

/* --- Reset & Base --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-reg);
    background-color: var(--color-cream);
    color: var(--color-dark-red);
    line-height: 1.7;
}

/* --- Header --- */
.header {
    background-color: var(--color-red);
    padding: 20px 6vw;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    height: 50px;
    cursor: pointer;
}

.book-btn {
    background-color: var(--color-dark-red);
    color: var(--color-cream);
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: bold;
    font-size: 14px;
    transition: transform 0.2s ease;
    cursor: pointer;
    border: none;
    font-family: var(--font-bold);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.book-btn .btn-icon {
    height: 16px;
    width: auto;
    filter: brightness(0) saturate(100%) invert(97%) sepia(6%) saturate(544%) hue-rotate(15deg) brightness(104%) contrast(106%);
}

.book-btn:hover {
    transform: scale(1.05);
}

/* --- Hero Image --- */
.hero-image {
    width: 100%;
    height: 300px;
    background: linear-gradient(135deg, var(--color-red) 0%, var(--color-dark-red) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero-image::before {
    font-size: 120px;
    opacity: 0.3;
}

.hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px 6vw;
    background: linear-gradient(transparent, rgba(98, 18, 12, 0.9));
    display: flex;
    justify-content: center;
}

.hero-overlay h1 {
    color: var(--color-cream);
    font-size: clamp(20px, 4vw, 32px);
    line-height: 1.2;
    max-width: 800px;
    width: 100%;
}

/* --- Main Content --- */
.content {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 6vw 60px;
}

/* --- Page Title (smaller) --- */
.page-title {
    color: var(--color-red);
    font-size: clamp(22px, 3.5vw, 28px);
    line-height: 1.2;
    margin-bottom: 20px;
}

/* --- Meta Row --- */
.meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 10px;
}

.meta-row a,
.meta-row p {
    color: var(--color-red);
    font-size: 14px;
    font-weight: bold;
    text-decoration: none;
    margin: 0;
}

.meta-row a:hover {
    text-decoration: underline;
}

/* --- Article Content --- */
h2 {
    color: var(--color-red);
    font-size: 24px;
    margin: 40px 0 20px;
}

h3 {
    color: var(--color-red);
    font-size: 20px;
    margin: 30px 0 15px;
}

p {
    margin-bottom: 20px;
    font-size: 17px;
}

ol, ul {
    margin-left: 1.5rem;
    margin-bottom: 20px;
}

li {
    margin-bottom: 8px;
    font-size: 17px;
}

.blog-image {
    width: 100%;
    border-radius: 12px;
    margin: 30px 0;
}

/* --- Result Section (for test articles) --- */
.result-section {
    background-color: rgba(220, 68, 57, 0.1);
    padding: 25px;
    border-radius: 12px;
    margin: 30px 0;
}

.result-section p {
    margin-bottom: 15px;
}

.result-section p:last-child {
    margin-bottom: 0;
}

/* --- Placeholder Note --- */
.placeholder-note {
    background-color: var(--color-red);
    color: var(--color-cream);
    padding: 30px;
    border-radius: 12px;
    margin: 40px 0;
    text-align: center;
}

.placeholder-note h3 {
    margin-bottom: 10px;
}

/* --- CTA Box --- */
.cta-box {
    background-color: var(--color-dark-red);
    color: var(--color-cream);
    padding: 40px;
    border-radius: 12px;
    text-align: center;
    margin-top: 50px;
}

.cta-box h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: var(--color-cream);
}

.cta-box p {
    margin-bottom: 25px;
    opacity: 0.9;
}

.cta-box .book-btn {
    background-color: var(--color-cream);
    color: var(--color-red);
    display: inline-block;
}

/* --- Email Form --- */
.email-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    max-width: 400px;
    margin: 0 auto;
}

/* Email Input - Matching Homepage Exactly */
.email-input {
    width: 100%;
    padding: 20px 25px;
    border-radius: 50px;
    border: none;
    background-color: var(--color-cream);
    font-family: var(--font-reg);
    font-size: 20px;
    outline: none;
    color: var(--color-red);
    transition: background-color 5000s ease-in-out 0s, color 0.3s ease;
    text-align: center;
}

.email-input::placeholder {
    color: var(--color-red);
    opacity: 0.6;
    font-family: var(--font-reg);
    font-weight: normal;
}

.email-input:not(:placeholder-shown),
.email-input:focus {
    font-family: var(--font-bold);
    font-weight: bold;
    background-color: var(--color-cream);
}

/* Overriding Browser Autofill Colors */
.email-input:-webkit-autofill,
.email-input:-webkit-autofill:hover,
.email-input:-webkit-autofill:focus,
.email-input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 1000px var(--color-cream) inset !important;
    -webkit-text-fill-color: var(--color-red) !important;
    transition: background-color 5000s ease-in-out 0s;
    font-family: var(--font-bold) !important;
    font-weight: bold !important;
}

/* Submit Button - Matching Homepage Footer State */
.submit-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background-color: var(--color-cream);
    color: var(--color-red);
    padding: 20px 40px;
    border: none;
    border-radius: 50px;
    font-weight: bold;
    font-size: 18px;
    cursor: pointer;
    transition: transform 0.2s ease;
    font-family: var(--font-bold);
    min-width: 280px;
}

.submit-btn:hover {
    transform: scale(1.05);
}

.btn-icon {
    height: 20px;
    width: auto;
    filter: brightness(0) saturate(100%) invert(41%) sepia(43%) saturate(3651%) hue-rotate(338deg) brightness(90%) contrast(96%);
}

/* Wiggle Animation */
.email-form.wiggle {
    animation: wiggle 0.4s ease;
}

@keyframes wiggle {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-8px); }
    40% { transform: translateX(8px); }
    60% { transform: translateX(-5px); }
    80% { transform: translateX(5px); }
}

/* --- Back Link --- */
.back-link {
    display: inline-block;
    margin-top: 30px;
    color: var(--color-red);
    text-decoration: none;
    font-weight: bold;
}

.back-link:hover {
    text-decoration: underline;
}

/* --- Footer --- */
.footer {
    background-color: var(--color-dark-red);
    color: var(--color-cream);
    text-align: center;
    padding: 30px;
    font-size: 14px;
    opacity: 0.8;
}

/* --- Work Cited (for research articles) --- */
.work-cited {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid rgba(98, 18, 12, 0.2);
}

.work-cited h2 {
    font-size: 18px;
    margin-top: 0;
    margin-bottom: 15px;
}

.work-cited p {
    font-size: 15px;
    font-style: italic;
    opacity: 0.8;
}

/* --- FAQ Items (for some blog posts) --- */
.faq-item {
    margin-bottom: 25px;
}

.faq-item strong {
    display: block;
    margin-bottom: 8px;
    color: var(--color-red);
}

/* --- Verdict Box (for some blog posts) --- */
.verdict-box {
    background-color: rgba(98, 18, 12, 0.1);
    padding: 25px;
    border-radius: 12px;
    margin: 30px 0;
}

.verdict-box ul {
    margin: 10px 0 20px 20px;
}

.verdict-box li {
    margin-bottom: 8px;
}
