/*
Theme Name: GeneratePress Child
Template: generatepress
Version: 1.0
*/

/* ============================================
   Remove sidebar — full width layout
   ============================================ */
.generate-sidebar-layout--right .site-main,
.generate-sidebar-layout--left .site-main,
.site-main {
    width: 100% !important;
    max-width: 100% !important;
}

.widget-area,
#right-sidebar,
#left-sidebar,
.secondary-navigation {
    display: none !important;
}

.site-content {
    display: block !important;
}

/* Hide page title */
.page-title,
.entry-title,
h1.entry-title,
.page .entry-header {
    display: none !important;
}

/* Remove entry padding */
.entry-content,
.page-content {
    padding: 0 !important;
    margin: 0 !important;
}

.inside-article {
    padding: 0 !important;
}

.container {
    max-width: 100% !important;
    padding: 0 !important;
}

/* ============================================
   Body & Typography
   ============================================ */
body {
    font-family: '72', '72full', Arial, Helvetica, sans-serif !important;
    font-size: 14px !important;
    color: #32363a !important;
    background-color: #f5f6f7 !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* ============================================
   Hide default GeneratePress header & nav
   ============================================ */
.site-header,
.main-navigation,
.navigation-branding,
.generate-back-to-top {
    display: none !important;
}

/* ============================================
   OTM Header — exact professional style
   ============================================ */
.otm-header {
    background: #ffffff;
    border-bottom: 1px solid #d9d9d9;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 9999;
    width: 100%;
    box-sizing: border-box;
}

.otm-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 32px;
    height: 68px;
}

/* LEFT: Logo + Nav */
.otm-header-left {
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 1;
}

/* Logo */
.otm-logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
    margin-right: 8px;
}

.otm-logo-img {
    width: 56px;
    height: 56px;
    object-fit: contain;
    border-radius: 50%;
    display: block;
}

/* Nav */
.otm-nav {
    display: flex;
    align-items: center;
}

.otm-menu {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.otm-menu li {
    margin: 0;
    padding: 0;
    list-style: none;
    position: relative;
}

.otm-menu li a {
    display: flex;
    align-items: center;
    height: 68px;
    padding: 0 14px;
    color: #32363a;
    font-size: 14px;
    font-weight: 400;
    text-decoration: none;
    white-space: nowrap;
    border-bottom: 3px solid transparent;
    transition: color 0.15s ease, border-color 0.15s ease;
    box-sizing: border-box;
}

.otm-menu li a:hover {
    color: #0070f2;
    border-bottom-color: #0070f2;
}

.otm-menu li.current-menu-item > a {
    color: #0070f2;
    font-weight: 500;
    border-bottom-color: #0070f2;
}

/* RIGHT: Social + Button */
.otm-header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.otm-social-icon {
    display: flex;
    align-items: center;
    color: #515455;
    text-decoration: none;
    transition: color 0.15s ease;
}

.otm-social-icon:hover {
    color: #0070f2;
}

.otm-join-btn {
    background-color: #0070f2;
    color: #ffffff !important;
    padding: 8px 20px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none !important;
    transition: background-color 0.15s ease;
    white-space: nowrap;
    letter-spacing: 0.1px;
}

.otm-join-btn:hover {
    background-color: #0050b3 !important;
    color: #ffffff !important;
}

/* ============================================
   Hero Banner
   ============================================ */
.wp-block-cover,
.wp-block-cover-image {
    width: 100% !important;
    min-height: 340px !important;
    background-color: #0070f2 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 60px 40px !important;
    box-sizing: border-box !important;
}

.wp-block-cover__inner-container,
.wp-block-cover .wp-block-cover__inner-container {
    max-width: 800px !important;
    text-align: center !important;
}

.wp-block-cover p,
.wp-block-cover h1,
.wp-block-cover h2,
.wp-block-cover__inner-container * {
    color: #ffffff !important;
}

/* ============================================
   Content Cards — 3 column feature section
   ============================================ */
.wp-block-columns {
    max-width: 1200px !important;
    margin: 48px auto !important;
    padding: 0 32px !important;
    gap: 24px !important;
}

.wp-block-column {
    background: #ffffff !important;
    border: 1px solid #e8e8e8 !important;
    border-radius: 8px !important;
    padding: 32px 24px !important;
    text-align: center !important;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04) !important;
}

/* ============================================
   Footer
   ============================================ */
.site-footer {
    background: #32363a !important;
    color: #ffffff !important;
    text-align: center !important;
    padding: 24px !important;
    font-size: 13px !important;
}

.site-footer a {
    color: #b0b8bf !important;
}

/* ============================================
   Mobile
   ============================================ */
@media (max-width: 768px) {
    .otm-menu {
        display: none !important;
    }
    .otm-header-inner {
        padding: 0 16px !important;
    }
    .otm-logo-img {
        width: 48px !important;
        height: 48px !important;
    }
}

