/* WorkWizrd.com */
:root {
    --primary: #ff6d5a;
    --primary-dark: #e85a48;
    --accent: #10b981;
    --text: #1f2937;
    --text-light: #6b7280;
    --bg: #ffffff;
    --bg-alt: #f9fafb;
    --bg-dark: #0f172a;
    --border: #e5e7eb;
    --card-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

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

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

/* Header */
header {
    background: var(--bg-dark);
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: "Geist Mono", "Geist Mono Fallback", monospace;
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
}

.logo span { color: var(--primary); }

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: #d1d5db;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-links a:hover { color: #fff; }

/* Main */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* Hero */
.hero {
    text-align: center;
    padding: 3rem 2rem 2.5rem;
    background: var(--bg-dark);
    color: #fff;
    margin: -2rem -2rem 2rem -2rem;
}

.hero-pill {
    display: inline-block;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.15);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    color: #d1d5db;
    margin-bottom: 0.5rem;
}

.hero-subtitle {
    font-size: 0.9rem;
    color: #6b7280;
    margin-bottom: 1.25rem;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    margin-top: 2rem;
}

.hero-stat {
    text-align: center;
}

.hero-stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    font-family: 'SF Mono', 'Fira Code', monospace;
}

.hero-stat-label {
    font-size: 0.8rem;
    color: #6b7280;
    margin-top: 0.15rem;
}

.hero h1 {
    font-family: "Geist Mono", "Geist Mono Fallback", monospace;
    font-size: 2.75rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    line-height: 1.15;
    letter-spacing: -0.5px;
}

.hero h1 span {
    color: var(--primary);
}

.hero p {
    font-size: 1.05rem;
    color: #9ca3af;
    max-width: 550px;
    margin: 0 auto 1.25rem auto;
    line-height: 1.5;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 1.25rem;
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.hero-btn-primary {
    background: var(--primary);
    color: #fff;
}

.hero-btn-primary:hover {
    background: var(--primary-dark);
}

.hero-btn-secondary {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255,255,255,0.2);
}

.hero-btn-secondary:hover {
    background: rgba(255,255,255,0.05);
    border-color: rgba(255,255,255,0.3);
}

/* Search Box */
.search-box {
    max-width: 500px;
    margin: 1.5rem auto 0;
    position: relative;
}

.search-box input {
    width: 100%;
    padding: 1rem 1.5rem;
    padding-right: 3.5rem;
    border: 2px solid rgba(255,255,255,0.2);
    border-radius: 12px;
    background: rgba(255,255,255,0.08);
    color: #fff;
    font-size: 1rem;
    outline: none;
    transition: all 0.2s;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.search-box input::placeholder {
    color: #9ca3af;
}

.search-box input:focus {
    border-color: var(--primary);
    background: rgba(255,255,255,0.12);
    box-shadow: 0 4px 25px rgba(255,109,90,0.2);
}

.search-box .search-icon {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary);
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    margin-top: 0.5rem;
    max-height: 400px;
    overflow-y: auto;
    z-index: 100;
    display: none;
}

.search-results.active {
    display: block;
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1rem;
    text-decoration: none;
    color: var(--text);
    border-bottom: 1px solid var(--border);
    transition: background 0.2s;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item:hover {
    background: var(--bg-alt);
}

.search-result-item img {
    width: 50px;
    height: 35px;
    object-fit: cover;
    border-radius: 4px;
}

.search-result-item .result-info h4 {
    font-size: 0.9rem;
    margin: 0;
}

.search-result-item .result-info span {
    font-size: 0.8rem;
    color: var(--text-light);
}

/* Category Pills */
.category-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-top: 2rem;
}

.category-pill {
    background: rgba(255,255,255,0.1);
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    text-decoration: none;
    font-size: 0.9rem;
    transition: background 0.2s;
}

.category-pill:hover {
    background: var(--primary);
}

/* Workflow Grid */
.workflow-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

a.workflow-card {
    display: block;
    text-decoration: none;
    color: inherit;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

a.workflow-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.1);
}

a.workflow-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    background: var(--bg-dark);
}

a.workflow-card .info {
    padding: 1.25rem;
}

a.workflow-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    line-height: 1.4;
    color: var(--text);
}

a.workflow-card:hover h3 {
    color: var(--primary);
}

.card-desc {
    color: var(--text-light);
    font-size: 0.85rem;
    line-height: 1.4;
    margin-top: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.category-tag {
    display: inline-block;
    background: var(--bg-alt);
    color: var(--text-light);
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
}

/* Workflow Page */
.workflow-page {
    max-width: 900px;
    margin: 0 auto;
}

.workflow-header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.workflow-header img {
    width: 100%;
    border-radius: 12px;
    background: var(--bg-dark);
}

.workflow-header .details h1 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.workflow-header .stats {
    display: flex;
    gap: 1.5rem;
    margin: 1rem 0;
}

.workflow-header .stat {
    text-align: center;
}

.workflow-header .stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.workflow-header .stat-label {
    font-size: 0.8rem;
    color: var(--text-light);
}

.cta-btn {
    display: inline-block;
    background: var(--primary);
    color: #fff;
    padding: 1rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    margin-top: 1rem;
    transition: background 0.2s;
}

.cta-btn:hover {
    background: var(--primary-dark);
}

/* Share buttons */
.share-buttons {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border);
}

