/* ═══════════════════════════════════════════════════════════════════════════
   Octocoupon Theme — Bootstrap-inspired, Red & Grey palette
   Primary  : #dc3545   (Bootstrap danger red)
   Secondary: #6c757d   (Bootstrap secondary grey)
   Dark     : #343a40
   Light bg : #f8f9fa
   Border   : #dee2e6
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Hero Banner ──────────────────────────────────────────────────────────── */
.oc-hero {
    background: linear-gradient(135deg, #343a40 0%, #495057 100%);
    padding: 40px 24px;
    text-align: center;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
}
.oc-hero-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 0.5rem;
    line-height: 1.2;
}
.oc-hero-sub {
    font-size: 0.9rem;
    color: #adb5bd;
    margin: 0;
}

/* ── Store Logo Strip ─────────────────────────────────────────────────────── */
.oc-store-strip {
    margin-bottom: 1.25rem;
    overflow: hidden;
}
.oc-strip-inner {
    display: flex;
    gap: 0.625rem;
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: 4px;
}
.oc-strip-inner::-webkit-scrollbar { display: none; }
.oc-strip-item {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 48px;
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    padding: 6px;
    text-decoration: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.oc-strip-item:hover {
    border-color: #dc3545;
    box-shadow: 0 0.125rem 0.5rem rgba(220,53,69,0.15);
}
.oc-strip-item img { max-width: 100%; max-height: 100%; object-fit: contain; }
.oc-strip-item--text {
    width: auto;
    min-width: 72px;
    padding: 6px 12px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #495057;
    white-space: nowrap;
}
.oc-strip-item--text:hover { color: #dc3545; }

/* ── Filter Bar ───────────────────────────────────────────────────────────── */
.oc-filter-bar {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
}
.oc-filter-btn {
    padding: 0.375rem 1rem;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    background: #fff;
    font-size: 0.875rem;
    font-weight: 500;
    color: #495057;
    cursor: pointer;
    transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
    line-height: 1.5;
}
.oc-filter-btn:hover  { border-color: #dc3545; color: #dc3545; }
.oc-filter-btn.active { background: #dc3545; border-color: #dc3545; color: #fff; }

/* ── Coupon Grid ──────────────────────────────────────────────────────────── */
.oc-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1.75rem;
}
@media (max-width: 768px) { .oc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 576px) { .oc-grid { grid-template-columns: 1fr; } }

/* ── Coupon Card ──────────────────────────────────────────────────────────── */
.oc-card {
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.oc-card:hover {
    box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.1);
    transform: translateY(-2px);
}
.oc-card.oc-expired { opacity: 0.55; }

/* Top-left discount tag */
.oc-tag-discount {
    position: absolute;
    top: 0.625rem;
    left: 0.625rem;
    background: #dc3545;
    color: #fff;
    font-size: 0.6875rem;
    font-weight: 700;
    padding: 0.2rem 0.5rem;
    border-radius: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    z-index: 2;
    white-space: nowrap;
    line-height: 1.4;
}

/* Card inner: logo + store + title + expiry */
.oc-card-inner {
    padding: 2.25rem 1rem 0.875rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.375rem;
    flex: 1;
    text-align: center;
}
.oc-card-logo-wrap {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    padding: 4px;
    flex-shrink: 0;
    margin-bottom: 0.125rem;
}
.oc-card-logo { max-width: 100%; max-height: 100%; object-fit: contain; }

.oc-card-store {
    font-size: 0.6875rem;
    font-weight: 700;
    color: #6c757d;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    line-height: 1.2;
}
.oc-card-store:hover { color: #dc3545; }

.oc-card-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: #212529;
    text-decoration: none;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.oc-card-title:hover { color: #dc3545; }

.oc-expire {
    font-size: 0.6875rem;
    color: #adb5bd;
    margin-top: 0.125rem;
}

/* Card footer: deal type tag (left) + CTA button (right) */
.oc-card-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0.75rem;
    border-top: 1px solid #f1f3f5;
    background: #f8f9fa;
    gap: 0.5rem;
    flex-shrink: 0;
}

/* Bottom-left deal type tag — single theme colour */
.oc-tag-type {
    font-size: 0.6875rem;
    font-weight: 600;
    padding: 0.2rem 0.5rem;
    border-radius: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
    flex-shrink: 0;
    line-height: 1.4;
    background: #f1f3f5;
    color: #495057;
    border: 1px solid #dee2e6;
}

/* CTA button — Bootstrap btn-danger style */
.oc-get-btn {
    display: inline-block;
    font-size: 0.8125rem;
    font-weight: 600;
    padding: 0.3rem 0.75rem;
    background: #dc3545;
    color: #fff !important;
    border-radius: 0.375rem;
    text-decoration: none !important;
    white-space: nowrap;
    transition: background-color 0.15s ease;
    flex-shrink: 0;
    line-height: 1.5;
}
.oc-get-btn:hover { background: #bb2d3b; }

/* ── Pagination ───────────────────────────────────────────────────────────── */
.oc-pagination {
    display: flex;
    gap: 0.25rem;
    justify-content: center;
    flex-wrap: wrap;
    padding: 1.25rem 0 0.5rem;
}
.oc-pagination a, .oc-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.25rem;
    height: 2.25rem;
    padding: 0 0.625rem;
    border-radius: 0.375rem;
    border: 1px solid #dee2e6;
    font-size: 0.875rem;
    text-decoration: none;
    color: #495057;
    background: #fff;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}
.oc-pagination a:hover  { background: #f8f9fa; border-color: #adb5bd; }
.oc-pagination .current { background: #dc3545; color: #fff; border-color: #dc3545; font-weight: 700; }

/* ── Sidebar — Bootstrap list-group style ─────────────────────────────────── */
.widget-area .widget {
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    padding: 0;
    margin-bottom: 1.25rem;
    overflow: hidden;
}
.widget-area .widget-title,
.widget-area h2.widget-title {
    font-size: 0.75rem !important;
    font-weight: 700 !important;
    color: #fff !important;
    background: #343a40 !important;
    margin: 0 !important;
    padding: 0.625rem 1rem !important;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.widget-area .widget ul {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}
.widget-area .widget ul li { border-bottom: 1px solid #f1f3f5; }
.widget-area .widget ul li:last-child { border-bottom: none; }
.widget-area .widget ul li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    color: #495057;
    text-decoration: none;
    transition: background-color 0.1s ease, color 0.1s ease;
}
.widget-area .widget ul li a:hover {
    background: #f8f9fa;
    color: #dc3545;
}
.widget-area .widget ul li a .count {
    font-size: 0.6875rem;
    background: #f1f3f5;
    color: #6c757d;
    padding: 0.1rem 0.45rem;
    border-radius: 0.25rem;
    font-weight: 600;
    flex-shrink: 0;
}

/* ── Archive header ───────────────────────────────────────────────────────── */
.oc-archive-header { margin-bottom: 1.25rem; }
.oc-archive-header h1 { font-size: 1.375rem; font-weight: 700; color: #212529; margin: 0 0 0.25rem; }
.oc-archive-header p  { font-size: 0.875rem; color: #6c757d; margin: 0; }

/* ── Store Hero (taxonomy-coupon-store pages) ─────────────────────────────── */
.oc-store-hero {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin-bottom: 1.25rem;
}
.oc-store-hero-logo {
    width: 128px;
    height: 80px;
    object-fit: contain;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    background: #f8f9fa;
    padding: 6px;
    flex-shrink: 0;
}
.oc-store-hero-info h1 { font-size: 1.375rem; font-weight: 700; color: #212529; margin: 0 0 0.25rem; }
.oc-store-hero-info p  { font-size: 0.875rem; color: #6c757d; margin: 0 0 0.375rem; }
.oc-store-hero-count   { font-size: 0.8125rem; font-weight: 600; color: #dc3545; }

/* ── Breadcrumb ───────────────────────────────────────────────────────────── */
.oc-breadcrumb {
    font-size: 0.8125rem;
    color: #6c757d;
    margin-bottom: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    align-items: center;
}
.oc-breadcrumb a { color: #6c757d; text-decoration: none; }
.oc-breadcrumb a:hover { color: #dc3545; }
.oc-breadcrumb-sep { color: #adb5bd; }
.oc-breadcrumb-current { color: #495057; font-weight: 500; }

/* ── Related coupons strip ────────────────────────────────────────────────── */
.oc-related { margin-top: 2rem; max-width: 680px; margin-left: auto; margin-right: auto; }
.oc-related-title {
    font-size: 1rem;
    font-weight: 700;
    color: #212529;
    margin: 0 0 0.875rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #dee2e6;
}
.oc-related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.875rem;
}
@media (max-width: 576px) { .oc-related-grid { grid-template-columns: 1fr; } }

/* ── Single Coupon ────────────────────────────────────────────────────────── */
.oc-single {
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    overflow: hidden;
    max-width: 680px;
    margin: 0 auto 2rem;
}
.oc-single-header {
    background: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    padding: 1.5rem 1.75rem;
    display: flex;
    align-items: center;
    gap: 1.125rem;
}
.oc-single-logo {
    width: 72px;
    height: 72px;
    object-fit: contain;
    border-radius: 0.375rem;
    background: #fff;
    border: 1px solid #dee2e6;
    padding: 4px;
}
.oc-single-store-name { font-size: 1.25rem; font-weight: 700; color: #212529; }
.oc-single-body { padding: 1.5rem 1.75rem; display: flex; flex-direction: column; gap: 1rem; }
.oc-single-title { font-size: 1.625rem; font-weight: 700; color: #212529; margin: 0; line-height: 1.3; }
.oc-single-banner { display: block; margin: 0.25rem 0 0.5rem; }
.oc-single-banner img { display: block; max-width: 100%; height: auto; border-radius: 6px; }
.oc-single-desc  { font-size: 0.9375rem; color: #495057; line-height: 1.6; }
.oc-single-code-row { display: flex; gap: 0.625rem; align-items: center; }
.oc-single-code-box {
    flex: 1;
    font-family: monospace;
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: 0.15em;
    padding: 0.875rem 1rem;
    border: 2px dashed #dee2e6;
    border-radius: 0.375rem;
    background: #f8f9fa;
    color: #212529;
    text-align: center;
}
.oc-single-copy-btn {
    padding: 0.875rem 1.25rem;
    background: #dc3545;
    color: #fff;
    border: none;
    border-radius: 0.375rem;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 700;
    transition: background-color 0.15s ease;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.oc-single-copy-btn:hover  { background: #bb2d3b; }
.oc-single-copy-btn.copied { background: #198754; }
.oc-single-meta { font-size: 0.8125rem; color: #adb5bd; }
.oc-single-meta a { color: #dc3545; text-decoration: none; }
.oc-single-cta {
    display: block;
    text-align: center;
    padding: 0.875rem;
    background: #dc3545;
    color: #fff !important;
    font-weight: 700;
    font-size: 1rem;
    border-radius: 0.375rem;
    text-decoration: none !important;
    transition: background-color 0.15s ease;
}
.oc-single-cta:hover { background: #bb2d3b; }
.oc-single-footer {
    padding: 1rem 1.75rem;
    border-top: 1px solid #dee2e6;
    background: #f8f9fa;
    font-size: 0.8125rem;
    color: #adb5bd;
}
.oc-single-footer a { color: #dc3545; text-decoration: none; }

/* ── Empty / toast ────────────────────────────────────────────────────────── */
.oc-empty { text-align: center; padding: 3.75rem 1.25rem; color: #adb5bd; font-size: 0.9375rem; }
.oc-copied-toast {
    position: fixed;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    background: #343a40;
    color: #fff;
    padding: 0.625rem 1.25rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
    z-index: 9999;
}
.oc-copied-toast.show { opacity: 1; }

/* ── v2.5.0: offer facts, readable body headings, disclosure, trust links ── */
.oc-offer-facts {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.5rem; margin: 0;
}
.oc-offer-facts > div { background: #f8f9fa; border: 1px solid #e9ecef; border-radius: 6px; padding: 0.625rem 0.75rem; }
.oc-offer-facts dt { font-size: 0.6875rem; text-transform: uppercase; letter-spacing: 0.04em; color: #6c757d; margin: 0; }
.oc-offer-facts dd { font-size: 0.9375rem; font-weight: 600; color: #212529; margin: 0.125rem 0 0; overflow-wrap: anywhere; }
@media (max-width: 480px) { .oc-offer-facts { grid-template-columns: 1fr; } }

.oc-single-disclosure { font-size: 0.75rem; color: #6c757d; margin: -0.5rem 0 0; }
.oc-single-disclosure a { color: inherit; text-decoration: underline; }

/* Body headings must sit below the H1, not tower over it */
.oc-single-desc h2 { font-size: 1.125rem; font-weight: 700; color: #212529; margin: 1.5rem 0 0.5rem; line-height: 1.35; }
.oc-single-desc h3 { font-size: 1rem; font-weight: 700; color: #212529; margin: 1.25rem 0 0.5rem; }
.oc-single-desc ul { margin: 0 0 1rem 1.25rem; }
.oc-single-desc li { margin-bottom: 0.25rem; }

/* Generated bodies end with a bare "Shop Now" link that duplicates the main CTA */
.oc-single-desc p:has(> a:only-child[href*="omgt6.com"]),
.oc-single-desc p:has(> a:only-child[href*="linksynergy.com"]),
.oc-single-desc p:has(> a:only-child[href*="dpbolvw.net"]) { display: none; }

.oc-trust-links { background: #f8f9fa; border-top: 1px solid #e9ecef; padding: 1.25rem 1rem; font-size: 0.8125rem; color: #6c757d; }
.oc-trust-inner { max-width: 1200px; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 0.75rem 2rem; align-items: center; justify-content: space-between; }
.oc-trust-note { margin: 0; }
.oc-trust-links ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 1.25rem; }
.oc-trust-links a { color: #495057; text-decoration: none; }
.oc-trust-links a:hover { color: #dc3545; }

/* ── v2.6.0: pages that replaced the Couponis templates ── */
.oc-search-form { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0 0 1.5rem; }
.oc-search-form input[type="search"] { flex: 1 1 220px; }
.oc-search-form select { flex: 0 1 190px; }
.oc-search-form input, .oc-search-form select {
  padding: 0.5rem 0.75rem; border: 1px solid #dee2e6; border-radius: 6px; font-size: 0.9375rem; background: #fff;
}
.oc-search-form button {
  padding: 0.5rem 1.25rem; border: 0; border-radius: 6px; background: #dc3545; color: #fff; font-weight: 600; cursor: pointer;
}
.oc-search-form button:hover { background: #bb2d3b; }

.oc-term-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 0.75rem;
}
.oc-term-card {
  display: flex; flex-direction: column; align-items: center; gap: 0.375rem; height: 100%;
  padding: 1rem; background: #fff; border: 1px solid #dee2e6; border-radius: 8px;
  text-align: center; text-decoration: none; color: #212529;
}
.oc-term-card:hover { border-color: #dc3545; }
.oc-term-card img { width: 120px; height: 56px; object-fit: contain; }
.oc-term-name { font-weight: 600; font-size: 0.9375rem; }
.oc-term-count { font-size: 0.75rem; color: #6c757d; }

.oc-page-card { background: #fff; border: 1px solid #dee2e6; border-radius: 8px; padding: 1.5rem 1.75rem; max-width: 720px; }
.oc-page-card h1 { font-size: 1.625rem; margin: 0 0 1rem; }
.oc-contact-email a { font-size: 1.25rem; font-weight: 700; color: #dc3545; }

/* The logo already says "Octocoupon"; keep the site title for screen readers only */
.site-branding .main-title {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

/* ── Store landing page sections ──────────────────────────────────────────── */
.oc-store-updated { display: block; font-size: 0.75rem; color: #adb5bd; margin-top: 0.25rem; }
.oc-store-h2 { font-size: 1.125rem; font-weight: 700; color: #212529; margin: 1.5rem 0 0.75rem; }
.oc-store-section {
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    padding: 0.25rem 1.5rem 1.25rem;
    margin-bottom: 1.25rem;
    font-size: 0.9375rem;
    color: #495057;
    line-height: 1.6;
}
.oc-store-section ol, .oc-store-section ul { margin: 0 0 0 1.25rem; }
.oc-store-section li { margin-bottom: 0.375rem; }
.oc-store-faq details { border-top: 1px solid #f1f3f5; padding: 0.625rem 0; }
.oc-store-faq details:first-of-type { border-top: 0; }
.oc-store-faq summary { font-weight: 600; color: #212529; cursor: pointer; }
.oc-store-faq details p { margin: 0.5rem 0 0; }
.oc-store-expired { padding-top: 0.25rem; }
.oc-store-expired summary { cursor: pointer; }
.oc-store-expired .oc-grid { margin-top: 0.5rem; }
.oc-store-related ul { list-style: none; margin: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.oc-store-related li { margin: 0; }
.oc-store-related a {
    display: inline-block; padding: 0.375rem 0.875rem; border: 1px solid #dee2e6; border-radius: 999px;
    color: #212529; text-decoration: none; font-size: 0.875rem; background: #f8f9fa;
}
.oc-store-related a:hover { border-color: #dc3545; color: #dc3545; }
@media (max-width: 576px) { .oc-store-section { padding: 0.25rem 1rem 1rem; } }

/* WordPress turns emoji into <img class="emoji">; without this they render full-width */
img.emoji, img.wp-smiley {
    display: inline !important; width: 1em !important; height: 1em !important;
    margin: 0 0.07em !important; vertical-align: -0.1em !important; border: none !important; box-shadow: none !important;
}

/* Guide articles: brand images at a modest size, never full-width banners */
.oc-guide-figure { margin: 1.5rem 0; }
.oc-guide-figure img { display: block; width: 100%; max-width: 380px; height: auto; margin: 0 auto; border-radius: 8px; }
.single-post .featured-image img { display: block; width: auto; max-width: 100%; max-height: 420px; margin: 0 auto; }

/* Expired offer banner (single coupon) */
.oc-expired-banner {
    margin: 0 0 1rem; padding: 0.75rem 1rem; border-radius: 6px;
    background: #fff4e5; border: 1px solid #ffd8a8; color: #8a4b08; font-weight: 600;
}
.oc-expired-banner a { display: inline-block; margin-left: 0.5rem; color: #dc3545; font-weight: 600; }

/* ── Homepage sections (guides, categories, deals) ───────────────────────── */
.oc-home-section { margin: 1.75rem 0; }
.oc-home-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.oc-home-more { font-size: 0.875rem; color: #dc3545; text-decoration: none; font-weight: 600; white-space: nowrap; }
.oc-guide-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.oc-guide-card {
    display: flex; flex-direction: column; background: #fff; border: 1px solid #dee2e6; border-radius: 8px;
    overflow: hidden; text-decoration: none; color: #212529;
}
.oc-guide-card:hover { border-color: #dc3545; }
.oc-guide-thumb { display: block; aspect-ratio: 1200 / 630; background: #f8f9fa; overflow: hidden; }
.oc-guide-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.oc-guide-title { padding: 0.75rem 1rem 1rem; font-weight: 600; font-size: 0.9375rem; line-height: 1.45; }
.oc-cat-pills { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.oc-cat-pills a {
    display: inline-block; padding: 0.375rem 0.875rem; border: 1px solid #dee2e6; border-radius: 999px;
    background: #fff; color: #212529; text-decoration: none; font-size: 0.875rem;
}
.oc-cat-pills a:hover { border-color: #dc3545; color: #dc3545; }
@media (max-width: 768px) { .oc-guide-grid { grid-template-columns: 1fr; } }
