/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* Accessibility */
.skip-to-content {
    position: absolute;
    top: -40px;
    left: 0;
    background: #808080;
    color: #fff;
    padding: 0.5rem 1rem;
    text-decoration: none;
    z-index: 100;
}

.skip-to-content:focus {
    top: 0;
}

.skip-to-content:hover {
    background: #000;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

a:focus-visible {
    outline: 2px solid #0066cc;
    outline-offset: 2px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #808080;
    color: #333;
    line-height: 1.6;
}

.site {
    max-width: 800px;
    margin: 0 auto;
    background: #fff;
    border-left: 3px solid #000;
    border-right: 3px solid #000;
    min-height: 100vh;
}

.site-header {
    border-bottom: 1px solid #ddd;
    padding: 1rem 2rem;
}

.site-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: #000;
    text-decoration: none;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 0.5rem;
    margin-left: -2rem;
    margin-right: -2rem;
    padding: 1rem 2rem 0;
    border-top: 1px solid #ddd;
}

.site-nav a {
    color: #000;
    text-decoration: none;
}

.site-nav a:hover {
    text-decoration: underline;
}

.site-nav a.active {
    font-weight: bold;
    text-decoration: underline;
}

.site-nav a.nav-auth {
    margin-left: auto;
}

.site-main {
    padding: 2rem 2rem 1rem;
}

.site-footer {
    border-top: 1px solid #ddd;
    padding: 1rem 2rem;
    text-align: center;
    color: #555;
    font-size: 0.875rem;
}

/* Post list (homepage) */
article + article {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #eee;
}

article h2 a {
    color: #000;
    text-decoration: underline;
}

article h2 a:hover {
    text-decoration: underline;
}

article h1 a {
    color: #000;
    text-decoration: underline;
}

article h1 a:hover {
    text-decoration: underline;
}

article time {
    display: block;
    color: #555;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

/* Single post */
.post-content, .page-content {
    margin-top: 1rem;
}

.content h2 {
    font-size: 2em;
}

.post-content h2, .page-content h2 {
    font-size: 1.5em;
}

.post-content h3, .page-content h3 {
    font-size: 1.17em;
}

.post-content h4, .page-content h4 {
    font-size: 1em;
}

.post-content h2, .post-content h3, .post-content h4,
.page-content h2, .page-content h3, .page-content h4 {
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.post-content p, .page-content p {
    margin-bottom: 1rem;
}

.post-content a, .page-content a {
    color: #0066cc;
}

.post-content img, .page-content img {
    max-width: 100%;
    height: auto;
}

.post-content blockquote, .page-content blockquote {
    border-left: 3px solid #ddd;
    padding-left: 1rem;
    margin: 1rem 0;
    color: #555;
}

.post-content pre, .page-content pre {
    background: #f5f5f5;
    padding: 1rem;
    overflow-x: auto;
    margin: 1rem 0;
    border-radius: 3px;
}

.post-content code, .page-content code {
    font-size: 0.9em;
}

.post-content ul, .post-content ol,
.page-content ul, .page-content ol {
    padding-left: 2em;
    margin-bottom: 2.6rem;
}

.post-content iframe {
    max-width: 100%;
    margin: 1rem 0;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
    margin-left: -2rem;
    margin-right: -2rem;
    padding: 1rem 2rem 0;
    border-top: 1px solid #ddd;
}

.pagination a {
    color: #0066cc;
    text-decoration: none;
}

.pagination a:hover {
    text-decoration: underline;
}

/* Post navigation (prev/next) */
.post-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
    margin-left: -2rem;
    margin-right: -2rem;
    padding: 1rem 2rem 0;
    border-top: 1px solid #ddd;
}

.post-nav a {
    color: #0066cc;
    text-decoration: none;
    max-width: 45%;
}

.post-nav a:hover {
    text-decoration: underline;
}

/* Tag/Category list */
.post-list {
    list-style: none;
}

.post-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
}

.post-list li a {
    color: #000;
    text-decoration: none;
    font-weight: 500;
}

