/* platforms.css - Dedicated supported-platforms / download page styles */

/* ===== Page Hero ===== */
.plat-hero {
    background: var(--gradient-main);
    padding: 72px 0 60px;
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.plat-hero::before {
    content: '';
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    width: 900px;
    height: 600px;
    background: radial-gradient(ellipse, rgba(255,255,255,0.07) 0%, transparent 65%);
    pointer-events: none;
}

.plat-hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.14);
    border: 1px solid rgba(255,255,255,0.22);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    padding: 6px 18px;
    border-radius: 20px;
    margin-bottom: 22px;
}

.plat-hero h1 {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 18px;
    letter-spacing: -1.5px;
}

.plat-hero > .container > p {
    font-size: 17px;
    opacity: 0.9;
    max-width: 560px;
    margin: 0 auto 36px;
    line-height: 1.75;
}

.plat-hero > .container > p strong {
    color: #ffd6ec;
    font-weight: 700;
}

.plat-hero-stats {
    display: inline-flex;
    align-items: center;
    gap: 36px;
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 50px;
    padding: 14px 36px;
}

.plat-stat {
    font-size: 13px;
    font-weight: 500;
    opacity: 0.85;
    text-align: center;
}

.plat-stat span {
    font-size: 22px;
    font-weight: 800;
    display: block;
    line-height: 1;
    margin-bottom: 3px;
    opacity: 1;
}

.plat-stat-divider {
    width: 1px;
    height: 38px;
    background: rgba(255,255,255,0.2);
}

/* ===== Sticky Platform Tabs ===== */
.plat-tabs-wrap {
    background: var(--bg-white);
    border-bottom: 1px solid var(--divider);
    position: sticky;
    top: 64px;
    z-index: 1000;
    box-shadow: 0 3px 12px rgba(64,51,99,0.07);
}

.plat-tabs {
    display: flex;
    overflow-x: auto;
    scrollbar-width: none;
}

.plat-tabs::-webkit-scrollbar { display: none; }

.plat-tab {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 16px 28px;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-gray);
    white-space: nowrap;
    border-bottom: 3px solid transparent;
    transition: all 0.2s ease;
    cursor: pointer;
    text-decoration: none;
}

.plat-tab:hover {
    color: var(--text-dark);
    background: var(--bg-light);
}

.plat-tab.active {
    color: var(--brand-pink);
    border-bottom-color: var(--brand-pink);
    background: rgba(217,77,136,0.04);
}

/* ===== Platform Sections ===== */
.plat-section {
    padding: 72px 0;
    background: var(--bg-white);
}

.plat-section-alt {
    background: var(--bg-light);
}

.plat-section-head {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 36px;
}

.plat-section-icon {
    width: 58px;
    height: 58px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    color: white;
    flex-shrink: 0;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.plat-section-head h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.plat-section-head p {
    color: var(--text-gray);
    font-size: 14px;
}

/* ===== Client Cards ===== */
.client-card {
    background: var(--bg-white);
    border-radius: var(--radius-card);
    padding: 28px 32px;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--divider);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    margin-bottom: 20px;
}

.client-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}

.client-card.featured {
    border-color: rgba(217,77,136,0.22);
    background: linear-gradient(145deg, #fff 0%, #fdf5fa 100%);
}

.client-card.featured:hover {
    border-color: rgba(217,77,136,0.42);
}

.client-card.archived {
    opacity: 0.82;
    background: #fafafa;
}

/* Badges */
.client-card-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    letter-spacing: 0.3px;
}

.badge-main {
    background: rgba(217,77,136,0.12);
    color: var(--brand-pink);
    border: 1px solid rgba(217,77,136,0.25);
}

.badge-beginner {
    background: rgba(0,136,255,0.1);
    color: #0066cc;
    border: 1px solid rgba(0,136,255,0.2);
}

.badge-archived {
    background: rgba(255,140,0,0.1);
    color: #d46b00;
    border: 1px solid rgba(255,140,0,0.22);
}

