
/* ==========================================
   DANESHPARK MINI APPS CENTER
   Main stylesheet
   ========================================== */

:root {
    --background: #101225;
    --surface: rgba(255, 255, 255, 0.045);
    --surface-hover: rgba(255, 255, 255, 0.075);
    --text: #f6f6ff;
    --muted: #a5a7c2;
    --border: rgba(255, 255, 255, 0.10);
    --purple: #a78bfa;
    --blue: #7dd3fc;
    --radius: 22px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 30px;
}

body {
    margin: 0;
    min-height: 100vh;
    overflow-x: hidden;
    background: var(--background);
    color: var(--text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system,
                 BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input {
    font: inherit;
}

button,
a,
input {
    -webkit-tap-highlight-color: transparent;
}

::selection {
    background: rgba(167, 139, 250, 0.4);
    color: white;
}

/* Background decorations */

.background-glow {
    position: absolute;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.13;
    pointer-events: none;
    z-index: -1;
}

.glow-one {
    top: 50px;
    left: -180px;
    background: #8b5cf6;
}

.glow-two {
    top: 600px;
    right: -200px;
    background: #06b6d4;
}

/* Header */

.topbar {
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto;
    min-height: 86px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.8px;
}

.brand-icon {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 13px;
    color: white;
    background: linear-gradient(135deg, #a78bfa, #6366f1);
    box-shadow: 0 6px 24px rgba(139, 92, 246, 0.3);
}

.brand-dot {
    color: #a78bfa;
}

.top-link {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 10px 15px;
    border: 1px solid var(--border);
    border-radius: 12px;
    color: #dedcf5;
    font-size: 13px;
    font-weight: 650;
    transition: background 0.2s, border-color 0.2s;
}

.top-link:hover {
    background: var(--surface-hover);
    border-color: rgba(167, 139, 250, 0.5);
}

.top-link-icon {
    color: #c4b5fd;
}

.arrow {
    opacity: 0.7;
}

/* Hero section */

.hero {
    position: relative;
    width: min(1000px, calc(100% - 40px));
    margin: 0 auto;
    padding: 100px 0 88px;
    text-align: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 8px 13px;
    border: 1px solid rgba(167, 139, 250, 0.22);
    border-radius: 999px;
    background: rgba(139, 92, 246, 0.08);
    color: #d1c5ff;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.6px;
}

.status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #6ee7b7;
    box-shadow: 0 0 12px rgba(110, 231, 183, 0.7);
}

.hero h1 {
    margin: 28px 0 18px;
    font-size: clamp(52px, 8vw, 88px);
    line-height: 1.02;
    font-weight: 850;
    letter-spacing: -5px;
}

.hero h1 span {
    color: transparent;
    background: linear-gradient(100deg, #c4b5fd 10%, #8b9dff 48%, #67e8f9 95%);
    -webkit-background-clip: text;
    background-clip: text;
}

.hero-description {
    max-width: 570px;
    margin: 0 auto;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.9;
}

.hero-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    padding: 14px 21px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    background: linear-gradient(110deg, #8b5cf6, #6366f1);
    box-shadow: 0 10px 35px rgba(99, 102, 241, 0.24);
    color: white;
    font-size: 13px;
    font-weight: 750;
    transition: transform 0.2s, box-shadow 0.2s;
}

.hero-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 40px rgba(99, 102, 241, 0.35);
}

.hero-button span {
    font-size: 18px;
}

.hero-decoration {
    position: absolute;
    pointer-events: none;
    user-select: none;
}

.decoration-one {
    top: 130px;
    left: 8%;
    color: #a78bfa;
    font-size: 48px;
    opacity: 0.65;
    transform: rotate(-15deg);
}

.decoration-two {
    top: 170px;
    right: 11%;
    color: #67e8f9;
    font-size: 40px;
    opacity: 0.75;
}

.decoration-three {
    bottom: 55px;
    right: 17%;
    color: #f9a8d4;
    font-size: 28px;
    opacity: 0.55;
}

/* Collections section */

.collections {
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto;
    padding: 20px 0 90px;
}

.section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 30px;
}

.eyebrow {
    margin: 0 0 8px;
    color: #a5b4fc;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 2px;
}

.section-heading h2 {
    margin: 0;
    font-size: clamp(25px, 4vw, 36px);
    font-weight: 800;
    letter-spacing: -1.2px;
}

.section-description {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 14px;
}

.collection-count {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 13px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--surface);
    color: var(--muted);
    font-size: 12px;
    white-space: nowrap;
}

