/* MarkForge Website Styles */
/* Modern, clean design with purple accent color */

:root {
    --color-primary: #6B46C1; /* Purple accent */
    --color-primary-dark: #553C9A;
    --color-primary-light: #8B5CF6;
    --color-text: #1F2937;
    --color-text-light: #6B7280;
    --color-bg: #FFFFFF;
    --color-bg-light: #F9FAFB;
    --color-border: #E5E7EB;
    --color-success: #10B981;
    --spacing-unit: 1rem;
    --max-width: 1200px;
    --border-radius: 8px;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-bg);
    font-size: 16px;
}

/* Header & Navigation */
header {
    background-color: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}

nav {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
    list-style: none;
}

.nav-links a {
    color: var(--color-text);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--color-primary);
}

.lang-switcher {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.lang-switcher a {
    padding: 0.25rem 0.75rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-size: 0.875rem;
    transition: all 0.2s;
}

.lang-switcher a.active {
    background-color: var(--color-primary);
    color: white;
}

.lang-switcher a:not(.active) {
    color: var(--color-text-light);
}

.lang-switcher a:not(.active):hover {
    background-color: var(--color-bg-light);
    color: var(--color-text);
}

/* Main Content */
main {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 2rem;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 4rem 2rem;
    background: linear-gradient(135deg, var(--color-bg-light) 0%, var(--color-bg) 100%);
    border-radius: var(--border-radius);
    margin-bottom: 4rem;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--color-text);
    line-height: 1.2;
}

.hero .subtitle {
    font-size: 1.25rem;
    color: var(--color-text-light);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: var(--color-primary);
    color: white;
    text-decoration: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 1.125rem;
    transition: all 0.2s;
    box-shadow: var(--shadow-md);
}

.cta-button:hover {
    background-color: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* App Store Badge */
.app-store-link {
    display: inline-block;
    transition: transform 0.2s, opacity 0.2s;
}

.app-store-link:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

.app-store-badge {
    height: 48px;
    width: auto;
}

@media (max-width: 768px) {
    .app-store-badge {
        height: 40px;
    }
}

/* Features Section */
.features {
    margin: 4rem 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--color-text);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.feature-card {
    background-color: var(--color-bg);
    padding: 2rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--color-border);
    transition: all 0.2s;
}

.feature-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--color-text);
}

.feature-card p {
    color: var(--color-text-light);
}

/* Screenshots Section */
.screenshots {
    margin: 4rem 0;
}

/* Featured Hero Screenshot */
.screenshot-hero {
    margin-bottom: 4rem;
    animation: fadeInUp 0.8s ease-out;
}

.screenshot-hero .screenshot-item.featured {
    margin-bottom: 1.5rem;
}

.screenshot-hero .screenshot-caption {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
    padding: 2rem;
}

.screenshot-hero .screenshot-caption h3 {
    font-size: 1.75rem;
    margin: 1rem 0 0.5rem 0;
    color: var(--color-text);
}

.screenshot-hero .screenshot-caption p {
    font-size: 1.125rem;
    color: var(--color-text-light);
}

/* Screenshot Categories */
.screenshot-category {
    margin: 4rem 0;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.screenshot-category.visible {
    opacity: 1;
    transform: translateY(0);
}

.category-title {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 2rem;
    color: var(--color-text);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.category-icon {
    font-size: 2rem;
}

/* Screenshots Grid */
.screenshots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

/* Asymmetric Grid */
.screenshots-grid.asymmetric {
    grid-template-columns: 2fr 1fr;
}

.screenshots-grid.asymmetric .screenshot-item.large {
    grid-row: span 2;
}

/* Screenshot Items */
.screenshot-item {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    background: var(--color-bg);
}

.screenshot-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.2);
}

/* macOS Window Chrome */
.window-chrome {
    background: linear-gradient(180deg, #e8e8e8 0%, #d1d1d1 100%);
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 1px solid #b8b8b8;
    position: relative;
}

.window-controls {
    display: flex;
    gap: 0.5rem;
}

.window-controls .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.2);
}