.post-list li a:hover {
    text-decoration: underline;
}

.post-list li time {
    display: inline;
    color: #555;
    font-size: 0.875rem;
    margin-left: 0.5rem;
}

/* Hero section */
.hero { text-align: center; padding: 4rem 2rem; }
.hero h1 { font-size: 2rem; margin-bottom: 1rem; }
.hero .subtitle { font-size: 1.2rem; color: #555; margin-bottom: 2rem; }
.cta-button { display: inline-block; background: #000; color: #fff; padding: 0.75rem 2rem; text-decoration: none; font-weight: bold; }
.cta-button:hover { background: #333; }

/* Stats bar */
.stats-bar { display: flex; justify-content: center; gap: 2rem; padding: 2rem; background: #f5f5f5; text-align: center; flex-wrap: wrap; }
.stat { }
.stat .number { font-size: 1.5rem; font-weight: bold; }
.stat .label { color: #555; font-size: 0.875rem; }

/* Feature cards */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.5rem; margin: 2rem 0; }
.feature-card { border: 1px solid #ddd; padding: 1.5rem; }
.feature-card h3 { margin-bottom: 0.5rem; }

/* Pricing */
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.5rem; margin: 2rem 0; }
.pricing-card { border: 2px solid #ddd; padding: 2rem; text-align: center; display: flex; flex-direction: column; }
.pricing-card .cta-bottom { margin-top: auto; }
.pricing-card.featured { border-color: #000; }
.pricing-card .price { font-size: 2rem; font-weight: bold; margin: 1rem 0; }
.pricing-card ul { list-style: none; text-align: left; }
.pricing-card li { padding: 0.5rem 0; border-bottom: 1px solid #eee; }
.pricing-card li::before { content: "\2713 "; font-weight: bold; }



/* Forms */
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; margin-bottom: 0.25rem; font-weight: 500; }
.form-group input { width: 100%; padding: 0.5rem; border: 1px solid #ddd; font-size: 1rem; }
.btn { display: inline-block; background: #000; color: #fff; padding: 0.5rem 1.5rem; border: none; cursor: pointer; font-size: 1rem; }
.btn:hover { background: #333; }
.error-message { color: #dc3545; margin: 1rem 0; padding: 0.75rem; border: 1px solid #dc3545; background: #fff5f5; }
.rejection-message { color: #856404; margin: 1rem 0; padding: 0.75rem; border: 1px solid #ffc107; background: #fff8e1; }

/* App shell (dashboard/app pages) */
.app-shell {
    height: 100vh;
    display: flex;
    flex-direction: column;
    background: #fff;
    overflow: hidden;
}

.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    border-bottom: 3px solid #000;
    background: #fff;
}

.app-logout {
    color: #000;
    text-decoration: none;
}

.app-logout:hover {
    text-decoration: underline;
}

.app-body {
    display: flex;
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

.app-sidebar {
    width: 200px;
    flex-shrink: 0;
    border-right: 3px solid #000;
    background: #f5f5f5;
    padding: 1rem 0;
    display: flex;
    flex-direction: column;
}

.app-sidebar a {
    display: block;
    padding: 0.5rem 1.5rem;
    color: #000;
    text-decoration: none;
}

.app-sidebar a:hover {
    background: #eee;
}

.app-sidebar a.active {
    font-weight: bold;
    background: #000;
    color: #fff;
}

.app-main {
    flex: 1;
    padding: 2rem;
    min-width: 0;
    background: #fff;
    overflow-y: auto;
}

/* Sidebar bottom link */
.app-sidebar-bottom { margin-top: auto; }

/* Profile page */
.profile-layout { display: flex; min-height: 400px; }
.profile-sidebar { width: 180px; flex-shrink: 0; border-right: 1px solid #ddd; padding: 1rem 0; display: flex; flex-direction: column; }
.profile-sidebar a { display: block; padding: 0.5rem 1.5rem; color: #000; text-decoration: none; }
.profile-sidebar a:hover { background: #f5f5f5; }
.profile-sidebar a.active { font-weight: bold; background: #000; color: #fff; }
.profile-content { flex: 1; padding: 2rem; }
.profile-content h1 { margin-bottom: 1.5rem; }
.profile-content h2 { font-size: 1.2rem; margin-bottom: 0.75rem; }
.profile-content section { margin-bottom: 2rem; }
.form-group select { width: 100%; padding: 0.5rem; border: 1px solid #ddd; font-size: 1rem; }

/* Dashboard */
.dashboard-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; flex-wrap: wrap; gap: 1rem; }
.chart-container { position: relative; width: 100%; margin-bottom: 2rem; }
.property-section { margin-top: 2rem; padding-top: 2rem; border-top: 1px solid #ddd; }
.property-form { display: flex; gap: 0.5rem; align-items: end; }
.property-form .form-group { margin-bottom: 0; flex: 1; }
.property-form input { width: 100%; }

/* Property list */
.property-item { border: 1px solid #ddd; padding: 1rem; margin-bottom: 0.75rem; }
.property-item-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; }
.property-item-info { display: flex; flex-direction: column; gap: 0.25rem; min-width: 0; }
.property-domain { font-weight: 600; font-size: 1.05rem; }
.snippet-toggle { background: none; border: none; cursor: pointer; color: #0066cc; font-size: 0.875rem; padding: 0; text-align: left; }
.snippet-toggle:hover { text-decoration: underline; }
.caret { display: inline-block; font-size: 0.7rem; transition: transform 0.15s; }
.snippet-content { margin-top: 0.75rem; }
.snippet-content pre { background: #f5f5f5; padding: 1rem; overflow-x: auto; border-radius: 3px; font-size: 0.85rem; white-space: pre; }
.btn-danger { background: #dc3545; }
.btn-danger:hover { background: #c82333; }
.btn-small { padding: 0.25rem 0.75rem; font-size: 0.875rem; }
.btn-cancel { background: #6c757d; }
.btn-cancel:hover { background: #5a6268; }

/* Delete dialog */
.delete-dialog { border: 2px solid #000; padding: 2rem; max-width: 420px; width: 90vw; }
.delete-dialog::backdrop { background: rgba(0, 0, 0, 0.5); }
.delete-dialog h3 { margin-bottom: 1rem; }
.delete-dialog p { margin-bottom: 1rem; }

/* Blog */
.blog-list { list-style: none; }
.blog-list li { padding: 1.5rem 0; border-bottom: 1px solid #eee; }
.blog-list .post-date { color: #555; font-size: 0.875rem; }
.blog-list .post-excerpt { margin-top: 0.5rem; color: #555; }

/* Comparison table */
.comparison-table { width: 100%; border-collapse: collapse; margin: 2rem 0; }
.comparison-table th, .comparison-table td { padding: 0.75rem; border: 1px solid #ddd; text-align: left; }
.comparison-table th { background: #f5f5f5; }
.comparison-table .winner { font-weight: bold; color: #28a745; }

/* Timeline */
.timeline { list-style: none; border-left: 2px solid #000; margin: 2rem 0; padding-left: 1.5rem; }
.timeline li { margin-bottom: 1.5rem; position: relative; }
.timeline li::before { content: ""; position: absolute; left: -1.8rem; top: 0.4rem; width: 10px; height: 10px; background: #000; border-radius: 50%; }

/* Team */
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.5rem; margin: 2rem 0; }
.team-card { border: 1px solid #ddd; padding: 1.5rem; text-align: center; }

/* FAQ */
.faq { margin: 2rem 0; }
.faq dt { font-weight: bold; margin-top: 1rem; }
.faq dd { margin: 0.5rem 0 0 0; color: #555; }

/* Social proof */
.social-proof { text-align: center; padding: 2rem; background: #f5f5f5; margin-top: 2rem; }
.social-proof .quote { font-style: italic; font-size: 1.1rem; }
.social-proof .attribution { margin-top: 0.5rem; color: #555; }

/* Section spacing */
.section { margin: 3rem 0; }
.section h2 { margin-bottom: 1rem; }
