/* ============================================================
   Inscend Creator Help Center — shared styles
   Matches the design system used across creator-website (index.html,
   aboutus.html): dark slate (#2f3542) ink, Inter font, card-based
   layout. Keep any changes here in sync with that palette.
   ============================================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    background-color: #ffffff;
    color: #2f3542;
    line-height: 1.6;
    margin-left: 25px;
    margin-right: 25px;
}

main {
    margin-top: 60px;
}

a {
    color: inherit;
}

img {
    max-width: 100%;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 32px;
}

/* ---------- Header (copied from index.html / aboutus.html) ---------- */
.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 32px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: white;
    z-index: 100;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: #2f3542;
    text-decoration: none;
}

.logo-img {
    width: 120px;
    height: auto;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
}

.nav-menu a {
    text-decoration: none;
    color: #6b7280;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-menu a:hover,
.nav-menu a.current {
    color: #2f3542;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 4px;
    padding: 8px;
}

.hamburger-line {
    width: 25px;
    height: 3px;
    background-color: #2f3542;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 70px; /* header height: 16px padding x2 + ~38px logo */
    left: 0;
    right: 0;
    bottom: 0;
    background: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-top: 1px solid #e5e7eb;
    overflow-y: auto;
    flex-direction: column;
    justify-content: space-between;
}

.mobile-menu.active {
    display: block;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.mobile-menu ul {
    list-style: none;
}

.mobile-menu li {
    border-bottom: 1px solid #f3f4f6;
}

.mobile-menu ul a {
    display: block;
    padding: 16px 32px;
    color: #2f3542;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.2s;
}

.mobile-menu ul a:hover {
    background-color: #f9fafb;
}

.mobile-nav-actions {
    padding: 16px 32px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: auto;
    border-top: 1px solid #f3f4f6;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    z-index: 101;
}

.btn-login {
    color: #6b7280;
    text-decoration: none;
    font-weight: 500;
}

.btn-primary,
a.btn-primary {
    background: #2f3542;
    color: white;
    padding: 12px 20px;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: background 0.2s;
    text-align: center;
    display: inline-block;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background: #1e2329;
}

.btn-secondary {
    background: white;
    color: #2f3542;
    border: 2px solid #2f3542;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    display: inline-block;
    transition: all 0.2s;
}

.btn-secondary:hover {
    background: #2f3542;
    color: white;
}

@media (max-width: 768px) {
    .nav-menu, .nav-actions { display: none; }
    .mobile-menu-toggle { display: flex; }
}

@media (min-width: 769px) {
    .mobile-menu-toggle, .mobile-menu { display: none !important; }
}

/* ---------- Breadcrumb ---------- */
.breadcrumb {
    background: #f9fafb;
    border-bottom: 1px solid #f3f4f6;
    padding: 16px 0;
}

.breadcrumb-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #6b7280;
}

.breadcrumb-list a {
    text-decoration: none;
    color: #6b7280;
    font-weight: 500;
}

.breadcrumb-list a:hover {
    color: #2f3542;
}

.breadcrumb-list li:not(:last-child)::after {
    content: '›';
    margin-left: 8px;
    color: #cbd5e1;
}

.breadcrumb-list li:last-child {
    color: #2f3542;
    font-weight: 600;
}

/* ---------- Help hub hero ---------- */
.help-hero {
    padding: 64px 0 48px;
    text-align: center;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    border-bottom: 1px solid #e5e7eb;
    margin-left: -25px;
    margin-right: -25px;
}

.help-hero-content {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 32px;
}

.help-eyebrow {
    display: inline-block;
    color: #6b7280;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.help-hero-title {
    font-size: 44px;
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 16px;
    color: #2f3542;
}

.help-hero-subtitle {
    font-size: 18px;
    color: #6b7280;
    line-height: 1.6;
}

/* ---------- Hub card grid ---------- */
.help-content {
    max-width: 1100px;
    margin: 0 auto;
    padding: 64px 32px;
}

.help-group-title {
    font-size: 24px;
    font-weight: 700;
    color: #2f3542;
    margin-bottom: 24px;
}

.help-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 56px;
}