/* Featured card inner layout */
.client-card-inner {
    display: flex;
    align-items: flex-start;
    gap: 28px;
    justify-content: space-between;
}

.client-card-left {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    flex: 1;
    min-width: 0;
}

.client-icon-wrap {
    width: 58px;
    height: 58px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    color: white;
    flex-shrink: 0;
    box-shadow: 0 8px 18px rgba(0,0,0,0.18);
}

.client-info {
    flex: 1;
    min-width: 0;
}

.client-info h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
    padding-right: 110px;
}

.client-desc {
    font-size: 14px;
    color: var(--text-gray);
    line-height: 1.7;
    margin-bottom: 14px;
}

.client-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.chip {
    font-size: 11px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 10px;
    background: rgba(64,51,99,0.07);
    color: var(--brand-purple);
    border: 1px solid rgba(64,51,99,0.1);
}

.chip-grey {
    background: rgba(0,0,0,0.04);
    color: #999;
    border-color: rgba(0,0,0,0.06);
}

/* Card right column */
.client-card-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
    flex-shrink: 0;
    min-width: 170px;
}

.client-dl-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

/* ===== Download Buttons ===== */
.btn-dl {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: var(--radius-pill);
    font-size: 14px;
    font-weight: 700;
    transition: all 0.25s ease;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
    border: none;
}

.btn-pulse {
    background: var(--gradient-main);
    color: white;
    box-shadow: 0 4px 18px rgba(217,77,136,0.38);
    animation: btnPulse 2.5s ease-in-out infinite;
}

@keyframes btnPulse {
    0%, 100% { box-shadow: 0 4px 18px rgba(217,77,136,0.38); }
    50%       { box-shadow: 0 4px 32px rgba(217,77,136,0.68); }
}

.btn-pulse:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(217,77,136,0.55);
    animation: none;
    color: white;
}

.btn-dl-secondary {
    background: rgba(64,51,99,0.08);
    color: var(--btn-dark);
    border: 1px solid rgba(64,51,99,0.14);
}

.btn-dl-secondary:hover {
    background: var(--btn-dark);
    color: white;
    transform: translateY(-2px);
}

.btn-dl-outline {
    background: transparent;
    color: var(--brand-pink);
    border: 2px solid var(--brand-pink);
    width: 100%;
    margin-top: 12px;
}

.btn-dl-outline:hover {
    background: var(--brand-pink);
    color: white;
    transform: translateY(-2px);
}

.btn-dl-ghost {
    background: transparent;
    color: #888;
    border: 1px solid #ddd;
    width: 100%;
    margin-top: 12px;
}

.btn-dl-ghost:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
}

/* System requirements & GitHub link */
.client-sys-req {
    font-size: 12px;
    color: var(--text-gray);
    display: flex;
    align-items: center;
    gap: 5px;
}

.client-sys-req i { color: #bbb; }

.client-github-link {
    font-size: 12px;
    color: #888;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s;
    text-decoration: none;
}

.client-github-link:not(.client-github-deleted):hover {
    color: var(--text-dark);
}

.client-github-deleted {
    color: #bbb;
    cursor: default;
    pointer-events: none;
}

/* Secondary cards grid (2 columns) */
.client-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 24px;
}

.client-cards-grid .client-card {
    margin-bottom: 0;
}

.client-icon-wrap-sm {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: white;
    flex-shrink: 0;
    margin-bottom: 14px;
    box-shadow: 0 6px 14px rgba(0,0,0,0.12);
}

.client-cards-grid h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
    padding-right: 90px;
}

.client-desc-sm {
    font-size: 13px;
    color: var(--text-gray);
    line-height: 1.65;
    margin-bottom: 12px;
}

/* Platform install notes */
.plat-notes {
    background: rgba(64,51,99,0.04);
    border: 1px solid rgba(64,51,99,0.09);
    border-radius: var(--radius-card);
    padding: 20px 24px;
}

