/* Best Homework Planner Apps - Listicle Page */

.pp-listicle-hero {
    background: linear-gradient(135deg, #2D366F 0%, #4a69bd 100%);
    color: #fff;
    padding: 64px 24px 48px;
    text-align: center;
}

.pp-listicle-hero h1 {
    font-size: 2.4rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 12px;
    color: #fff;
}

.pp-listicle-updated {
    opacity: 0.85;
    font-size: 0.95rem;
    color: #fff;
}

/* Disclosure callout */
.pp-disclosure {
    background: #fff8e1;
    border-left: 4px solid #f4b400;
    border-radius: 8px;
    padding: 20px 24px;
    margin: -32px auto 40px;
    max-width: 900px;
    position: relative;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.pp-disclosure p {
    margin: 0;
    color: #4a3b00;
    font-size: 1rem;
}

/* App entries */
.pp-app-list {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 24px 40px;
}

.pp-app-list::after {
    content: "";
    display: table;
    clear: both;
}

.pp-app-card {
    /* site.css floats <article> at 70% width by default; reset it here */
    float: none;
    width: auto;
    padding: 48px 0;
    border-bottom: 1px solid #e5e7f0;
}

.pp-app-card:last-child {
    border-bottom: none;
}

.pp-app-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 16px;
}

.pp-app-rank {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #2D366F;
    color: #fff;
    font-weight: 800;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pp-app-icon-placeholder {
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    border-radius: 14px;
    background: #f0f1f7;
    border: 2px dashed #c3c7de;
    color: #8890b5;
    font-size: 0.7rem;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1.2;
}

.pp-app-icon {
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    border-radius: 14px;
    object-fit: cover;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.pp-app-title h2 {
    font-size: 1.6rem;
    margin: 0;
    color: #1a1a2e;
}

.pp-app-title h2 a {
    color: inherit;
    text-decoration: none;
}

.pp-app-title h2 a:hover {
    text-decoration: underline;
}

.pp-app-title .pp-app-tagline {
    color: #555;
    font-size: 0.95rem;
}

.pp-app-description {
    margin-bottom: 20px;
    color: #333;
}

/* Screenshots */
.pp-screenshots-wrap {
    position: relative;
    margin-bottom: 24px;
}

.pp-app-screenshots {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    padding-bottom: 4px;
}

.pp-app-screenshots::-webkit-scrollbar {
    display: none;
}

.pp-screenshot-placeholder {
    flex: 0 0 auto;
    width: 160px;
    aspect-ratio: 720 / 1564;
    scroll-snap-align: start;
    border-radius: 10px;
    background: #f0f1f7;
    border: 2px dashed #c3c7de;
    color: #8890b5;
    font-size: 0.85rem;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
}

.pp-screenshot {
    flex: 0 0 auto;
    width: 160px;
    aspect-ratio: 720 / 1564;
    scroll-snap-align: start;
    border-radius: 10px;
    object-fit: cover;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.pp-screenshot-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid #e5e7f0;
    background: #fff;
    color: #2D366F;
    font-size: 1.2rem;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.pp-screenshot-nav:hover {
    background: #f0f1f7;
}

.pp-screenshot-nav-prev {
    left: -18px;
}

.pp-screenshot-nav-next {
    right: -18px;
}

@media screen and (max-width: 640px) {
    .pp-screenshot-nav-prev {
        left: 4px;
    }

    .pp-screenshot-nav-next {
        right: 4px;
    }
}

/* Pros / Cons */
.pp-pros-cons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.pp-pros h3,
.pp-cons h3 {
    font-size: 1rem;
    margin-bottom: 10px;
}

.pp-pros h3 {
    color: #1a7a3c;
}

.pp-cons h3 {
    color: #b3261e;
}

.pp-pros ul,
.pp-cons ul {
    list-style: none;
    padding: 0;
}

.pp-pros li,
.pp-cons li {
    padding-left: 22px;
    position: relative;
    margin-bottom: 8px;
    font-size: 0.95rem;
    color: #333;
}

.pp-pros li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #1a7a3c;
    font-weight: 700;
}

.pp-cons li::before {
    content: "✕";
    position: absolute;
    left: 0;
    color: #b3261e;
    font-weight: 700;
}

/* Per-app CTA */
.pp-app-cta {
    margin-top: 28px;
}

.pp-app-cta .pp-btn-large {
    background: #2D366F;
    color: #fff;
}

.pp-app-cta .pp-btn-large:hover {
    background: #1F264C;
}

/* Responsive */
@media screen and (max-width: 700px) {
    .pp-screenshot-placeholder,
    .pp-screenshot {
        width: 130px;
    }

    .pp-app-screenshots {
        gap: 8px;
    }

    .pp-pros-cons {
        grid-template-columns: 1fr;
    }

    .pp-disclosure {
        margin-top: -24px;
    }
}

@media screen and (max-width: 480px) {
    .pp-app-header {
        flex-wrap: wrap;
    }
}