.window-controls .dot.red {
    background: linear-gradient(180deg, #ff5f57 0%, #e0443e 100%);
}

.window-controls .dot.yellow {
    background: linear-gradient(180deg, #ffbd2e 0%, #e09c00 100%);
}

.window-controls .dot.green {
    background: linear-gradient(180deg, #28c840 0%, #20a034 100%);
}

.window-title {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.8rem;
    font-weight: 500;
    color: #4a4a4a;
}

/* Screenshot Overlays */
.screenshot-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(107, 70, 193, 0.95) 0%, rgba(139, 92, 246, 0.95) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 2rem;
}

.screenshot-item:hover .screenshot-overlay {
    opacity: 1;
}

.overlay-content {
    text-align: center;
    color: white;
}

.overlay-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.overlay-content p {
    font-size: 1rem;
    opacity: 0.95;
}

/* Screenshot Captions */
.screenshot-item .screenshot-caption {
    padding: 1rem;
    text-align: center;
}

.screenshot-item .screenshot-caption p {
    margin: 0.5rem 0 0 0;
    font-size: 0.9rem;
    color: var(--color-text-light);
}

/* Badges */
.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background-color: var(--color-bg-light);
    color: var(--color-text);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-primary {
    background-color: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
}

.badge-code {
    background-color: #1F2937;
    color: #10B981;
    border-color: #1F2937;
}

/* Screenshot Images */
.screenshot-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: opacity 0.3s ease;
}

.screenshot-item:hover img {
    opacity: 0.95;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Lightbox Modal */
.lightbox {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    animation: fadeIn 0.3s;
}

.lightbox.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    margin: auto;
    animation: zoomIn 0.3s;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 90vh;
    width: auto;
    height: auto;
    border-radius: var(--border-radius);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
    z-index: 1001;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    border: none;
}

.lightbox-close:hover {
    color: #fff;
    background-color: rgba(107, 70, 193, 0.9);
    transform: scale(1.1);
}

/* Lightbox Navigation Buttons */
.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: #f1f1f1;
    border: none;
    font-size: 60px;
    font-weight: bold;
    cursor: pointer;
    padding: 20px 25px;
    z-index: 1001;
    transition: all 0.2s;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    user-select: none;
}

.lightbox-nav:hover {
    background-color: rgba(107, 70, 193, 0.9);
    color: #fff;
    transform: translateY(-50%) scale(1.1);
}

.lightbox-nav:active {
    transform: translateY(-50%) scale(0.95);
}

.lightbox-prev {
    left: 30px;
}

.lightbox-next {
    right: 30px;
}

@media (max-width: 768px) {
    .lightbox-nav {
        font-size: 40px;
        padding: 15px 20px;
    }

    .lightbox-prev {
        left: 10px;
    }

    .lightbox-next {
        right: 10px;
    }

    .lightbox-close {
        top: 10px;
        right: 10px;
        width: 40px;
        height: 40px;
        font-size: 30px;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Content Pages */
.content-page {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
}

.content-page h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--color-text);
}

.content-page h2 {
    font-size: 2rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--color-text);
    border-bottom: 2px solid var(--color-primary);
    padding-bottom: 0.5rem;
}

.content-page h3 {
    font-size: 1.5rem;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--color-text);
}

.content-page p {
    margin-bottom: 1rem;
    color: var(--color-text);
}

.content-page ul,
.content-page ol {
    margin-left: 2rem;
    margin-bottom: 1rem;
}

.content-page li {
    margin-bottom: 0.5rem;
    color: var(--color-text);
}

.content-page code {
    background-color: var(--color-bg-light);
    padding: 0.125rem 0.375rem;
    border-radius: 4px;
    font-family: 'Monaco', 'Menlo', 'Courier New', monospace;
    font-size: 0.875em;
    color: var(--color-primary);
}

.content-page pre {
    background-color: var(--color-bg-light);
    padding: 1rem;
    border-radius: var(--border-radius);
    overflow-x: auto;
    margin-bottom: 1rem;
    border: 1px solid var(--color-border);
}

.content-page pre code {
    background-color: transparent;
    padding: 0;
    color: var(--color-text);
}

.content-page blockquote {
    border-left: 4px solid var(--color-primary);
    padding-left: 1rem;
    margin: 1rem 0;
    color: var(--color-text-light);
    font-style: italic;
}

.content-page table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
}

.content-page table th,
.content-page table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid var(--color-border);
}

.content-page table th {
    background-color: var(--color-bg-light);
    font-weight: 600;
}

/* Footer */
footer {
    background-color: var(--color-bg-light);
    border-top: 1px solid var(--color-border);
    margin-top: 4rem;
    padding: 2rem;
}

.footer-content {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.footer-links a {
    color: var(--color-text-light);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--color-primary);
}

.copyright {
    color: var(--color-text-light);
    font-size: 0.875rem;
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }

