/* ============================================================
   PastePro SaaS - Public Site Styles (JustPaste.it-inspired)
   Yellow header + Red accents + Clean white content
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
    --pp-yellow: #FFD500;
    --pp-yellow-dark: #E6BF00;
    --pp-red: #E2231A;
    --pp-red-dark: #B81B14;
    --pp-red-light: #FEE2E2;
    --pp-text: #1a1a1a;
    --pp-muted: #6b7280;
    --pp-bg: #f9fafb;
    --pp-border: #e5e7eb;
    --pp-shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
    --pp-shadow: 0 4px 12px rgba(0,0,0,0.06);
    --pp-shadow-lg: 0 12px 28px rgba(0,0,0,0.10);
    --pp-radius: 0.5rem;
    --pp-radius-lg: 0.75rem;
}

* { box-sizing: border-box; }

body {
    background-color: var(--pp-bg);
    color: var(--pp-text);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-size: 15px;
    line-height: 1.6;
    margin: 0;
}

main { flex: 1 0 auto; }

/* ---------- Navbar (Yellow like JustPaste.it) ---------- */
.navbar {
    background: var(--pp-yellow) !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    padding: 0.65rem 0;
    border-bottom: 2px solid var(--pp-yellow-dark);
}

.navbar-brand {
    font-weight: 800;
    letter-spacing: -0.5px;
    font-size: 1.4rem;
    color: var(--pp-red) !important;
}

.navbar-brand i { color: var(--pp-red); }

.navbar .nav-link {
    color: var(--pp-text) !important;
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0.5rem 0.9rem !important;
    border-radius: var(--pp-radius);
    transition: all 0.15s;
}

.navbar .nav-link:hover {
    background: rgba(226, 35, 26, 0.08);
    color: var(--pp-red) !important;
}

.navbar .nav-link.active {
    background: var(--pp-red);
    color: #fff !important;
}

/* Navbar buttons (red like JustPaste.it) */
.navbar .btn-red {
    background: var(--pp-red);
    color: #fff;
    font-weight: 600;
    border: none;
    padding: 0.45rem 1.1rem;
    border-radius: var(--pp-radius);
    box-shadow: 0 2px 6px rgba(226, 35, 26, 0.25);
    transition: all 0.15s;
    font-size: 0.875rem;
}
.navbar .btn-red:hover {
    background: var(--pp-red-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(226, 35, 26, 0.35);
    color: #fff;
}

.navbar .btn-outline-red {
    background: transparent;
    color: var(--pp-red);
    font-weight: 600;
    border: 2px solid var(--pp-red);
    padding: 0.35rem 1rem;
    border-radius: var(--pp-radius);
    transition: all 0.15s;
    font-size: 0.875rem;
}
.navbar .btn-outline-red:hover {
    background: var(--pp-red);
    color: #fff;
}

.navbar .btn-yellow-icon {
    background: var(--pp-red);
    color: #fff;
    border: none;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    box-shadow: 0 2px 6px rgba(226, 35, 26, 0.25);
    transition: all 0.15s;
}
.navbar .btn-yellow-icon:hover {
    background: var(--pp-red-dark);
    transform: translateY(-1px) scale(1.05);
    color: #fff;
}

/* ---------- Hero ---------- */
.hero {
    background: linear-gradient(180deg, #FFFBEB 0%, var(--pp-bg) 100%);
    padding-top: 3rem !important;
    padding-bottom: 2rem !important;
}

.hero h1 {
    font-weight: 800;
    letter-spacing: -1px;
    color: var(--pp-text);
}

.hero h1 i { color: var(--pp-red); }

/* ---------- Cards ---------- */
.card {
    border: 1px solid var(--pp-border);
    box-shadow: var(--pp-shadow-sm);
    border-radius: var(--pp-radius);
    background: #fff;
    transition: all 0.2s ease;
}

.card:hover { box-shadow: var(--pp-shadow); }

.note-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    overflow: hidden;
    text-decoration: none;
}
.note-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--pp-shadow-lg) !important;
    border-color: var(--pp-yellow);
}
.note-card .card-title { color: var(--pp-text); font-weight: 600; }
.note-card:hover .card-title { color: var(--pp-red); }