.plat-notes h4 {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.plat-notes h4 i { color: var(--brand-purple); }

.plat-notes ul {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-left: 0;
    list-style: none;
}

.plat-notes li {
    font-size: 13px;
    color: var(--text-gray);
    padding-left: 16px;
    position: relative;
    line-height: 1.65;
}

.plat-notes li::before {
    content: '·';
    position: absolute;
    left: 0;
    color: var(--brand-pink);
    font-weight: 900;
}

/* ===== iOS Specific ===== */
.ios-store-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 24px;
}

.ios-notice {
    background: linear-gradient(135deg, rgba(217,77,136,0.06), rgba(64,51,99,0.04));
    border: 1px solid rgba(217,77,136,0.16);
    border-radius: var(--radius-card);
    padding: 24px 28px;
    margin-bottom: 24px;
}

.ios-notice h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.ios-notice h4 i { color: var(--brand-pink); }

.ios-notice p {
    font-size: 14px;
    color: var(--text-gray);
    line-height: 1.7;
    margin-bottom: 8px;
}

.ios-notice p:last-child { margin-bottom: 0; }

/* Apple ID Tutorial */
.apple-id-tutorial {
    background: var(--bg-white);
    border: 1px solid var(--divider);
    border-radius: var(--radius-card);
    padding: 28px 32px;
}