.collection-count span:first-child {
    color: white;
    font-size: 17px;
    font-weight: 800;
}

/* Search */

.search-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.search-box {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
    padding: 0 14px;
    min-height: 50px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.035);
    transition: border-color 0.2s, background 0.2s;
}

.search-box:focus-within {
    border-color: rgba(167, 139, 250, 0.65);
    background: rgba(255, 255, 255, 0.055);
}

.search-icon {
    color: #a5a7c2;
    font-size: 25px;
    line-height: 1;
}

.search-box input {
    width: 100%;
    min-width: 0;
    padding: 13px 0;
    outline: none;
    border: 0;
    background: transparent;
    color: white;
    font-size: 13px;
}

.search-box input::placeholder {
    color: #777a99;
}

.search-box kbd {
    padding: 3px 7px;
    border: 1px solid var(--border);
    border-radius: 6px;
    color: #9b9db8;
    font-size: 11px;
}

.reset-button {
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--surface);
    color: #d7d8eb;
    cursor: pointer;
    font-size: 12px;
    font-weight: 650;
    transition: background 0.2s;
}

.reset-button:hover {
    background: var(--surface-hover);
}

/* App card grid */

.app-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.app-card {
    --card-accent: #a78bfa;

    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 270px;
    padding: 23px;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.055), transparent 80%),
        rgba(255, 255, 255, 0.025);
    transition:
        transform 0.22s ease,
        border-color 0.22s ease,
        background 0.22s ease,
        box-shadow 0.22s ease;
}

.app-card::before {
    position: absolute;
    top: -70px;
    right: -70px;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: var(--card-accent);
    opacity: 0;
    filter: blur(70px);
    content: "";
    transition: opacity 0.25s;
    pointer-events: none;
}

.app-card:hover {
    transform: translateY(-5px);
    border-color: color-mix(in srgb, var(--card-accent) 55%, transparent);
    background: var(--surface-hover);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.15);
}

.app-card:hover::before {
    opacity: 0.25;
}

.app-card:focus-visible,
.top-link:focus-visible,
.hero-button:focus-visible,
.banner-link:focus-visible,
.reset-button:focus-visible {
    outline: 2px solid #c4b5fd;
    outline-offset: 4px;
}

.featured-card {
    border-color: rgba(167, 139, 250, 0.35);
    background:
        linear-gradient(145deg, rgba(139, 92, 246, 0.13), transparent 75%),
        rgba(255, 255, 255, 0.035);
}

.card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.card-icon {
    display: grid;
    place-items: center;
    width: 47px;
    height: 47px;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 15px;
    font-size: 23px;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.06);
}

.card-number {
    color: #777a99;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
}

.card-content {
    flex: 1;
    padding-top: 24px;
}

.card-label {
    color: var(--card-accent);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1.3px;
}

.card-content h3 {
    margin: 8px 0 9px;
    font-size: 20px;
    font-weight: 780;
    letter-spacing: -0.5px;
    overflow-wrap: anywhere;
}

.card-content p {
    max-width: 290px;
    margin: 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.85;
}

.card-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 22px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.075);
}

.open-label {
    color: #d7d8eb;
    font-size: 11px;
    font-weight: 650;
}

.card-arrow {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border: 1px solid var(--border);
    border-radius: 10px;
    color: #e6e4ff;
    font-size: 15px;
    transition: transform 0.2s, background 0.2s;
}

.app-card:hover .card-arrow {
    transform: translate(2px, -2px);
    background: rgba(255, 255, 255, 0.09);
}

/* Card icon colors */

.icon-purple {
    --card-accent: #c4b5fd;
    color: #c4b5fd;
}

.icon-blue {
    --card-accent: #7dd3fc;
    color: #7dd3fc;
}

.icon-pink {
    --card-accent: #f9a8d4;
    color: #f9a8d4;
}

.icon-orange {
    --card-accent: #fdba74;
    color: #fdba74;
}

.icon-green {
    --card-accent: #86efac;
    color: #86efac;
}

.icon-yellow {
    --card-accent: #fde68a;
    color: #fde68a;
}

.icon-cyan {
    --card-accent: #67e8f9;
    color: #67e8f9;
}

.icon-red {
    --card-accent: #fda4af;
    color: #fda4af;
}

.icon-indigo {
    --card-accent: #a5b4fc;
    color: #a5b4fc;
}

.icon-teal {
    --card-accent: #5eead4;
    color: #5eead4;
}

/* Search empty state */

.empty-state {
    padding: 60px 20px;
    border: 1px dashed var(--border);
    border-radius: var(--radius);
    text-align: center;
}