/* ---------- Note content ---------- */
.note-content {
    font-family: 'Fira Code', 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
    font-size: 14px;
    line-height: 1.6;
    white-space: pre-wrap;
    word-wrap: break-word;
    overflow-x: auto;
    max-height: 70vh;
}

.note-content-rendered {
    padding: 1.5rem;
    line-height: 1.8;
    color: var(--pp-text);
}

/* ---------- Buttons (Professional, JustPaste.it-style) ---------- */
.btn {
    font-weight: 500;
    border-radius: var(--pp-radius);
    padding: 0.55rem 1.25rem;
    transition: all 0.15s;
    font-size: 0.9rem;
    border: none;
    cursor: pointer;
}

.btn-red, .btn-primary {
    background: var(--pp-red);
    color: #fff;
    box-shadow: 0 2px 6px rgba(226, 35, 26, 0.2);
}
.btn-red:hover, .btn-primary:hover {
    background: var(--pp-red-dark);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(226, 35, 26, 0.3);
}

.btn-yellow {
    background: var(--pp-yellow);
    color: var(--pp-text);
    font-weight: 600;
    box-shadow: 0 2px 6px rgba(255, 213, 0, 0.3);
}
.btn-yellow:hover {
    background: var(--pp-yellow-dark);
    color: var(--pp-text);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 213, 0, 0.4);
}

.btn-dark {
    background: #1f2937;
    color: #fff;
}
.btn-dark:hover {
    background: #111827;
    color: #fff;
    transform: translateY(-1px);
}

.btn-outline-secondary {
    background: #fff;
    color: var(--pp-text);
    border: 1px solid var(--pp-border);
}
.btn-outline-secondary:hover {
    background: #f3f4f6;
    color: var(--pp-text);
    border-color: #d1d5db;
}

.btn-outline-red {
    background: #fff;
    color: var(--pp-red);
    border: 2px solid var(--pp-red);
    font-weight: 500;
}
.btn-outline-red:hover {
    background: var(--pp-red);
    color: #fff;
}

.btn-success {
    background: #10b981;
    color: #fff;
    box-shadow: 0 2px 6px rgba(16, 185, 129, 0.2);
}
.btn-success:hover {
    background: #059669;
    color: #fff;
    transform: translateY(-1px);
}

.btn-warning {
    background: var(--pp-yellow);
    color: var(--pp-text);
    font-weight: 600;
}
.btn-warning:hover {
    background: var(--pp-yellow-dark);
    color: var(--pp-text);
}

.btn-danger {
    background: var(--pp-red);
    color: #fff;
}
.btn-danger:hover {
    background: var(--pp-red-dark);
    color: #fff;
}

.btn-lg {
    padding: 0.85rem 2rem;
    font-size: 1.05rem;
    font-weight: 700;
    border-radius: var(--pp-radius-lg);
}

.btn-sm {
    font-size: 0.8rem;
    padding: 0.35rem 0.75rem;
}

