/**
 * Prebuilt Apps Grid Block Styles
 */

 /* squircle support */
 :root {
  --brm: 1;
}

@supports (corner-shape: squircle) {
  :root {
    --brm: 2;
  }
}

/* Container */
.adg-apps-container {
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 2rem;
}

/* Grid Layout */
.apps-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 3rem;
}

/* App Card */
.app-card {
    background: var(--background-color, #ffffff);
    color: var(--text-color, #333333);
    border: 1px solid rgba(130, 130, 130, 0.3);
    padding: 1.8rem 2rem;
    border-radius: calc(16px * var(--brm));
    transition: all 0.2s ease;
    display: flex;
    gap: 1.5rem;
    align-items: center;
}


/* App Icon */
.app-icon {
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* images are svg */
.app-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: calc(16px * var(--brm));
    corner-shape: squircle;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* App Content */
.app-content {
    flex: 1;
}

.app-name {
    font-size: 18px;
    margin: 0 0 0.5em 0;
}

/* Error and Empty States */
.adg-apps-error,
.adg-apps-empty {
    padding: 2rem;
    text-align: center;
    background: var(--warning-light, #f8f9fa);
}


/* Footer */
.apps-footer {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.apps-last-updated {
    font-size: 14px;
    color: #666;
    text-align: center;
    margin: 0;
}

/* Responsive Design */
@media (min-width: 769px) {
    .apps-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 2rem;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .adg-apps-container {
        --background-color: var(--global-palette3, #111);
        --text-color: rgba(255, 255, 255, 0.8);
    }
}
