/* ===========================
   Theme: Bento Grid
   =========================== */

[data-theme="bento"] {
    --theme-toggle-bg: #ffffff;
    --theme-toggle-color: #1d1d1f;
    --dropdown-bg: #ffffff;
    --dropdown-border: #e5e5e5;
    --dropdown-text: #1d1d1f;
    --dropdown-label: #86868b;
    --dropdown-hover: #f5f5f7;
    --dropdown-active: #efefef;
}

[data-theme="bento"] body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
    background-color: #f5f5f7;
    color: #1d1d1f;
    line-height: 1.6;
    letter-spacing: -0.01em;
}

/* Hero */
[data-theme="bento"] .hero {
    padding: 100px 0 80px;
    text-align: center;
    background: #f5f5f7;
    color: #1d1d1f;
    margin-bottom: 40px;
    width: 100%;
    border-bottom: none;
}

[data-theme="bento"] .hero h2 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.1;
    letter-spacing: -2px;
    background: linear-gradient(135deg, #1d1d1f 0%, #6e6e73 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    word-break: break-all;
}

[data-theme="bento"] .hero p {
    font-size: 1.25rem;
    font-weight: 400;
    line-height: 1.5;
    color: #86868b;
    word-break: keep-all;
    white-space: nowrap;
    letter-spacing: -0.3px;
}

[data-theme="bento"] .mobile-break {
    display: none;
}

/* App Grid — Bento layout */
[data-theme="bento"] .app-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin: 0 auto 80px;
    background: none;
    max-width: 960px;
}

/* App Card */
[data-theme="bento"] .app-card {
    background: #ffffff;
    padding: 32px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    text-align: left;
    border: none;
    border-radius: 20px;
    box-shadow: none;
}

[data-theme="bento"] .app-card:first-child {
    grid-column: 1 / -1;
    flex-direction: row;
    align-items: center;
    gap: 32px;
    padding: 40px;
}

[data-theme="bento"] .app-card:hover {
    background: #f0f0f0;
}

/* App Icon */
[data-theme="bento"] .app-icon {
    width: 72px;
    height: 72px;
    min-width: 72px;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 20px;
    border: none;
    box-shadow: none;
}

[data-theme="bento"] .app-card:first-child .app-icon {
    width: 88px;
    height: 88px;
    min-width: 88px;
    margin-bottom: 0;
    border-radius: 20px;
}

[data-theme="bento"] .app-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* App Info */
[data-theme="bento"] .app-info {
    flex: 1;
}

[data-theme="bento"] .app-info h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 8px;
    letter-spacing: -0.3px;
    color: #1d1d1f;
}

[data-theme="bento"] .app-desc {
    font-size: 0.9375rem;
    color: #86868b;
    margin-bottom: 16px;
    line-height: 1.5;
    word-break: keep-all;
}

/* Badge */
[data-theme="bento"] .app-meta {
    margin-bottom: 16px;
}

[data-theme="bento"] .since-badge {
    display: inline-block;
    padding: 5px 12px;
    background: #f5f5f7;
    color: #1d1d1f;
    border: none;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
}

/* Download */
[data-theme="bento"] .download-links {
    display: flex;
    gap: 10px;
    width: 100%;
    margin-top: 4px;
}

[data-theme="bento"] .btn-badge {
    display: inline-block;
    height: 40px;
    text-decoration: none;
    opacity: 0.9;
    border: none;
    border-radius: 8px;
    box-shadow: none;
    background: none;
}

[data-theme="bento"] .btn-badge:hover {
    opacity: 1;
}

[data-theme="bento"] .google-badge,
[data-theme="bento"] .apple-badge {
    height: 100%;
    width: auto;
    display: block;
}

/* Footer */
[data-theme="bento"] footer {
    text-align: center;
    padding: 48px 0;
    color: #86868b;
    font-size: 0.8rem;
    font-weight: 400;
    border-top: none;
    letter-spacing: 0;
    background: #f5f5f7;
}

/* Mobile */
@media (max-width: 768px) {
    [data-theme="bento"] .hero {
        padding: 80px 0 60px;
        margin-bottom: 24px;
    }

    [data-theme="bento"] .hero h2 {
        font-size: 2.5rem;
        letter-spacing: -1.5px;
    }

    [data-theme="bento"] .hero p {
        font-size: 1.05rem;
        white-space: normal;
    }

    [data-theme="bento"] .mobile-break {
        display: block;
    }

    [data-theme="bento"] .app-grid {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 0 4px;
    }

    [data-theme="bento"] .app-card:first-child {
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        padding: 28px;
    }

    [data-theme="bento"] .app-card:first-child .app-icon {
        margin-bottom: 20px;
    }

    [data-theme="bento"] .app-card {
        padding: 28px;
        border-radius: 16px;
    }
}