/* ---------- Pricing CTA ---------- */
.pricing-cta {
    background: linear-gradient(135deg, #FFFBEB 0%, #FEF3C7 100%);
    border-radius: var(--pp-radius-lg);
    border: 2px solid var(--pp-yellow);
}

/* ---------- Code blocks ---------- */
pre {
    background: #1f2937;
    color: #e5e7eb;
    padding: 1.25rem;
    border-radius: var(--pp-radius);
    overflow-x: auto;
    font-size: 0.85rem;
    line-height: 1.6;
    margin: 0;
}

code {
    background: #f3f4f6;
    padding: 0.15rem 0.4rem;
    border-radius: 3px;
    font-size: 0.9em;
    color: var(--pp-red);
}

pre code { background: transparent; color: inherit; padding: 0; }

/* ---------- Footer ---------- */
.footer {
    flex-shrink: 0;
    background: #1f2937;
    color: #9ca3af;
    padding: 2.5rem 0;
}

.footer a {
    color: #d1d5db;
    transition: color 0.15s;
}
.footer a:hover { color: var(--pp-yellow); }

/* ---------- Tables ---------- */
.table > :not(caption) > * > * { padding: 0.75rem 1rem; }

/* ---------- Badges ---------- */
.badge { font-weight: 500; padding: 0.4em 0.7em; border-radius: 0.375rem; font-size: 0.75rem; }

/* ---------- Loading spinner ---------- */
.pp-spinner {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: pp-spin 0.6s linear infinite;
}
@keyframes pp-spin { to { transform: rotate(360deg); } }

/* ---------- Alerts ---------- */
.alert {
    border-radius: var(--pp-radius);
    border: none;
    padding: 0.85rem 1.25rem;
    font-size: 0.9rem;
}
.alert-success { background: #d1fae5; color: #065f46; }
.alert-danger { background: var(--pp-red-light); color: var(--pp-red-dark); }
.alert-warning { background: #fef3c7; color: #92400e; }
.alert-info { background: #dbeafe; color: #1e40af; }

/* ---------- Blog cards (professional, fixed-size) ---------- */
.blog-card-pro {
    border: 1px solid var(--pp-border);
    border-radius: var(--pp-radius-lg);
    background: #fff;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    display: flex;
    flex-direction: column;
}
.blog-card-pro:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.10) !important;
    border-color: var(--pp-yellow);
}

.blog-card-pro-img {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #f3f4f6;
}
.blog-card-pro-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}
.blog-card-pro:hover .blog-card-pro-img img {
    transform: scale(1.05);
}
.blog-card-pro-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--pp-yellow) 0%, var(--pp-yellow-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 3rem;
}
.blog-card-pro-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    color: #fff;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.blog-card-pro-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.blog-card-pro-title a { color: var(--pp-text); }
.blog-card-pro-title a:hover { color: var(--pp-red); }

.blog-card-pro-excerpt {
    color: var(--pp-muted);
    font-size: 0.875rem;
    line-height: 1.5;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card-pro-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 0.75rem;
    border-top: 1px solid var(--pp-border);
    font-size: 0.75rem;
    color: var(--pp-muted);
}
.blog-card-pro-meta span { display: inline-flex; align-items: center; gap: 4px; }
.blog-card-pro-meta i { color: var(--pp-red); }

/* ---------- Legacy blog cards (kept for blog listing page) ---------- */
.blog-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    overflow: hidden;
}
.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--pp-shadow-lg) !important;
    border-color: var(--pp-yellow);
}
.blog-card-img-wrap {
    height: 180px;
    overflow: hidden;
    background: #f3f4f6;
}
.blog-card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.blog-card:hover .blog-card-img-wrap img { transform: scale(1.05); }
.blog-card-img-placeholder {
    background: linear-gradient(135deg, var(--pp-yellow) 0%, var(--pp-yellow-dark) 100%);
    color: #fff;
}

.blog-card-featured {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    overflow: hidden;
    border: 2px solid transparent;
}
.blog-card-featured:hover {
    transform: translateY(-2px);
    border-color: var(--pp-red);
}

