/**
 * Apps Hub & Integrations Directory Stylesheet
 * Location: app/code/apps/v1/frontend/assets/css/apps.css
 */

/* ── Page Body ─────────────────────────────────────────────── */
body.apps-page-body {
    background-color: var(--color-bg-light, #f8fafc);
    color: #1e293b;
}

/* ── Hero Section ──────────────────────────────────────────── */
.apps-hero {
    background: linear-gradient(180deg, #090d16 0%, #0f172a 60%, #151c33 100%);
    color: #ffffff;
    position: relative;
    overflow: hidden;
    padding-top: 3.5rem;
    padding-bottom: 4rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.apps-hero-orb-1 {
    position: absolute;
    top: -20%;
    left: 5%;
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, rgba(79, 70, 229, 0.22) 0%, rgba(79, 70, 229, 0) 70%);
    border-radius: 50%;
    pointer-events: none;
    filter: blur(40px);
}
.apps-hero-orb-2 {
    position: absolute;
    bottom: -20%;
    right: 5%;
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.18) 0%, rgba(6, 182, 212, 0) 70%);
    border-radius: 50%;
    pointer-events: none;
    filter: blur(40px);
}
.apps-breadcrumb {
    font-size: 0.85rem;
}
.apps-pill-badge {
    background: rgba(99, 102, 241, 0.15);
    border: 1px solid rgba(129, 140, 248, 0.35);
    color: #c7d2fe;
    padding: 6px 16px;
    border-radius: 9999px;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.apps-hero-title {
    font-size: clamp(2.2rem, 4vw, 3.2rem);
    font-weight: 800;
    line-height: 1.18;
    letter-spacing: -0.025em;
    color: #ffffff;
}
.apps-text-gradient {
    background: linear-gradient(135deg, #818cf8 0%, #38bdf8 50%, #c084fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.apps-hero-subtext {
    color: #94a3b8;
    font-size: 1.15rem;
    line-height: 1.7;
    max-width: 680px;
}
.apps-security-card {
    max-width: 280px;
}
.apps-security-text {
    font-size: 0.775rem;
}

/* ── Spotlight Banner ──────────────────────────────────────── */
.apps-spotlight-card {
    background: linear-gradient(135deg, #161b33 0%, #0f172a 100%);
    border: 1px solid rgba(129, 140, 248, 0.35);
    border-radius: 20px;
    padding: 2.25rem 2.5rem;
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.35);
    position: relative;
    overflow: hidden;
    margin-top: -2.75rem;
    margin-bottom: 2.25rem;
    z-index: 2;
}
.apps-spotlight-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #4f46e5, #06b6d4, #a855f7);
}
.apps-spotlight-badge {
    font-size: 0.75rem;
}
.apps-spotlight-desc {
    line-height: 1.6;
    max-width: 650px;
}
.apps-spotlight-btn {
    background: var(--color-apps-gradient, linear-gradient(135deg, #4f46e5 0%, #6366f1 100%));
    border: none;
    color: #ffffff;
}
.apps-spotlight-btn:hover {
    background: linear-gradient(135deg, #4338ca 0%, #4f46e5 100%);
    color: #ffffff;
}

/* ── Search & Filter Controls ──────────────────────────────── */
.apps-filter-bar {
    background: #ffffff;
    border: 1px solid var(--color-border-light, #e2e8f0);
    border-radius: 18px;
    padding: 1.25rem 1.75rem;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.03);
    margin-bottom: 2rem;
}
.apps-category-btn {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #64748b;
    font-size: 0.875rem;
    font-weight: 600;
    padding: 7px 16px;
    border-radius: 9999px;
    cursor: pointer;
    transition: all 0.2s ease;
}
.apps-category-btn:hover {
    background: #f1f5f9;
    color: #1e293b;
    border-color: #cbd5e1;
}
.apps-category-btn.active {
    background: var(--color-apps-primary, #4f46e5);
    color: #ffffff;
    border-color: var(--color-apps-primary, #4f46e5);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.25);
}

/* ── App Directory Cards ───────────────────────────────────── */
.app-item-card {
    background: #ffffff;
    border: 1px solid var(--color-border-light, #e2e8f0);
    border-radius: 20px;
    padding: 1.85rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.app-item-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 32px -10px rgba(15, 23, 42, 0.1);
    border-color: #cbd5e1;
}
.app-icon-wrap {
    width: 54px;
    height: 54px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
}
.app-icon-gsc {
    background: linear-gradient(135deg, #4285f4 0%, #34a853 50%, #fbbc05 100%);
    color: #ffffff;
}
.app-icon-ig {
    background: linear-gradient(135deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: #ffffff;
}
.app-badge-status {
    font-size: 0.725rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    letter-spacing: 0.03em;
}
.app-category-label {
    font-size: 0.8rem;
}
.app-item-desc {
    line-height: 1.6;
    flex-grow: 1;
}
.app-tag-pill {
    background: #f1f5f9;
    color: #475569;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 3px 9px;
    border-radius: 6px;
}
.app-launch-btn {
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    color: #1e293b;
    font-weight: 600;
    font-size: 0.875rem;
    padding: 9px 16px;
    border-radius: 12px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.2s ease;
    width: 100%;
}
.app-launch-btn:hover {
    background: var(--color-apps-primary, #4f46e5);
    color: #ffffff;
    border-color: var(--color-apps-primary, #4f46e5);
    box-shadow: 0 6px 14px rgba(79, 70, 229, 0.25);
}
.app-launch-btn-primary {
    background: var(--color-apps-gradient, linear-gradient(135deg, #4f46e5 0%, #6366f1 100%));
    border: none;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.25);
}
.app-launch-btn-primary:hover {
    background: linear-gradient(135deg, #4338ca 0%, #4f46e5 100%);
    color: #ffffff;
    box-shadow: 0 8px 18px rgba(79, 70, 229, 0.35);
}

/* ── Trust Pillars ─────────────────────────────────────────── */
.apps-trust-card {
    background: #ffffff;
    border: 1px solid var(--color-border-light, #e2e8f0);
    border-radius: 18px;
    padding: 1.75rem;
    height: 100%;
    transition: all 0.2s ease;
}
.apps-trust-card:hover {
    border-color: #cbd5e1;
    box-shadow: 0 10px 20px -5px rgba(15, 23, 42, 0.05);
}
.apps-trust-desc {
    line-height: 1.6;
}