/* Responsive Design */
@media (max-width: 768px) {
    nav {
        padding: 0.75rem 1rem;
        gap: 0.5rem;
        flex-direction: row !important;
        flex-wrap: wrap;
    }

    .logo {
        font-size: 1.25rem;
    }

    .nav-links {
        flex-direction: row !important;
        gap: 0.5rem;
        font-size: 0.875rem;
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none; /* Firefox */
        -ms-overflow-style: none; /* IE/Edge */
    }

    .nav-links li {
        flex-shrink: 0;
    }

    .nav-links::-webkit-scrollbar {
        display: none; /* Chrome/Safari */
    }

    .nav-links a {
        white-space: nowrap;
        font-size: 0.8rem;
        padding: 0.25rem 0.5rem;
    }

    .lang-switcher {
        flex-shrink: 0;
    }

    .lang-switcher a {
        padding: 0.25rem 0.5rem;
        font-size: 0.75rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero .subtitle {
        font-size: 1rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .screenshots-grid {
        grid-template-columns: 1fr;
    }

    /* Mobile: Asymmetric grid wird normal */
    .screenshots-grid.asymmetric {
        grid-template-columns: 1fr;
    }

    .screenshots-grid.asymmetric .screenshot-item.large {
        grid-row: span 1;
    }

    .category-title {
        font-size: 1.5rem;
    }

    .screenshot-hero .screenshot-caption h3 {
        font-size: 1.5rem;
    }

    .screenshot-hero .screenshot-caption p {
        font-size: 1rem;
    }

    .overlay-content h3 {
        font-size: 1.25rem;
    }

    .overlay-content p {
        font-size: 0.9rem;
    }

    .window-chrome {
        padding: 0.5rem 0.75rem;
    }

    .window-controls .dot {
        width: 10px;
        height: 10px;
    }

    .window-title {
        font-size: 0.7rem;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    main {
        padding: 1rem;
    }

    .content-page {
        padding: 1rem;
    }

    .whats-new .features-grid {
        grid-template-columns: 1fr;
    }

    .version-block {
        padding: 1.5rem;
    }
}

/* What's New Section */
.whats-new {
    background: linear-gradient(135deg, rgba(107, 70, 193, 0.05) 0%, rgba(59, 130, 246, 0.05) 100%);
    border: 2px solid var(--color-primary);
    border-radius: var(--border-radius);
    padding: 3rem 2rem;
    margin: 3rem 0;
    position: relative;
}

.new-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--color-primary) 0%, #3B82F6 100%);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
    box-shadow: 0 4px 12px rgba(107, 70, 193, 0.3);
}

.whats-new .section-title {
    margin-top: 0.5rem;
    margin-bottom: 2rem;
}

.feature-card.highlight {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(249, 250, 251, 0.9) 100%);
    border: 2px solid var(--color-primary);
    transform: translateY(0);
    transition: all 0.3s ease;
}

.feature-card.highlight:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(107, 70, 193, 0.2);
    border-color: #3B82F6;
}

.feature-card.highlight .feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-button-secondary {
    display: inline-block;
    background-color: transparent;
    color: var(--color-primary);
    padding: 0.875rem 2rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    border: 2px solid var(--color-primary);
    margin-top: 2rem;
}

.cta-button-secondary:hover {
    background-color: var(--color-primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(107, 70, 193, 0.3);
}

/* Changelog Page */
.changelog {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem;
}

.version-block {
    background-color: white;
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.version-block:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.version-block.latest {
    border: 2px solid var(--color-primary);
    background: linear-gradient(135deg, rgba(107, 70, 193, 0.02) 0%, rgba(59, 130, 246, 0.02) 100%);
}

.version-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.version-header h2 {
    margin: 0;
    font-size: 2rem;
    color: var(--color-text);
}

.version-date {
    color: var(--color-text-light);
    font-size: 1rem;
    font-weight: 500;
}

.version-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.version-badge.new {
    background: linear-gradient(135deg, var(--color-primary) 0%, #3B82F6 100%);
    color: white;
}

.changes-section {
    margin-bottom: 2rem;
}

.changes-section:last-child {
    margin-bottom: 0;
}

.changes-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--color-text);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.changes-list {
    list-style: none;
    padding-left: 0;
}

.changes-list li {
    padding: 0.75rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--color-text);
    line-height: 1.6;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.changes-list li:last-child {
    border-bottom: none;
}

.changes-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--color-primary);
    font-weight: bold;
    font-size: 1.5rem;
    line-height: 1.2;
}

.changes-list li strong {
    color: var(--color-primary);
    font-weight: 600;
}

/* Active Navigation Link */
nav a.active {
    color: var(--color-primary);
    font-weight: 600;
}

