
/* ==========================================================================
   Quran Player product page
   theme/static/css/pages/quran-player.css
   ========================================================================== */

/* ── Hero card ───────────────────────────────────────────────── */
.qp-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    gap: 2rem;
    align-items: center;
    background: linear-gradient(135deg, #1a1f1a 0%, #0d1117 100%);
    color: #e6edf3;
    border-radius: 16px;
    padding: 2.5rem;
    margin: 1.5rem 0 2rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    position: relative;
}
.qp-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 80% 0%, rgba(40, 167, 69, 0.18), transparent 60%);
    pointer-events: none;
}
.qp-hero__content { position: relative; z-index: 1; }
.qp-hero__eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.72rem;
    color: #7ee787;
    margin-bottom: 0.75rem;
    font-weight: 600;
}
.qp-hero h1 {
    color: #ffffff;
    font-size: 2.1rem;
    line-height: 1.2;
    margin: 0 0 0.75rem;
    border: none;
    padding: 0;
}
.qp-hero__subtitle {
    color: #b1bac4;
    font-size: 1.05rem;
    line-height: 1.6;
    margin: 0 0 1.5rem;
}
.qp-hero__actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 1.25rem;
}
.qp-hero__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem 0.75rem;
    font-size: 0.85rem;
    color: #8b949e;
}
.qp-hero__meta .version-pill {
    background: rgba(40, 167, 69, 0.18);
    color: #7ee787;
    border: 1px solid rgba(40, 167, 69, 0.4);
    padding: 0.15rem 0.55rem;
    border-radius: 12px;
    font-weight: 600;
    font-family: "Fira Code", monospace;
    font-size: 0.8rem;
}
.qp-hero__shot {
    position: relative;
    z-index: 1;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #30363d;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
    background: #010409;
}
.qp-hero__shot img {
    display: block;
    width: 100%;
    height: auto;
}
.qp-hero__shot figcaption {
    text-align: center;
    color: #8b949e;
    font-size: 0.78rem;
    padding: 0.5rem 0.75rem;
    border-top: 1px solid #21262d;
    background: #010409;
}
@media (max-width: 900px) {
    .qp-hero {
        grid-template-columns: 1fr;
        padding: 1.75rem;
    }
    .qp-hero h1 { font-size: 1.65rem; }
}

/* ── Table of contents ───────────────────────────────────────── */
.qp-toc {
    background: #f8f9fa;
    border: 1px solid #e6e6e6;
    border-radius: 10px;
    padding: 1rem 1.25rem;
    margin: 1.5rem 0 2rem;
    font-size: 0.93rem;
}
.qp-toc strong {
    display: block;
    color: #495057;
    margin-bottom: 0.6rem;
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
}
.qp-toc ul {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 1.4rem;
    list-style: none;
    padding: 0;
    margin: 0;
}
.qp-toc a {
    color: #2c5f2d;
    text-decoration: none;
    border-bottom: 1px dotted transparent;
    transition: border-color 0.15s ease;
}
.qp-toc a:hover { border-bottom-color: #2c5f2d; }

/* ── Feature grid ────────────────────────────────────────────── */
.app-feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}
.feature-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}
.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-color: #0d6efd;
}
.feature-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #0d6efd;
}
.feature-card h3 {
    color: #2c5f2d;
    margin-bottom: 0.8rem;
    font-size: 1.2rem;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 0.5rem;
}
.feature-card ul { margin: 0; padding-left: 1.2rem; }
.feature-card li { margin-bottom: 0.5rem; line-height: 1.4; }

/* ── Download section ────────────────────────────────────────── */
.download-section {
    background: linear-gradient(135deg, #f0f7f0 0%, #e3f2e3 100%);
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem 0;
    text-align: center;
}
.download-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}
.version-badge {
    background: #28a745;
    color: white;
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
}

