/* ================================
   App Introduction Blog Post Styles
   Polished, modern app showcase design
   ================================ */

/* ========== Hero Section ========== */
.app-hero-section {
    padding: 140px 0 60px;
    background: var(--color-background, #fff);
    border-bottom: 1px solid var(--color-border, #e0e0e0);
}

.app-hero-inner {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    gap: 2rem;
}

.app-hero-icon {
    width: 128px;
    height: 128px;
    border-radius: 28px;
    flex-shrink: 0;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.app-hero-text {
    flex: 1;
    min-width: 0;
}

.app-hero-title {
    font-size: 2rem;
    font-weight: 600;
    color: var(--color-primary, #000);
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
    line-height: 1.3;
}

.app-hero-subtitle {
    font-size: 0.9375rem;
    color: var(--color-secondary, #666);
    font-weight: 300;
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

.app-hero-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.app-hero-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--color-accent, #fafafa);
    border: 1px solid var(--color-border, #e0e0e0);
    font-size: 0.75rem;
    color: var(--color-secondary, #666);
    font-weight: 400;
    letter-spacing: 0.02em;
}

.app-hero-rating {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.8125rem;
}

.app-hero-rating .stars {
    color: #FFB800;
    letter-spacing: 1px;
}

.app-hero-rating .count {
    color: var(--color-text-light, #999);
    font-size: 0.75rem;
}

.app-hero-download {
    margin-top: 1.25rem;
}

.app-hero-download img {
    height: 40px;
    width: auto;
}

/* ========== Screenshot Gallery ========== */
.app-screenshots-section {
    max-width: 100%;
    overflow: hidden;
    padding: 3rem 0;
    background: var(--color-accent, #fafafa);
    border-bottom: 1px solid var(--color-border, #e0e0e0);
}

.app-screenshots-track {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding: 0 max(1.5rem, calc((100vw - 800px) / 2));
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.app-screenshots-track::-webkit-scrollbar {
    display: none;
}

.app-screenshots-track img {
    height: 500px;
    width: auto;
    border-radius: 16px;
    flex-shrink: 0;
    scroll-snap-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

.app-screenshots-track img:hover {
    transform: scale(1.02);
}

/* ========== Article Content ========== */
.app-article {
    max-width: 800px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
}

.app-article .lead {
    font-size: 1.25rem;
    line-height: 2;
    color: var(--color-primary, #000);
    font-weight: 300;
    margin-bottom: 2.5rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid var(--color-border, #e0e0e0);
}

.app-article h2 {
    font-size: 1.375rem;
    font-weight: 600;
    margin: 3rem 0 1.25rem;
    color: var(--color-primary, #000);
    letter-spacing: -0.01em;
}

.app-article h2:first-of-type {
    margin-top: 0;
}

.app-article p {
    font-size: 1.0625rem;
    line-height: 1.9;
    color: var(--color-text, #1a1a1a);
    margin-bottom: 1.5rem;
    font-weight: 300;
}

.app-article ul {
    margin: 0 0 1.5rem 0;
    padding: 0;
    list-style: none;
}

.app-article ul li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
    font-size: 1rem;
    line-height: 1.8;
    color: var(--color-text, #1a1a1a);
    font-weight: 300;
}

.app-article ul li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.75rem;
    width: 6px;
    height: 6px;
    background: var(--color-primary, #000);
    border-radius: 50%;
}

/* ========== Feature Grid ========== */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
    margin: 1.5rem 0 2rem;
}

.feature-item {
    padding: 1.25rem;
    border: 1px solid var(--color-border, #e0e0e0);
    background: var(--color-background, #fff);
    transition: border-color 0.3s ease, transform 0.3s ease;
}

.feature-item:hover {
    border-color: var(--color-primary, #000);
    transform: translateY(-2px);
}

.feature-emoji {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    display: block;
}

.feature-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-primary, #000);
    margin-bottom: 0.25rem;
}

.feature-desc {
    font-size: 0.8125rem;
    color: var(--color-secondary, #666);
    line-height: 1.6;
    font-weight: 300;
}

/* ========== Highlight Box ========== */
.highlight-box {
    padding: 1.5rem 2rem;
    background: var(--color-accent, #fafafa);
    border-left: 3px solid var(--color-primary, #000);
    margin: 2rem 0;
}

.highlight-box p {
    margin: 0;
    font-size: 1rem;
}

/* ========== App Info Table ========== */
.app-info-section {
    margin: 3rem 0 0;
    padding-top: 2rem;
    border-top: 1px solid var(--color-border, #e0e0e0);
}

.app-info-section h2 {
    margin-top: 0;
}

.app-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
    border: 1px solid var(--color-border, #e0e0e0);
}

.app-info-item {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--color-border, #e0e0e0);
    border-right: 1px solid var(--color-border, #e0e0e0);
}

.app-info-item:nth-child(2n) {
    border-right: none;
}

.app-info-item:nth-last-child(-n+2) {
    border-bottom: none;
}

.app-info-label {
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text-light, #999);
    margin-bottom: 0.25rem;
    font-weight: 400;
}

.app-info-value {
    font-size: 0.9375rem;
    color: var(--color-primary, #000);
    font-weight: 500;
}

/* ========== CTA Section ========== */
.app-cta-section {
    text-align: center;
    padding: 3rem 2rem;
    margin: 3rem 0;
    background: var(--color-primary, #000);
    color: var(--color-background, #fff);
}

.app-cta-section h2 {
    color: var(--color-background, #fff);
    font-size: 1.5rem;
    font-weight: 300;
    margin: 0 0 0.5rem;
    letter-spacing: -0.02em;
}

.app-cta-section p {
    color: var(--color-background, #fff);
    opacity: 0.7;
    font-size: 0.9375rem;
    margin-bottom: 1.5rem;
}

.app-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2.5rem;
    background: var(--color-background, #fff);
    color: var(--color-primary, #000);
    text-decoration: none;
    font-size: 0.9375rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    transition: all 0.3s ease;
}

.app-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.2);
}

/* ========== Post Footer ========== */
.app-post-footer {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
    border-top: 1px solid var(--color-border, #e0e0e0);
}

.app-post-footer a {
    color: var(--color-secondary, #666);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 300;
    transition: color 0.3s ease;
}

.app-post-footer a:hover {
    color: var(--color-primary, #000);
}

/* ========== Responsive ========== */
@media (max-width: 768px) {
    .app-hero-section {
        padding: 120px 0 40px;
    }

    .app-hero-inner {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    .app-hero-icon {
        width: 100px;
        height: 100px;
        border-radius: 22px;
    }

    .app-hero-title {
        font-size: 1.5rem;
    }

    .app-hero-meta {
        justify-content: center;
    }

    .app-hero-download {
        display: flex;
        justify-content: center;
    }

    .app-screenshots-track img {
        height: 400px;
    }

    .app-screenshots-track {
        padding: 0 1rem;
    }

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

    .app-info-grid {
        grid-template-columns: 1fr;
    }

    .app-info-item {
        border-right: none;
    }

    .app-info-item:nth-last-child(1) {
        border-bottom: none;
    }

    .app-info-item:nth-last-child(2) {
        border-bottom: 1px solid var(--color-border, #e0e0e0);
    }
}

@media (max-width: 480px) {
    .app-hero-section {
        padding: 100px 0 30px;
    }

    .app-hero-icon {
        width: 80px;
        height: 80px;
        border-radius: 18px;
    }

    .app-hero-title {
        font-size: 1.25rem;
    }

    .app-hero-subtitle {
        font-size: 0.875rem;
    }

    .app-screenshots-track img {
        height: 320px;
    }

    .app-article {
        padding: 2rem 1rem;
    }

    .app-article .lead {
        font-size: 1.0625rem;
    }

    .app-cta-section {
        padding: 2rem 1.5rem;
        margin: 2rem 0;
    }

    .app-cta-section h2 {
        font-size: 1.25rem;
    }
}
