/* Smart Notebook subpages — Dark theme matching portfolio */

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-primary: #0a0a0f;
    --bg-card: rgba(255, 255, 255, 0.04);
    --bg-card-hover: rgba(255, 255, 255, 0.07);
    --bg-glass: rgba(255, 255, 255, 0.06);
    --border-subtle: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.15);
    --text-primary: #f0f0f5;
    --text-secondary: rgba(240, 240, 245, 0.6);
    --text-muted: rgba(240, 240, 245, 0.35);
    --accent: #60a5fa;
    --accent-dark: #3B82F6;
    --accent-glow: rgba(59, 130, 246, 0.12);
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Sora', 'Inter', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

.bg-wrapper {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
}

.bg-gradient {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 60% 40% at 50% -10%, rgba(59, 130, 246, 0.1), transparent), radial-gradient(ellipse 50% 30% at 80% 60%, rgba(96, 165, 250, 0.05), transparent), var(--bg-primary);
}

.noise-overlay {
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
    pointer-events: none;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 60px 24px 40px;
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 14px 0;
    background: rgba(10, 10, 15, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-subtle);
}

.nav-inner {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-logo {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: linear-gradient(135deg, #3B82F6, #60a5fa);
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-logo svg {
    width: 16px;
    height: 16px;
    color: #fff;
}

.nav-brand-text {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 15px;
}

.nav-links {
    display: flex;
    gap: 8px;
}

.nav-links a {
    font-size: 13px;
    font-weight: 500;
    padding: 8px 14px;
    border-radius: 8px;
    color: var(--text-secondary);
    transition: all 0.3s;
}

.nav-links a:hover {
    color: var(--text-primary);
    background: var(--bg-card);
}

.page-header {
    text-align: center;
    padding-top: 80px;
    margin-bottom: 48px;
}

.page-icon {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    background: linear-gradient(135deg, #3B82F6, #60a5fa);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    box-shadow: 0 8px 32px var(--accent-glow);
}

.page-icon svg {
    width: 32px;
    height: 32px;
    color: #fff;
}

.page-title {
    font-family: var(--font-display);
    font-size: clamp(28px, 5vw, 36px);
    font-weight: 700;
    margin-bottom: 12px;
    background: linear-gradient(135deg, #3B82F6, #60a5fa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-subtitle {
    font-size: 16px;
    color: var(--text-secondary);
    max-width: 560px;
    margin: 0 auto;
}

.card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
    padding: 36px 32px;
    margin-bottom: 20px;
}

.card-title {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.card-title::before {
    content: '';
    width: 4px;
    height: 22px;
    background: var(--accent);
    border-radius: 2px;
    flex-shrink: 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 28px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    background: var(--bg-glass);
    border: 1px solid var(--border-subtle);
    border-radius: 14px;
}

.feature-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    margin-top: 6px;
    flex-shrink: 0;
}

.feature-text {
    font-size: 14px;
    color: var(--text-secondary);
}

.feature-text strong {
    color: var(--text-primary);
    display: block;
    margin-bottom: 4px;
}

.links-grid {
    display: grid;
    gap: 12px;
}

.link-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    background: var(--bg-glass);
    border: 1px solid var(--border-subtle);
    border-radius: 14px;
    transition: all 0.3s;
}

.link-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
    transform: translateY(-2px);
}

.link-name {
    font-weight: 600;
    font-size: 15px;
    color: var(--accent);
}

.link-desc {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 2px;
}

.link-arrow {
    color: var(--accent);
    font-size: 18px;
    transition: transform 0.3s;
}

.link-card:hover .link-arrow {
    transform: translateX(4px);
}

.legal-body h2 {
    font-size: 20px;
    font-weight: 600;
    margin-top: 36px;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-subtle);
}

.legal-body p,
.legal-body li {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 12px;
}

.legal-body ul {
    padding-left: 20px;
    margin-bottom: 16px;
}

.legal-body li {
    margin-bottom: 8px;
}

.legal-body a {
    color: var(--accent);
    text-decoration: underline;
}

.legal-body strong {
    color: var(--text-primary);
}

.last-updated {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 32px;
}

.coming-soon-badge {
    display: inline-block;
    padding: 8px 20px;
    font-size: 13px;
    font-weight: 600;
    color: var(--accent);
    background: var(--accent-glow);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 50px;
    margin-top: 8px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: var(--text-secondary);
    margin-top: 32px;
    transition: color 0.3s;
}

.back-link:hover {
    color: var(--accent);
}

.page-footer {
    text-align: center;
    padding: 24px 0;
    margin-top: 40px;
    border-top: 1px solid var(--border-subtle);
}

.page-footer p {
    font-size: 13px;
    color: var(--text-muted);
}

@media (max-width: 640px) {
    .container {
        padding: 40px 16px 24px;
    }

    .card {
        padding: 24px 20px;
    }

    .page-header {
        padding-top: 60px;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }
}