/* ── File blocks (config / script snippets) ─────────────────── */
.file-block {
    background: #0d1117;
    color: #c9d1d9;
    border-radius: 10px;
    margin: 1.5rem 0;
    border: 1px solid #21262d;
    overflow: hidden;
    text-align: left;
}
.file-block .filename {
    display: block;
    background: #161b22;
    color: #58a6ff;
    font-size: 0.78rem;
    padding: 0.5rem 1.25rem;
    border-bottom: 1px solid #21262d;
    letter-spacing: 0.02em;
    font-weight: 500;
    font-family: "Fira Code", "JetBrains Mono", monospace;
}
.file-block pre {
    margin: 0;
    padding: 1.1rem 1.25rem;
    overflow-x: auto;
    background: transparent;
    color: #c9d1d9;
    font-family: "Fira Code", "JetBrains Mono", monospace;
    font-size: 0.86rem;
    line-height: 1.6;
    white-space: pre;         /* ← the fix: preserve newlines */
    tab-size: 4;
}
.file-block code {
    color: inherit;
    background: none;
    padding: 0;
    font-size: inherit;
    font-family: inherit;
    white-space: pre;         /* ← belt and suspenders */
}
.file-block .comment { color: #8b949e; }
.file-block .prompt  { color: #79c0ff; user-select: none; }
.file-block .kbd     { color: #ffa657; }

/* ── Collapsible advanced snippets ──────────────────────────── */
.qp-details {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin: 1rem 0;
    background: #fafbfc;
    overflow: hidden;
}
.qp-details summary {
    padding: 0.8rem 1rem;
    cursor: pointer;
    font-weight: 500;
    color: #2c5f2d;
    background: #eef3ef;
    user-select: none;
    list-style: none;
}
.qp-details summary::-webkit-details-marker { display: none; }
.qp-details summary::before {
    content: "▸ ";
    display: inline-block;
    transition: transform 0.15s ease;
    margin-right: 0.25rem;
    color: #4c7a50;
}
.qp-details[open] summary::before { content: "▾ "; }
.qp-details summary:hover { background: #e3ebe5; }
.qp-details[open] summary { border-bottom: 1px solid #e0e0e0; }
.qp-details__body { padding: 0.75rem 1rem; }
.qp-details__body .file-block { margin-top: 0.75rem; }

/* ── Keybinding table ───────────────────────────────────────── */
.keybind-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0 1.5rem;
    font-size: 0.93rem;
}
.keybind-table th,
.keybind-table td {
    padding: 0.55rem 0.9rem;
    border-bottom: 1px solid #e6e6e6;
    text-align: left;
}
.keybind-table th {
    background: #f8f9fa;
    color: #495057;
    font-weight: 600;
}
.keybind-table td kbd {
    background: #2e2e2e;
    color: #f8f8f2;
    padding: 0.1rem 0.45rem;
    border-radius: 4px;
    font-size: 0.82rem;
    font-family: "Fira Code", monospace;
}
.keybind-table td code {
    background: #f1f3f5;
    color: #2c5f2d;
    padding: 0.1rem 0.4rem;
    border-radius: 4px;
    font-size: 0.85rem;
}

/* ── Note box ────────────────────────────────────────────────── */
.note-box {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    border-radius: 6px;
    padding: 1rem 1.25rem;
    margin: 1.5rem 0;
    font-size: 0.95rem;
}
.note-box--info {
    background: #eef4fb;
    border-left-color: #0d6efd;
}

/* ── Tech stack ──────────────────────────────────────────────── */
.tech-stack {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 1.5rem;
    margin: 2rem 0;
}
.tech-stack h3 { margin-top: 0; color: #495057; }
.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}
.tech-tag {
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 20px;
    padding: 0.3rem 1rem;
    font-size: 0.85rem;
    color: #495057;
}

/* ── Screenshot grid ─────────────────────────────────────────── */
.screenshot-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}
.screenshot-grid figure { margin: 0; }
.screenshot-grid img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
}
.screenshot-grid figcaption {
    text-align: center;
    color: #666;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

/* ── Responsive tweaks ───────────────────────────────────────── */
@media (max-width: 768px) {
    .app-feature-grid { grid-template-columns: 1fr; }
    .download-buttons { flex-direction: column; align-items: center; }
    .download-buttons a { width: 100%; max-width: 400px; }
    .download-section { padding: 1.25rem; }
    .qp-hero__actions .btn { width: 100%; }
}

