/* ==========================================================================
   DKCOURSES PLATFORM - EXECUTIVE AI SUITE
   Scoped CSS for GeneratePress and WordPress
   ========================================================================== */

.dk-wp-container {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: #1e293b;
  line-height: 1.6;
  max-width: 1000px;
  margin: 0 auto;
  box-sizing: border-box;
}
.dk-wp-container * {
  box-sizing: border-box;
}
.dk-wp-box {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 28px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
}
.dk-wp-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.dk-wp-badge-indigo { background: #eef2ff; color: #4338ca; border: 1px solid #c7d2fe; }
.dk-wp-badge-purple { background: #faf5ff; color: #7e22ce; border: 1px solid #e9d5ff; }
.dk-wp-badge-amber { background: #fffbeb; color: #b45309; border: 1px solid #fde68a; }
.dk-wp-badge-emerald { background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0; }
.dk-wp-badge-rose { background: #fff1f2; color: #be123c; border: 1px solid #fecdd3; }
.dk-wp-badge-cyan { background: #ecfeff; color: #0e7490; border: 1px solid #a5f3fc; }

.dk-wp-title {
  font-size: 26px;
  font-weight: 900;
  color: #0f172a;
  line-height: 1.3;
  margin: 12px 0 8px 0;
}
.dk-wp-subtitle {
  font-size: 15px;
  color: #475569;
  margin-bottom: 16px;
}
.dk-wp-objective {
  background: linear-gradient(135deg, #eef2ff 0%, #faf5ff 100%);
  border: 1px solid #c7d2fe;
  border-radius: 12px;
  padding: 16px;
  font-size: 13px;
  color: #1e1b4b;
}

.dk-wp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  margin-top: 12px;
}
.dk-wp-table th {
  background: #f8fafc;
  padding: 12px;
  text-align: left;
  border-bottom: 2px solid #e2e8f0;
  font-weight: 800;
  color: #475569;
  text-transform: uppercase;
  font-size: 11px;
}
.dk-wp-table td {
  padding: 12px;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: top;
}
.dk-wp-table tr:hover { background: #f8fafc; }

.dk-wp-details {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 14px 18px;
  margin-top: 12px;
  transition: all 0.2s ease;
}
.dk-wp-details[open] {
  background: #ffffff;
  border-color: #cbd5e1;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}
.dk-wp-summary {
  cursor: pointer;
  font-weight: 700;
  color: #1e293b;
  display: flex;
  align-items: center;
  justify-content: space-between;
  list-style: none;
}
.dk-wp-summary::-webkit-details-marker { display: none; }

.dk-wp-btn-copy {
  background: #4f46e5;
  color: #ffffff;
  border: none;
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease;
}
.dk-wp-btn-copy:hover { background: #4338ca; }

.dk-wp-prompt-card {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 14px;
  background: #ffffff;
}
.dk-wp-prompt-pre {
  background: #0f172a;
  color: #e2e8f0;
  padding: 16px;
  border-radius: 12px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
  margin: 10px 0 0 0;
  user-select: all;
}

.dk-wp-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.75);
  z-index: 99999;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.dk-wp-modal.active { display: flex; }
.dk-wp-modal-card {
  background: #ffffff;
  border-radius: 16px;
  max-width: 720px;
  width: 100%;
  padding: 36px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
  border: 6px double #4338ca;
  text-align: center;
  position: relative;
}

@media print {
  body * {
    visibility: hidden;
  }
  .dk-wp-modal.active, .dk-wp-modal.active * {
    visibility: visible;
  }
  .dk-wp-modal.active {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    padding: 0;
  }
  .dk-wp-modal-card {
    border: 4px double #1e1b4b;
    box-shadow: none;
    max-width: 100%;
    width: 100%;
    margin: 0;
  }
  .dk-wp-modal-close, .dk-wp-no-print {
    display: none !important;
  }
}

/* ==========================================================================
   GENERATEPRESS THEME COMPATIBILITY & 100% FULL-SCREEN MOBILE OVERRIDES
   ========================================================================== */
.dkcourses-active-page,
.dkcourses-active-page body {
  overflow-x: hidden !important;
  width: 100% !important;
  max-width: 100vw !important;
}

.dkcourses-active-page .site-content,
.dkcourses-active-page .entry-content,
.dkcourses-active-page .inside-article,
.dkcourses-active-page .grid-container,
.dkcourses-active-page #page,
.dkcourses-active-page #content,
.dkcourses-active-page .site-main {
  max-width: 100% !important;
  width: 100% !important;
  overflow-x: hidden !important;
  box-sizing: border-box !important;
}

/* On mobile devices, remove theme container padding for true edge-to-edge 100% screen experience */
@media (max-width: 768px) {
  html, body {
    overflow-x: hidden !important;
    width: 100% !important;
    max-width: 100vw !important;
    margin: 0 !important;
    padding: 0 !important;
    -webkit-text-size-adjust: 100%;
  }

  .dkcourses-active-page .site-content,
  .dkcourses-active-page .entry-content,
  .dkcourses-active-page .inside-article,
  .dkcourses-active-page .grid-container,
  .dkcourses-active-page .content-area {
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 100% !important;
    max-width: 100vw !important;
    overflow-x: hidden !important;
  }

  /* Hide default page title on GeneratePress so app starts at top */
  .dkcourses-active-page .entry-header {
    display: none !important;
  }
}