.help-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: #f6f5f4;
    padding: 28px;
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.help-card:hover {
    background: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.help-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: #2f3542;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.help-card-title {
    font-size: 18px;
    font-weight: 600;
    color: #2f3542;
}

.help-card-desc {
    font-size: 14.5px;
    color: #6b7280;
    line-height: 1.5;
}

.help-card-steps {
    font-size: 13px;
    color: #9ca3af;
    font-weight: 600;
    margin-top: auto;
}

/* ---------- Tutorial page hero ---------- */
.tutorial-hero {
    padding: 48px 0 40px;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    border-bottom: 1px solid #e5e7eb;
    margin-left: -25px;
    margin-right: -25px;
}

.tutorial-hero-content {
    max-width: 760px;
    margin: 0 auto;
    padding: 0 32px;
}

.tutorial-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #eef2ff;
    color: #2f3542;
    font-size: 13px;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 20px;
    margin-bottom: 20px;
}

.tutorial-title {
    font-size: 38px;
    font-weight: 700;
    line-height: 1.2;
    color: #2f3542;
    margin-bottom: 16px;
}

.tutorial-subtitle {
    font-size: 17px;
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 20px;
}

.tutorial-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 13.5px;
    color: #9ca3af;
    font-weight: 500;
}

.tutorial-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* ---------- Tutorial body ---------- */
.tutorial-body {
    max-width: 760px;
    margin: 0 auto;
    padding: 48px 32px 80px;
}

.simple-summary {
    background: #f6f5f4;
    border-left: 4px solid #2f3542;
    border-radius: 8px;
    padding: 20px 24px;
    margin-bottom: 48px;
    font-size: 16px;
    color: #2f3542;
    font-weight: 500;
    line-height: 1.6;
}

.simple-summary strong {
    display: block;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #6b7280;
    font-weight: 700;
    margin-bottom: 8px;
}

.step {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid #f3f4f6;
}

.step:last-of-type {
    border-bottom: none;
}

.step-number {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: #2f3542;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    font-weight: 700;
}

.step-content {
    flex: 1;
    min-width: 0;
}

.step-title {
    font-size: 20px;
    font-weight: 700;
    color: #2f3542;
    margin-bottom: 10px;
}

.step-content p {
    font-size: 16px;
    color: #4b5563;
    margin-bottom: 12px;
}

.step-content ul {
    margin: 0 0 12px 20px;
    color: #4b5563;
    font-size: 16px;
}

.step-content li {
    margin-bottom: 8px;
}

/* ---------- Screenshot placeholder ---------- */
.screenshot-placeholder {
    width: 100%;
    min-height: 220px;
    background: linear-gradient(180deg, #fefefe 0%, #f6f8fa 100%);
    border: 2px dashed #d1d5db;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #9ca3af;
    text-align: center;
    padding: 24px;
    margin: 16px 0 20px;
}

.screenshot-placeholder i {
    font-size: 28px;
    color: #c1c7d0;
}

.screenshot-placeholder .ph-label {
    font-size: 14px;
    font-weight: 600;
    color: #6b7280;
}

.screenshot-placeholder .ph-hint {
    font-size: 12.5px;
    color: #9ca3af;
    max-width: 420px;
}

/* ---------- Actual screenshot images ---------- */
.screenshot-img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    margin: 16px 0 20px;
}

/* ---------- Tip / warning callouts ---------- */
.callout {
    display: flex;
    gap: 14px;
    border-radius: 10px;
    padding: 16px 18px;
    margin: 4px 0 20px;
    font-size: 15px;
    line-height: 1.55;
}

.callout i {
    font-size: 17px;
    margin-top: 2px;
    flex-shrink: 0;
}

.callout-tip {
    background: #ecfdf5;
    color: #065f46;
}

.callout-tip i {
    color: #10b981;
}

.callout-warning {
    background: #fffbeb;
    color: #92400e;
}

.callout-warning i {
    color: #f59e0b;
}

.callout strong {
    font-weight: 700;
}