.share-label {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-right: 0.25rem;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: var(--bg-alt);
    color: var(--text-light);
    text-decoration: none;
    border: 1px solid var(--border);
    cursor: pointer;
    transition: all 0.2s;
}

.share-btn:hover {
    background: var(--bg-dark);
    color: #fff;
    border-color: var(--bg-dark);
}

.share-btn.share-x:hover { background: #000; border-color: #000; }
.share-btn.share-linkedin:hover { background: #0077b5; border-color: #0077b5; }
.share-btn.share-facebook:hover { background: #1877f2; border-color: #1877f2; }
.share-btn.share-copy:hover { background: var(--accent); border-color: var(--accent); }
.share-btn.share-native:hover { background: var(--primary); border-color: var(--primary); }

.share-btn.share-copy {
    width: auto;
    padding: 0 0.75rem;
    gap: 0.375rem;
}

.share-btn .copy-text {
    font-size: 0.75rem;
    font-weight: 500;
}

@media (max-width: 600px) {
    .share-buttons {
        flex-wrap: wrap;
    }
    .share-label {
        width: 100%;
        margin-bottom: 0.25rem;
    }
}

.workflow-content {
    background: var(--bg-alt);
    padding: 2rem;
    border-radius: 12px;
    margin: 2rem 0;
}

.workflow-content h2 {
    margin-bottom: 1rem;
}

.workflow-content h3 {
    margin: 1.5rem 0 0.75rem 0;
    color: var(--text);
}

.workflow-content p {
    margin-bottom: 1rem;
}

.workflow-content ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.workflow-content li {
    margin-bottom: 0.5rem;
}

/* Section Headers */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 3rem 0 1.5rem 0;
}

.section-header h2 {
    font-size: 1.5rem;
}

.section-header a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

/* Suggested Workflows */
.suggested-section {
    margin-top: 2rem;
}

.suggested-section h2 {
    margin-bottom: 1rem;
}

.suggested-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem;
}

.suggested-card {
    display: block;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
}

.suggested-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

.suggested-card img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    background: var(--bg-dark);
}

.suggested-info {
    padding: 0.75rem;
}