/* ---------- Blog post content ---------- */
.blog-post-content {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--pp-text);
}
.blog-post-content h2 { margin-top: 2rem; margin-bottom: 1rem; font-weight: 700; }
.blog-post-content h3 { margin-top: 1.5rem; margin-bottom: 0.75rem; font-weight: 600; }
.blog-post-content p { margin-bottom: 1.25rem; }
.blog-post-content ul, .blog-post-content ol { margin-bottom: 1.25rem; padding-left: 2rem; }
.blog-post-content li { margin-bottom: 0.5rem; }
.blog-post-content blockquote {
    border-left: 4px solid var(--pp-red);
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    background: #fef3c7;
    color: #78350f;
    font-style: italic;
    border-radius: 0 8px 8px 0;
}
.blog-post-content pre {
    background: #1f2937;
    color: #e5e7eb;
    padding: 1.25rem;
    border-radius: 8px;
    overflow-x: auto;
    margin: 1.5rem 0;
    font-size: 0.9rem;
    line-height: 1.5;
}
.blog-post-content code { background: #f3f4f6; padding: 0.15rem 0.4rem; border-radius: 3px; font-size: 0.9em; color: var(--pp-red); }
.blog-post-content pre code { background: transparent; color: inherit; padding: 0; }
.blog-post-content img { max-width: 100%; height: auto; border-radius: 8px; margin: 1.5rem 0; }
.blog-post-content a { color: var(--pp-red); text-decoration: underline; text-underline-offset: 2px; }
.blog-post-content a:hover { color: var(--pp-red-dark); }
.blog-post-content table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; }
.blog-post-content th, .blog-post-content td { border: 1px solid var(--pp-border); padding: 0.75rem 1rem; text-align: left; }
.blog-post-content th { background: #f9fafb; font-weight: 600; }
.blog-post-content hr { border: 0; border-top: 1px solid var(--pp-border); margin: 2rem 0; }

.blog-post-thumbnail { overflow: hidden; border-radius: var(--pp-radius-lg); box-shadow: var(--pp-shadow); }
.blog-comments-list .card { transition: background 0.15s; }
.blog-comments-list .card:hover { background: #fafbfc; }

/* ---------- Note code block ---------- */
.note-code-block {
    border-radius: var(--pp-radius);
    overflow: hidden;
    border: 1px solid var(--pp-border);
}
.note-code-header {
    background: #1f2937;
    padding: 0.5rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ---------- Section dividers ---------- */
.section-divider {
    display: flex;
    align-items: center;
    margin: 3rem 0 2rem;
    text-align: center;
}
.section-divider::before,
.section-divider::after {
    content: '';
    flex: 1;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--pp-border), transparent);
}
.section-divider span {
    padding: 0 1.5rem;
    font-weight: 700;
    color: var(--pp-text);
    font-size: 1.4rem;
}
.section-divider span i { color: var(--pp-red); margin-right: 0.5rem; }

/* ---------- JustPaste.it-style editor page ---------- */
.editor-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 1.5rem;
    margin-top: 1rem;
}

@media (max-width: 992px) {
    .editor-layout { grid-template-columns: 1fr; }
}

.editor-main {
    background: #fff;
    border-radius: var(--pp-radius-lg);
    box-shadow: var(--pp-shadow);
    overflow: hidden;
    border: 1px solid var(--pp-border);
}

.editor-title-input {
    border: none;
    border-bottom: 2px solid var(--pp-border);
    border-radius: 0;
    padding: 1rem 1.5rem;
    font-size: 1.25rem;
    font-weight: 600;
    width: 100%;
}
.editor-title-input:focus {
    outline: none;
    border-bottom-color: var(--pp-red);
    box-shadow: none;
}

.editor-sidebar {
    background: #fff;
    border-radius: var(--pp-radius-lg);
    box-shadow: var(--pp-shadow);
    border: 1px solid var(--pp-border);
    overflow: hidden;
}

.editor-sidebar-tabs {
    display: flex;
    border-bottom: 2px solid var(--pp-border);
    background: #f9fafb;
}
.editor-sidebar-tab {
    flex: 1;
    padding: 0.75rem 0.5rem;
    text-align: center;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--pp-muted);
    cursor: pointer;
    border: none;
    background: transparent;
    border-bottom: 3px solid transparent;
    transition: all 0.15s;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.editor-sidebar-tab:hover { color: var(--pp-text); background: rgba(0,0,0,0.03); }
.editor-sidebar-tab.active {
    color: var(--pp-red);
    border-bottom-color: var(--pp-red);
    background: #fff;
}

.editor-sidebar-section {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--pp-border);
}
.editor-sidebar-section:last-child { border-bottom: none; }
.editor-sidebar-section h6 {
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--pp-text);
    margin-bottom: 0.75rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.editor-sidebar-section h6 i { transition: transform 0.2s; }
.editor-sidebar-section.collapsed h6 i { transform: rotate(-90deg); }
.editor-sidebar-section.collapsed .section-body { display: none; }

.editor-radio {
    display: flex;
    align-items: center;
    padding: 0.5rem 0;
    cursor: pointer;
    font-size: 0.875rem;
    color: var(--pp-text);
}
.editor-radio input { margin-right: 0.6rem; accent-color: var(--pp-red); }
.editor-radio:hover { color: var(--pp-red); }

.publish-bar {
    padding: 1.25rem 1.5rem;
    background: #f9fafb;
    border-top: 1px solid var(--pp-border);
    text-align: center;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
    .hero h1 { font-size: 1.85rem; }
    .hero { padding-top: 2rem !important; }
    .section-divider span { font-size: 1.15rem; }
}