/* Force full width — no sidebar */
body .site-content,
body .content-template-default,
body #page,
body .hentry,
body .site-main,
body #primary,
body .content-area {
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
    margin-right: 0 !important;
    padding-right: 0 !important;
}

body #secondary,
body .widget-area,
body aside.widget-area {
    display: none !important;
    width: 0 !important;
}

/* Fix hero full width */
body .wp-block-cover,
body .wp-block-cover-image {
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    background-color: #0070f2 !important;
}

/* Login Button */
.otm-login-btn {
    color: #0070f2 !important;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none !important;
    padding: 8px 16px;
    border: 1px solid #0070f2;
    border-radius: 4px;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.otm-login-btn:hover {
    background-color: #f0f4ff;
    color: #0050b3 !important;
}

/* User Greeting */
.otm-user-menu {
    position: relative;
    display: flex;
    align-items: center;
}

.otm-user-greeting {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #32363a !important;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none !important;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.otm-user-greeting:hover {
    background-color: #f5f6f7;
}

/* Dropdown */
.otm-user-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: #ffffff;
    border: 1px solid #e8e8e8;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    min-width: 160px;
    z-index: 9999;
    overflow: hidden;
}

.otm-user-dropdown a {
    display: block;
    padding: 12px 16px;
    color: #32363a !important;
    font-size: 14px;
    text-decoration: none !important;
    transition: background-color 0.15s ease;
    border-bottom: 1px solid #f0f0f0;
}

.otm-user-dropdown a:last-child {
    border-bottom: none;
}

.otm-user-dropdown a:hover {
    background-color: #f5f6f7;
    color: #0070f2 !important;
}

.otm-user-menu:hover .otm-user-dropdown {
    display: block;
}
 /* =============================================================
   OTM INSIGHTS — Book CSS
   Add this entire block to:
   /var/www/otminsights/wp-content/themes/generatepress-child/style.css

   CUSTOMISE HERE — change these 8 variables to match your site.
   Everything else inherits from them automatically.
   ============================================================= */

:root {
  --otm-accent:        #0a66c2;   /* Primary blue — matches LinkedIn blue used on site   */
  --otm-accent-dark:   #084e96;   /* Hover/active state for links and buttons            */
  --otm-accent-light:  #e8f1fb;   /* Light blue tint — callout box backgrounds           */
  --otm-text:          #2c2c2c;   /* Main body text                                      */
  --otm-text-muted:    #5f6368;   /* Secondary text, captions                            */
  --otm-heading:       #1a1a2e;   /* Chapter headings                                    */
  --otm-border:        #dce3ea;   /* Table borders, dividers                             */
  --otm-bg-header:     #0a2540;   /* Chapter header banner background (dark navy)        */
  --otm-bg-header-text:#ffffff;   /* Chapter header banner text                          */
  --otm-font-body:     -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
                        "Helvetica Neue", Arial, sans-serif;
  --otm-font-mono:     "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  --otm-max-width:     820px;     /* Readable line length for long-form content          */
  --otm-radius:        6px;       /* Border radius for boxes and tables                  */
}


/* =============================================================
   OUTER WRAPPER — constrains all book content to readable width
   ============================================================= */

.otm-book-content {
  font-family:    var(--otm-font-body);
  font-size:      1.0625rem;        /* 17px — comfortable reading size */
  line-height:    1.8;
  color:          var(--otm-text);
  max-width:      var(--otm-max-width);
  margin:         0 auto;
  padding:        0 1rem;
  word-break:     break-word;
  overflow-wrap:  break-word;
}


/* =============================================================
   CHAPTER HEADER BANNER
   The title block at the top of every chapter/section page
   ============================================================= */

.otm-book-content .otm-chapter-header {
  background:     var(--otm-bg-header);
  color:          var(--otm-bg-header-text);
  border-radius:  var(--otm-radius);
  padding:        2rem 2.5rem;
  margin-bottom:  2.5rem;
  margin-top:     0.5rem;
  border-left:    5px solid var(--otm-accent);
}

.otm-book-content .otm-chapter-header p {
  margin:         0 0 0.35rem 0;
  line-height:    1.4;
}

.otm-book-content .otm-chapter-header strong {
  font-size:      1.75rem;
  font-weight:    700;
  color:          var(--otm-bg-header-text);
  display:        block;
  letter-spacing: -0.01em;
}

.otm-book-content .otm-chapter-header em {
  font-size:      1rem;
  font-weight:    400;
  color:          rgba(255,255,255,0.75);
  font-style:     italic;
}


/* =============================================================
   HEADINGS
   ============================================================= */