.empty-icon {
    color: #a78bfa;
    font-size: 40px;
}

.empty-state h3 {
    margin: 8px 0;
    font-size: 21px;
}

.empty-state p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}

/* Bottom banner */

.bottom-banner {
    display: flex;
    align-items: center;
    gap: 20px;
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto 75px;
    padding: 28px;
    border: 1px solid rgba(167, 139, 250, 0.22);
    border-radius: var(--radius);
    background:
        linear-gradient(110deg, rgba(139, 92, 246, 0.13), transparent 70%),
        rgba(255, 255, 255, 0.025);
}

.banner-symbol {
    display: grid;
    place-items: center;
    flex: 0 0 52px;
    height: 52px;
    border-radius: 16px;
    background: rgba(167, 139, 250, 0.13);
    color: #c4b5fd;
    font-size: 28px;
}

.bottom-banner h2 {
    margin: 0 0 4px;
    font-size: 18px;
    letter-spacing: -0.4px;
}

.bottom-banner p {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
}

.banner-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
    padding: 12px 15px;
    border: 1px solid var(--border);
    border-radius: 12px;
    color: #e5ddff;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
    transition: background 0.2s;
}

.banner-link:hover {
    background: var(--surface-hover);
}

/* Footer */

.footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto;
    padding: 25px 0 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.footer-brand {
    font-size: 14px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.footer p,
.footer-year {
    margin: 0;
    color: #8588a5;
    font-size: 11px;
}

/* Responsive layouts */

@media (min-width: 1400px) {
    .app-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .featured-card {
        grid-column: span 1;
    }
}

@media (max-width: 900px) {
    .app-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hero {
        padding-top: 80px;
    }

    .decoration-one {
        left: 1%;
    }

    .decoration-two {
        right: 2%;
    }

    .bottom-banner {
        flex-wrap: wrap;
    }

    .banner-link {
        margin-left: 72px;
    }
}

@media (max-width: 560px) {
    .topbar {
        width: calc(100% - 32px);
        min-height: 72px;
    }

    .brand {
        font-size: 17px;
    }

    .brand-icon {
        width: 34px;
        height: 34px;
        border-radius: 11px;
    }

    .top-link {
        gap: 6px;
        padding: 9px 10px;
        font-size: 11px;
    }

    .hero {
        width: calc(100% - 32px);
        padding: 72px 0 70px;
    }

    .hero h1 {
        font-size: clamp(47px, 13vw, 66px);
        letter-spacing: -3px;
    }

    .hero-description {
        font-size: 14px;
    }

    .hero-decoration {
        opacity: 0.3;
    }

    .decoration-one {
        top: 28px;
        left: 0;
        font-size: 30px;
    }

    .decoration-two {
        top: 35px;
        right: 0;
        font-size: 28px;
    }

    .decoration-three {
        bottom: 20px;
        right: 5%;
    }

    .collections {
        width: calc(100% - 32px);
        padding-bottom: 55px;
    }

    .section-heading {
        align-items: flex-start;
        gap: 12px;
    }

    .section-heading h2 {
        font-size: 25px;
    }

    .section-description {
        font-size: 12px;
    }

    .collection-count {
        gap: 5px;
        padding: 8px;
        font-size: 10px;
    }

    .collection-count span:first-child {
        font-size: 14px;
    }

    .search-row {
        gap: 8px;
    }

    .search-box {
        gap: 8px;
        padding: 0 10px;
    }

    .search-box input {
        font-size: 12px;
    }

    .search-box kbd {
        display: none;
    }

    .reset-button {
        padding: 11px;
        font-size: 11px;
    }

    .app-grid {
        grid-template-columns: 1fr;
        gap: 13px;
    }

    .app-card {
        min-height: 235px;
        padding: 20px;
    }

    .card-content {
        padding-top: 19px;
    }

    .card-content h3 {
        font-size: 19px;
    }

    .bottom-banner {
        width: calc(100% - 32px);
        margin-bottom: 45px;
        padding: 21px;
        gap: 14px;
    }

    .banner-symbol {
        flex-basis: 44px;
        height: 44px;
        font-size: 23px;
    }

    .bottom-banner h2 {
        font-size: 16px;
    }

    .bottom-banner p {
        font-size: 11px;
    }

    .banner-link {
        width: 100%;
        justify-content: center;
        margin-left: 0;
        white-space: normal;
    }

    .footer {
        flex-direction: column;
        gap: 8px;
        width: calc(100% - 32px);
        text-align: center;
    }
}

/* Respect reduced-motion settings */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
}