.suggested-info h4 {
    font-size: 0.9rem;
    color: var(--text);
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.suggested-info .creator {
    font-size: 0.8rem;
    color: var(--text-light);
}

/* Blog Styles */
.blog-index {
    max-width: 900px;
    margin: 0 auto;
}

.page-header {
    text-align: center;
    margin-bottom: 3rem;
    background: var(--bg);
    padding: 2rem 0;
}

.page-header h1 {
    font-family: "Geist Mono", monospace;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.page-header p {
    color: var(--text-light);
    font-size: 1.1rem;
}

.blog-grid {
    display: grid;
    gap: 1.5rem;
}

.blog-card {
    display: block;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s;
}

.blog-card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.blog-card.featured {
    background: linear-gradient(135deg, #fef3f2 0%, #fff 100%);
    border-color: var(--primary);
}

.blog-category {
    display: inline-block;
    background: var(--bg-alt);
    color: var(--text-light);
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

.blog-card h2 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.blog-card p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 0.75rem;
}

.blog-meta {
    font-size: 0.85rem;
    color: var(--text-light);
}

.blog-cta {
    text-align: center;
    margin-top: 4rem;
    padding: 3rem;
    background: var(--bg-alt);
    border-radius: 16px;
}

.blog-cta h2 {
    margin-bottom: 0.5rem;
}

.blog-cta p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

/* Blog Post */
.blog-post {
    max-width: 750px;
    margin: 0 auto;
}

.post-header {
    margin-bottom: 2rem;
    background: var(--bg);
}

.post-header h1 {
    font-family: "Geist Mono", monospace;
    font-size: 2.25rem;
    line-height: 1.2;
    margin: 0.75rem 0;
    color: var(--text);
}

.post-category {
    display: inline-block;
    background: var(--primary);
    color: #fff;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.post-meta {
    color: var(--text-light);
    font-size: 0.9rem;
}

.post-content {
    font-size: 1.05rem;
    line-height: 1.8;
}

.post-content .lead {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.post-content h2 {
    font-size: 1.5rem;
    margin: 2.5rem 0 1rem;
    padding-top: 1rem;
}

.post-content h3 {
    font-size: 1.25rem;
    margin: 2rem 0 0.75rem;
}

.post-content h4 {
    font-size: 1.1rem;
    margin: 1.5rem 0 0.5rem;
}

.post-content p {
    margin-bottom: 1.25rem;
}

.post-content ul, .post-content ol {
    margin-bottom: 1.25rem;
    padding-left: 1.5rem;
}

.post-content li {
    margin-bottom: 0.5rem;
}

.post-content a {
    color: var(--primary);
    text-decoration: none;
}

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

.post-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 0.95rem;
}

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

.post-content th {
    background: var(--bg-alt);
    font-weight: 600;
}

.code-example {
    background: var(--bg-dark);
    border-radius: 8px;
    padding: 1rem;
    margin: 1.5rem 0;
    overflow-x: auto;
}

.code-example pre {
    margin: 0;
    color: #e5e7eb;
    font-family: 'SF Mono', 'Fira Code', monospace;
    font-size: 0.9rem;
    line-height: 1.5;
}

.cta-box {
    background: linear-gradient(135deg, #fef3f2 0%, #fff 100%);
    border: 1px solid var(--primary);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    margin: 2.5rem 0;
}

.cta-box h3 {
    margin-bottom: 0.5rem;
}

.cta-box p {
    color: var(--text-light);
    margin-bottom: 1rem;
}

.post-footer {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.post-footer h3 {
    margin-bottom: 1.5rem;
}

.related-posts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.related-post {
    display: block;
    padding: 1rem;
    background: var(--bg-alt);
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s;
}

.related-post:hover {
    background: var(--bg-dark);
    color: #fff;
}

.related-post h4 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.related-post p {
    font-size: 0.85rem;
    color: var(--text-light);
    margin: 0;
}

.related-post:hover p {
    color: #9ca3af;
}

/* Footer */
footer {
    background: var(--bg-dark);
    color: #9ca3af;
    padding: 2rem;
    margin-top: 4rem;
    text-align: center;
}

footer a {
    color: #d1d5db;
    text-decoration: none;
}

/* Breadcrumb */
.breadcrumb {
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.breadcrumb a {
    color: var(--text-light);
    text-decoration: none;
}

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

/* Burger Menu */
.burger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    padding: 5px;
}

.burger span {
    width: 25px;
    height: 3px;
    background: #fff;
    border-radius: 2px;
    transition: 0.3s;
}

/* Creator Info */
.creator-info {
    color: var(--text-light);
    font-size: 0.95rem;
    margin: 1rem 0;
}

.creator-info strong {
    color: var(--text);
}

/* Integrations List */
.integrations {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1rem 0;
}

.integration-tag {
    background: var(--bg-dark);
    color: #fff;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.8rem;
}

/* Affiliate Disclosure */
.affiliate-disclosure {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

/* Secondary CTA */
.cta-secondary {
    display: inline-block;
    background: var(--primary);
    color: #fff;
    padding: 1rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    margin-top: 1.5rem;
    transition: background 0.2s;
}

.cta-secondary:hover {
    background: var(--primary-dark);
}

/* Floating Mobile CTA */
.floating-cta {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg);
    border-top: 1px solid var(--border);
    padding: 1rem;
    z-index: 1000;
    box-shadow: 0 -4px 12px rgba(0,0,0,0.1);
}

.floating-cta a {
    display: block;
    background: var(--primary);
    color: #fff;
    text-align: center;
    padding: 1rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
}

.floating-cta a:hover {
    background: var(--primary-dark);
}

/* Responsive */
@media (max-width: 768px) {
    .burger {
        display: flex;
    }

    .search-box {
        margin-left: 1rem;
        margin-right: 1rem;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-dark);
        flex-direction: column;
        padding: 1rem 2rem;
        gap: 0;
        border-top: 1px solid #374151;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        padding: 0.75rem 0;
        border-bottom: 1px solid #374151;
    }

    .nav-links a:last-child {
        border-bottom: none;
    }

    .header-inner {
        position: relative;
    }

    .workflow-header {
        grid-template-columns: 1fr;
    }

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

    .hero {
        padding: 3rem 1rem;
    }

    .hero-stats {
        gap: 1.5rem;
    }

    .hero-stat-value {
        font-size: 1.25rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .hero-btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }

    main {
        padding: 1rem;
    }

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

    .suggested-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .floating-cta {
        display: block;
    }

    .workflow-page {
        padding-bottom: 80px;
    }
}

/* Filters */
.filters {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    align-items: center;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-group label {
    font-size: 0.9rem;
    color: var(--text-light);
}

.filter-group select {
    padding: 0.5rem 1rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--bg);
    color: var(--text);
    font-size: 0.9rem;
    cursor: pointer;
}

.filter-group select:focus {
    outline: none;
    border-color: var(--primary);
}

.page-description {
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 1rem;
}