.otm-book-content h2 {
  font-size:      1.5rem;
  font-weight:    700;
  color:          var(--otm-heading);
  margin:         2.5rem 0 0.75rem;
  line-height:    1.3;
  padding-bottom: 0.4rem;
  border-bottom:  2px solid var(--otm-accent-light);
}

.otm-book-content h3 {
  font-size:      1.2rem;
  font-weight:    600;
  color:          var(--otm-heading);
  margin:         2rem 0 0.5rem;
  line-height:    1.35;
}

.otm-book-content h4 {
  font-size:      1rem;
  font-weight:    600;
  color:          var(--otm-accent);
  margin:         1.5rem 0 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size:      0.875rem;
}


/* =============================================================
   BODY TEXT
   ============================================================= */

.otm-book-content p {
  margin:         0 0 1.25rem;
  line-height:    1.8;
}

.otm-book-content strong {
  font-weight:    600;
  color:          var(--otm-heading);
}

.otm-book-content em {
  font-style:     italic;
}


/* =============================================================
   LINKS
   ============================================================= */

.otm-book-content a,
.otm-book-content a:visited {
  color:            var(--otm-accent);
  text-decoration:  underline;
  text-underline-offset: 2px;
}

.otm-book-content a:hover {
  color:            var(--otm-accent-dark);
}

/* Reference links — styled slightly differently */
.otm-book-content a.otm-ref-link {
  font-family:      var(--otm-font-mono);
  font-size:        0.85em;
  word-break:       break-all;
}


/* =============================================================
   LISTS
   ============================================================= */

.otm-book-content ul,
.otm-book-content ol {
  margin:         0 0 1.25rem 1.5rem;
  padding:        0;
}

.otm-book-content li {
  margin-bottom:  0.5rem;
  line-height:    1.7;
}

.otm-book-content ul li::marker {
  color:          var(--otm-accent);
}


/* =============================================================
   CALLOUT / DEFINITION BOXES
   Used for "Definition:", "Best Practice:", Oracle quotes etc.
   ============================================================= */

.otm-book-content .otm-callout-box {
  background:     var(--otm-accent-light);
  border-left:    4px solid var(--otm-accent);
  border-radius:  0 var(--otm-radius) var(--otm-radius) 0;
  padding:        1.25rem 1.5rem;
  margin:         2rem 0;
  font-size:      0.975rem;
  line-height:    1.7;
}

.otm-book-content .otm-callout-box strong:first-child {
  display:        block;
  color:          var(--otm-accent-dark);
  font-size:      0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom:  0.6rem;
}

.otm-book-content .otm-callout-box p {
  margin-bottom:  0.6rem;
}

.otm-book-content .otm-callout-box p:last-child {
  margin-bottom:  0;
}

/* Quote-style callout (italic content without a bold label) */
.otm-book-content .otm-callout-box > em:only-child,
.otm-book-content .otm-callout-box > p > em {
  font-size:      1.05rem;
  color:          var(--otm-heading);
}


/* =============================================================
   TABLES  (Glossary, comparison tables, data tables)
   ============================================================= */

.otm-book-content .otm-table {
  width:            100%;
  border-collapse:  collapse;
  font-size:        0.9375rem;
  margin:           1.75rem 0;
  border-radius:    var(--otm-radius);
  overflow:         hidden;
  box-shadow:       0 1px 3px rgba(0,0,0,0.08);
}

.otm-book-content .otm-table thead th {
  background:     var(--otm-bg-header);
  color:          var(--otm-bg-header-text);
  font-weight:    600;
  text-align:     left;
  padding:        0.75rem 1rem;
  font-size:      0.875rem;
  letter-spacing: 0.02em;
}

.otm-book-content .otm-table td {
  padding:        0.7rem 1rem;
  border-bottom:  1px solid var(--otm-border);
  vertical-align: top;
  line-height:    1.6;
}

.otm-book-content .otm-table td:first-child {
  font-weight:    600;
  color:          var(--otm-heading);
  white-space:    nowrap;
  min-width:      160px;
}

.otm-book-content .otm-table tr:nth-child(even) td {
  background:     #f8fafc;
}

.otm-book-content .otm-table tr:hover td {
  background:     var(--otm-accent-light);
  transition:     background 0.15s ease;
}

/* Mobile: make tables scrollable */
.otm-book-content .otm-table-wrap {
  overflow-x:     auto;
  -webkit-overflow-scrolling: touch;
  margin:         1.75rem 0;
}


/* =============================================================
   BLOCKQUOTES
   ============================================================= */

.otm-book-content blockquote {
  margin:         1.75rem 0;
  padding:        1rem 1.5rem;
  border-left:    4px solid var(--otm-accent);
  background:     #f8f9fa;
  border-radius:  0 var(--otm-radius) var(--otm-radius) 0;
  font-style:     italic;
  color:          var(--otm-text-muted);
}


/* =============================================================
   HORIZONTAL RULES
   ============================================================= */