.apple-id-tutorial > h4 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 22px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.apple-id-tutorial > h4 i { color: #555; }

.tutorial-steps {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.tutorial-step {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.tutorial-step-num {
    width: 28px;
    height: 28px;
    background: var(--gradient-main);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 800;
    flex-shrink: 0;
    margin-top: 1px;
}

.tutorial-step-body h5 {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.tutorial-step-body p {
    font-size: 13px;
    color: var(--text-gray);
    line-height: 1.6;
    margin: 0;
}

/* ===== Linux Terminal Block ===== */
.terminal-block {
    background: #0f0e17;
    border-radius: 14px;
    padding: 20px 24px 20px;
    margin: 16px 0;
    position: relative;
    overflow: hidden;
}

.terminal-dots {
    display: flex;
    gap: 7px;
    margin-bottom: 16px;
}

.terminal-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.terminal-dot-red   { background: #ff5f57; }
.terminal-dot-yellow{ background: #ffbd2e; }
.terminal-dot-green { background: #28c840; }

.terminal-code {
    font-family: 'Courier New', Courier, monospace;
    font-size: 13px;
    line-height: 1.9;
    color: #d4d4d4;
    white-space: pre-wrap;
    word-break: break-all;
}

.terminal-code .cmd-comment { color: #555; }
.terminal-code .cmd-prompt  { color: #28c840; user-select: none; }
.terminal-code .cmd-cmd     { color: #9cdcfe; }
.terminal-code .cmd-flag    { color: #ce9178; }

/* ===== Quick Start Section ===== */
.quick-start {
    padding: 80px 0;
    background: var(--gradient-main);
    color: white;
}

.quick-start .section-header h2 { color: white; }
.quick-start .section-header p  { color: rgba(255,255,255,0.78); }

.qs-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    position: relative;
}

.qs-steps::before {
    content: '';
    position: absolute;
    top: 52px;
    left: calc(16.66% + 24px);
    right: calc(16.66% + 24px);
    height: 2px;
    background: rgba(255,255,255,0.18);
    z-index: 0;
}

.qs-step {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.16);
    border-radius: var(--radius-card);
    padding: 28px 24px;
    text-align: center;
    position: relative;
    z-index: 1;
    transition: all 0.3s;
}

.qs-step:hover {
    background: rgba(255,255,255,0.16);
    transform: translateY(-5px);
    box-shadow: 0 16px 36px rgba(0,0,0,0.15);
}

.qs-step-num {
    width: 48px;
    height: 48px;
    background: rgba(255,255,255,0.18);
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 800;
    margin: 0 auto 18px;
    position: relative;
    z-index: 2;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.qs-step-icon {
    font-size: 30px;
    margin-bottom: 14px;
    opacity: 0.9;
}

.qs-step h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
}

.qs-step p {
    font-size: 14px;
    opacity: 0.75;
    line-height: 1.65;
    margin: 0;
}

/* ===== FAQ Section ===== */
.plat-faq {
    padding: 80px 0;
    background: var(--bg-light);
}

.faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 42px;
}

.faq-item-dl {
    background: var(--bg-white);
    border: 1px solid var(--divider);
    border-radius: var(--radius-card);
    overflow: hidden;
    transition: border-color 0.2s ease;
}

.faq-item-dl:hover {
    border-color: rgba(217,77,136,0.3);
}

.faq-item-dl summary {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 56px 20px 24px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
    list-style: none;
    user-select: none;
    position: relative;
}

.faq-item-dl summary::-webkit-details-marker { display: none; }

.faq-item-dl summary::after {
    content: '\f107';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    right: 24px;
    font-size: 16px;
    color: var(--text-gray);
    transition: transform 0.28s ease;
}

.faq-item-dl[open] summary::after {
    transform: rotate(180deg);
}

.faq-item-dl summary .faq-icon {
    color: var(--brand-pink);
    font-size: 15px;
    flex-shrink: 0;
}

.faq-answer {
    padding: 0 24px 20px 52px;
    font-size: 14px;
    color: var(--text-gray);
    line-height: 1.75;
}

.faq-answer p { margin-bottom: 8px; }
.faq-answer p:last-child { margin-bottom: 0; }

.faq-item-dl[open] {
    border-color: rgba(217,77,136,0.25);
    background: linear-gradient(135deg, #fff, #fdf8fc);
}

/* ===== GitHub CTA Banner ===== */
.github-cta {
    padding: 64px 0;
    background: #06020e;
    color: white;
    text-align: center;
}

.github-cta h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 12px;
}

.github-cta > .container > p {
    font-size: 16px;
    color: rgba(255,255,255,0.5);
    margin-bottom: 32px;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

.github-cta-btns {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Android arch guidance */
.arch-guide {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 12px;
}

.arch-item {
    background: var(--bg-white);
    border: 1px solid var(--divider);
    border-radius: 10px;
    padding: 14px 16px;
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.arch-item-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: var(--gradient-main);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}

.arch-item h5 {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 3px;
}

.arch-item p {
    font-size: 12px;
    color: var(--text-gray);
    line-height: 1.5;
    margin: 0;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .client-card-inner {
        flex-direction: column;
    }

    .client-card-right {
        align-items: flex-start;
        flex-direction: row;
        flex-wrap: wrap;
        min-width: 0;
        width: 100%;
    }

    .client-dl-group {
        flex-direction: row;
        flex-wrap: wrap;
        width: auto;
    }

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

    .qs-steps::before { display: none; }
}

@media (max-width: 768px) {
    .plat-hero h1 { font-size: 32px; letter-spacing: -0.5px; }
    .plat-hero-stats { flex-wrap: wrap; justify-content: center; gap: 16px; padding: 14px 22px; }
    .plat-stat-divider { display: none; }
    .plat-tab { padding: 14px 16px; font-size: 13px; gap: 6px; }
    .client-cards-grid { grid-template-columns: 1fr; }
    .ios-store-cards { grid-template-columns: 1fr; }
    .qs-steps { grid-template-columns: 1fr; }
    .client-info h3 { padding-right: 80px; font-size: 18px; }
    .client-card { padding: 20px; }
    .client-card-badge { font-size: 10px; padding: 3px 10px; top: 16px; right: 16px; }
    .github-cta h2 { font-size: 24px; }
    .apple-id-tutorial { padding: 20px; }
    .arch-guide { grid-template-columns: 1fr; }
    .plat-section-head h2 { font-size: 22px; }
}

@media (max-width: 480px) {
    .plat-hero h1 { font-size: 26px; }
    .plat-hero > .container > p { font-size: 15px; }
    .client-dl-group { flex-direction: column; }
}
