/**
 * 2suite — Individual App Page Styles
 */

/* ===== App Page Layout ===== */
.app-page {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 1.5rem 4rem;
}

.app-page-back {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.875rem;
    color: var(--brand-blue);
    text-decoration: none;
    font-weight: 500;
    margin-bottom: 2rem;
}

.app-page-back:hover {
    text-decoration: underline;
}

/* ===== Hero ===== */
.app-hero {
    text-align: center;
    margin-bottom: 3rem;
}

.app-hero-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    color: white;
}

.app-hero-icon svg {
    width: 32px;
    height: 32px;
}

.app-hero h1 {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.app-hero .app-domain {
    font-size: 0.95rem;
    color: var(--brand-blue);
    font-weight: 500;
    margin-bottom: 1rem;
    display: block;
}

.app-hero-tagline {
    font-size: 1.25rem;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto 1.5rem;
}

.app-hero-badges {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.app-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.3rem 0.65rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.app-badge-live {
    background: rgba(34, 197, 94, 0.1);
    color: #22C55E;
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.app-badge-free {
    background: rgba(59, 130, 246, 0.1);
    color: var(--brand-blue);
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.app-badge-private {
    background: rgba(168, 85, 247, 0.1);
    color: #A855F7;
    border: 1px solid rgba(168, 85, 247, 0.2);
}

.app-launch-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 2rem;
    background: var(--brand-blue);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s, transform 0.2s;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
}

.app-launch-btn:hover {
    background: #2563EB;
    transform: translateY(-2px);
}

/* ===== Features ===== */
.app-section {
    margin-bottom: 3rem;
}

.app-section h2 {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 1.25rem;
    color: var(--text-primary);
}

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

.app-feature-card {
    padding: 1.25rem;
    background: var(--bg-surface, #1E293B);
    border: 1px solid var(--border-subtle, rgba(255,255,255,0.05));
    border-radius: 12px;
    transition: border-color 0.2s, transform 0.2s;
}

.app-feature-card:hover {
    border-color: var(--border-medium, rgba(255,255,255,0.1));
    transform: translateY(-2px);
}

.app-feature-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(59, 130, 246, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.75rem;
    color: var(--brand-blue);
}

.app-feature-icon svg {
    width: 18px;
    height: 18px;
}

.app-feature-card h3 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.35rem;
}

.app-feature-card p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* ===== How It Works ===== */
.app-steps {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.app-step {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.app-step-num {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--brand-blue);
    color: white;
    font-size: 0.875rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.app-step-content h3 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.2rem;
}

.app-step-content p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* ===== Related Apps ===== */
.app-related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.75rem;
}

.app-related-card {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 1rem;
    background: var(--bg-surface, #1E293B);
    border: 1px solid var(--border-subtle, rgba(255,255,255,0.05));
    border-radius: 12px;
    text-decoration: none;
    transition: border-color 0.2s, transform 0.2s;
}

.app-related-card:hover {
    border-color: var(--brand-blue);
    transform: translateY(-2px);
}

.app-related-card h3 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
}

.app-related-card p {
    font-size: 0.8rem;
    color: var(--text-tertiary, #64748B);
    line-height: 1.4;
}

/* ===== Light theme ===== */
[data-theme="light"] .app-feature-card,
[data-theme="light"] .app-related-card {
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

[data-theme="light"] .app-feature-card:hover,
[data-theme="light"] .app-related-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .app-page { padding: 1.25rem 1rem 3rem; }
    .app-hero h1 { font-size: 1.75rem; }
    .app-hero-tagline { font-size: 1rem; }
    .app-features-grid { grid-template-columns: 1fr; }
    .app-related-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
    .app-related-grid { grid-template-columns: 1fr; }
}