.otm-book-content hr {
  border:         none;
  border-top:     2px solid var(--otm-border);
  margin:         2.5rem 0;
}


/* =============================================================
   CODE / MONOSPACE  (for OTM config strings, field names etc.)
   ============================================================= */

.otm-book-content code {
  font-family:    var(--otm-font-mono);
  font-size:      0.875em;
  background:     #f1f3f5;
  padding:        0.15em 0.4em;
  border-radius:  3px;
  color:          #c7254e;
}

.otm-book-content pre {
  background:     #1e2a3a;
  color:          #e8edf2;
  padding:        1.25rem 1.5rem;
  border-radius:  var(--otm-radius);
  overflow-x:     auto;
  font-family:    var(--otm-font-mono);
  font-size:      0.875rem;
  line-height:    1.6;
  margin:         1.75rem 0;
}


/* =============================================================
   CHAPTER NAVIGATION BAR
   Prev / Next links shown at bottom of each chapter page
   ============================================================= */

.otm-chapter-nav {
  display:        flex;
  justify-content:space-between;
  align-items:    center;
  margin:         3rem 0 1rem;
  padding:        1.25rem 1.5rem;
  background:     #f8fafc;
  border:         1px solid var(--otm-border);
  border-radius:  var(--otm-radius);
  gap:            1rem;
}

.otm-chapter-nav a {
  color:          var(--otm-accent);
  font-weight:    600;
  text-decoration:none;
  font-size:      0.9375rem;
  display:        flex;
  align-items:    center;
  gap:            0.4rem;
}

.otm-chapter-nav a:hover {
  color:          var(--otm-accent-dark);
  text-decoration:underline;
}

.otm-chapter-nav .otm-nav-label {
  font-size:      0.75rem;
  color:          var(--otm-text-muted);
  display:        block;
  font-weight:    400;
}


/* =============================================================
   DYNAMIC WATERMARK  (injected by anti-piracy JS)
   ============================================================= */

.otm-watermark-overlay {
  position:       fixed;
  top:            0;
  left:           0;
  width:          100%;
  height:         100%;
  pointer-events: none;
  z-index:        9999;
  overflow:       hidden;
}

.otm-watermark-overlay canvas {
  position:       absolute;
  top:            0;
  left:           0;
  opacity:        0.055;     /* Visible but not distracting — adjust 0.03–0.08 */
}


/* =============================================================
   UPGRADE PROMPT  (shown to free members on locked chapters)
   ============================================================= */

.otm-upgrade-prompt {
  background:     linear-gradient(135deg, var(--otm-bg-header) 0%, #0d3b6e 100%);
  color:          white;
  padding:        2.5rem 2rem;
  border-radius:  var(--otm-radius);
  text-align:     center;
  margin:         2rem 0;
}

.otm-upgrade-prompt h3 {
  font-size:      1.4rem;
  font-weight:    700;
  margin:         0 0 0.75rem;
  color:          white;
}

.otm-upgrade-prompt p {
  color:          rgba(255,255,255,0.85);
  margin:         0 0 1.5rem;
}

.otm-upgrade-prompt a {
  display:        inline-block;
  background:     var(--otm-accent);
  color:          white;
  padding:        0.75rem 2rem;
  border-radius:  50px;
  font-weight:    600;
  text-decoration:none;
  font-size:      1rem;
  transition:     background 0.2s;
}

.otm-upgrade-prompt a:hover {
  background:     var(--otm-accent-dark);
  color:          white;
  text-decoration:none;
}


/* =============================================================
   RESPONSIVE — Mobile adjustments
   ============================================================= */

@media (max-width: 640px) {
  .otm-book-content {
    font-size:    1rem;
    padding:      0 0.75rem;
  }

  .otm-book-content .otm-chapter-header {
    padding:      1.5rem 1.25rem;
    margin-bottom:1.75rem;
  }

  .otm-book-content .otm-chapter-header strong {
    font-size:    1.4rem;
  }

  .otm-book-content h2 {
    font-size:    1.3rem;
  }

  .otm-book-content h3 {
    font-size:    1.1rem;
  }

  .otm-book-content .otm-table {
    display:      block;
    overflow-x:   auto;
    white-space:  nowrap;
  }

  .otm-book-content .otm-table td:first-child {
    min-width:    120px;
  }

  .otm-chapter-nav {
    flex-direction: column;
    align-items:  flex-start;
    gap:          0.75rem;
  }
}

/* Anti-piracy — disable text selection on book pages */
body .otm-book-content,
body .otm-book-content p,
body .otm-book-content h2,
body .otm-book-content h3,
body .otm-book-content h4,
body .otm-book-content li,
body .otm-book-content td,
body .otm-book-content th,
body .otm-book-content div {
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
    user-select: none !important;
}
