/* Zlaayo App Showcase - Modern iOS Design */

:root {
    /* iOS / Apple Palette */
    --color-bg: #f5f5f7;
    /* Apple light gray background */
    --color-card: #ffffff;
    --color-text: #1d1d1f;
    /* Apple almost-black */
    --color-text-secondary: #86868b;
    --color-accent: #0071e3;
    /* Apple Link Blue */
    --color-accent-hover: #0077ed;

    --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.05);
    --shadow-card-hover: 0 20px 40px rgba(0, 0, 0, 0.1);

    --radius-card: 24px;
    --radius-btn: 980px;
    /* Pill shape */

    --container-width: 1080px;

    --font-heading: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, sans-serif;
    --font-body: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
}

/* Base Reset */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.47;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s;
}

/* Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.text-center {
    text-align: center;
}

/* Navigation */
.nav-container {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 54px;
}

.nav-logo {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 21px;
    letter-spacing: -0.01em;
    color: var(--color-text);
}

.nav-links {
    display: flex;
    gap: 24px;
}

.nav-link {
    font-size: 14px;
    color: var(--color-text-secondary);
    transition: color 0.2s;
}

.nav-link:hover {
    color: var(--color-text);
}

/* Hero Section */
.hero {
    padding: 120px 0 80px 0;
    text-align: center;
}

.hero h1 {
    font-family: var(--font-heading);
    font-size: 56px;
    font-weight: 700;
    line-height: 1.07;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}

.hero p {
    font-size: 24px;
    line-height: 1.3;
    font-weight: 400;
    color: var(--color-text-secondary);
    max-width: 600px;
    margin: 0 auto 40px auto;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 26px;
    font-size: 16px;
    font-weight: 500;
    border-radius: var(--radius-btn);
    transition: all 0.2s;
}

.btn-primary {
    background: var(--color-accent);
    color: white;
}

.btn-primary:hover {
    background: var(--color-accent-hover);
    box-shadow: 0 4px 12px rgba(0, 113, 227, 0.3);
}

.btn-secondary {
    background: rgba(0, 0, 0, 0.05);
    color: var(--color-accent);
}

.btn-secondary:hover {
    background: rgba(0, 0, 0, 0.1);
}

/* App Grid */
.showcase {
    padding: 40px 0 100px 0;
}

.app-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

/* App grid variant: keep cards consistent width and centered */
.app-grid.app-grid-fixed {
    grid-template-columns: repeat(auto-fit, minmax(320px, 360px));
    justify-content: center;
}

/* App Card */
.app-card {
    background: var(--color-card);
    border-radius: var(--radius-card);
    padding: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: var(--shadow-card);
    transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.3s;
    overflow: hidden;
    position: relative;
    height: 100%;
}

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

.app-icon {
    width: 96px;
    height: 96px;
    background: linear-gradient(135deg, #FF9A9E 0%, #FECFEF 99%, #FECFEF 100%);
    /* Default Placeholder Gradient */
    border-radius: 22px;
    margin-bottom: 24px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
}

.app-icon img {
    width: 100%;
    height: 100%;
    /* Avoid cropping phone screenshots/icons */
    object-fit: contain;
    border-radius: 22px;
    background: transparent;
}

.app-card.zlaayo-radio .app-icon {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.app-meta {
    margin-bottom: 16px;
}

.app-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--color-text);
}

.app-category {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--color-text-secondary);
    letter-spacing: 0.05em;
}

.app-desc {
    font-size: 16px;
    color: var(--color-text-secondary);
    line-height: 1.5;
    margin-bottom: 30px;
    flex-grow: 1;
    /* Pushes button down */
}

.card-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

/* App screenshot gallery (show full image, no cropping) */
.app-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
}

.app-gallery-item {
    width: 100%;
    height: 340px;
    border-radius: 18px;
    background: rgba(0, 0, 0, 0.06);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.app-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* key: show whole screenshot */
    background: transparent;
}

/* Support form */
.support-form {
    max-width: 860px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 24px;
    padding: 28px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.support-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.support-form label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text-secondary);
    letter-spacing: 0.02em;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.support-form input,
.support-form textarea {
    width: 100%;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    background: #fff;
    color: var(--color-text);
    font-family: var(--font-body);
    font-size: 16px;
    outline: none;
}

.support-form textarea {
    min-height: 140px;
    resize: vertical;
}

.support-form input:focus,
.support-form textarea:focus {
    border-color: rgba(0, 113, 227, 0.55);
    box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.12);
}

@media (max-width: 640px) {
    .support-form .form-row {
        grid-template-columns: 1fr;
    }
}

/* Rich text content (CMS) */
.richtext {
    text-align: left;
    line-height: 1.6;
    font-size: 17px;
}

.richtext h1,
.richtext h2,
.richtext h3 {
    font-family: var(--font-heading);
    margin: 18px 0 10px 0;
    letter-spacing: -0.01em;
}

.richtext p {
    margin: 12px 0;
    color: var(--color-text-secondary);
}

.richtext ul,
.richtext ol {
    margin: 12px 0 12px 22px;
    color: var(--color-text-secondary);
}

.richtext a {
    color: var(--color-accent);
    text-decoration: underline;
}

/* Support page content card (centers the edited text block) */
.support-content-card {
    max-width: 860px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 24px;
    padding: 34px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.support-page-content h1:first-of-type,
.support-page-content h2:first-of-type {
    text-align: center;
}

.support-page-content p:first-of-type {
    text-align: center;
}

/* Coming Soon Card */
.app-card.coming-soon {
    background: rgba(255, 255, 255, 0.5);
    border: 1px dashed #d1d1d6;
    box-shadow: none;
}

.app-card.coming-soon:hover {
    transform: none;
    background: rgba(255, 255, 255, 0.8);
}

.app-card.coming-soon .app-icon {
    background: #e5e5ea;
    color: #aeaeb2;
}

/* Footer */
.footer {
    padding: 60px 0;
    background: #f5f5f7;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    color: var(--color-text-secondary);
    font-size: 13px;
}

.footer p {
    margin-bottom: 10px;
}

.footer-links a {
    margin: 0 10px;
}

.footer-links a:hover {
    text-decoration: underline;
    color: var(--color-text);
}