/* ---------- Word lookup (glossary) ---------- */
.word-box {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 14px 18px;
    margin: 4px 0 20px;
    font-size: 14.5px;
    color: #4b5563;
}

.word-box b {
    color: #2f3542;
}

/* ---------- Next steps / related ---------- */
.next-steps {
    margin-top: 56px;
    padding-top: 40px;
    border-top: 1px solid #f3f4f6;
}

.next-steps-title {
    font-size: 22px;
    font-weight: 700;
    color: #2f3542;
    margin-bottom: 20px;
}

.next-steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
}

.next-step-card {
    display: block;
    background: #f6f5f4;
    padding: 20px;
    border-radius: 10px;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s;
}

.next-step-card:hover {
    background: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.next-step-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #9ca3af;
    font-weight: 700;
    margin-bottom: 6px;
}

.next-step-title {
    font-size: 15.5px;
    font-weight: 600;
    color: #2f3542;
}

/* ---------- Still stuck CTA ---------- */
.help-cta {
    margin-top: 56px;
    text-align: center;
    background: linear-gradient(135deg, #f6f5f4 0%, #e5e7eb 100%);
    padding: 40px 24px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
}

.help-cta h3 {
    font-size: 22px;
    font-weight: 700;
    color: #2f3542;
    margin-bottom: 10px;
}

.help-cta p {
    color: #6b7280;
    font-size: 15px;
    margin-bottom: 20px;
}

.help-cta-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

/* ---------- Footer (copied from latest design: index.html / aboutus.html) ---------- */
.footer {
    background: #2f3542;
    color: white;
    margin-left: -25px;
    margin-right: -25px;
    margin-top: 80px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: 80px;
    padding: 80px 0 40px 0;
}

.footer-brand {
    max-width: 300px;
}

.footer-logo {
    width: 120px;
    height: auto;
    margin-bottom: 20px;
    filter: brightness(0) invert(1);
}

.social-links {
    display: flex;
    gap: 16px;
}

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #d1d5db;
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 16px;
}

.social-link:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    transform: translateY(-2px);
}

.footer-columns {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.footer-column {
    min-width: 0;
}

.footer-title {
    font-size: 16px;
    font-weight: 600;
    color: white;
    margin-bottom: 20px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #d1d5db;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s ease;
    display: block;
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 24px 0;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.copyright {
    color: #9ca3af;
    font-size: 14px;
    margin: 0;
}

.footer-bottom-links {
    display: flex;
    gap: 24px;
}

.footer-bottom-links a {
    color: #9ca3af;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s ease;
}

.footer-bottom-links a:hover {
    color: #d1d5db;
}

@media (max-width: 1024px) {
    .footer-content { gap: 60px; padding: 60px 0 30px 0; }
    .footer-columns { gap: 30px; }
}

@media (max-width: 768px) {
    .footer-content { grid-template-columns: 1fr; gap: 40px; padding: 40px 0 30px 0; }
    .footer-columns { grid-template-columns: 1fr; gap: 30px; }
    .footer-brand { max-width: 100%; }
    .footer-bottom-content { flex-direction: column; text-align: center; }
    .footer-bottom-links { flex-wrap: wrap; justify-content: center; }
}

@media (max-width: 480px) {
    .footer-columns { grid-template-columns: 1fr; gap: 30px; }
    .footer-content { padding: 30px 0 20px 0; }
    .social-links { justify-content: center; }
    .footer-brand { text-align: center; }
}

/* ---------- Responsive tutorial/hub tweaks ---------- */
@media (max-width: 768px) {
    .help-hero { padding: 40px 0 32px; }
    .help-hero-title { font-size: 32px; }
    .help-content { padding: 40px 16px; }
    .tutorial-hero { padding: 36px 0 28px; }
    .tutorial-title { font-size: 28px; }
    .tutorial-body { padding: 36px 16px 60px; }
    .step { flex-direction: column; gap: 12px; }
}

@media (max-width: 480px) {
    .help-hero-title { font-size: 26px; }
    .tutorial-title { font-size: 24px; }
}
