/* ============================================================
   Main Overview View
   ------------------------------------------------------------
   Landing page after login. A grid of tiles: Projects first,
   then one per product type.
   ============================================================ */

.main-title {
    font-size: var(--font-size-xl);
    color: var(--color-text);
    margin-bottom: var(--space-lg);
}

/* Action tiles row - centered above the product grid. Holds the
   Projects tile and the Design Search tile side-by-side so the
   user's two main entry points are equally prominent. */
.projects-row {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
}

/* The compact action tile - no image block, just a nicely styled
   card with the primary action text. Wider than a product tile is
   tall so the two lines of text have room to breathe, and visually
   prominent (saturated background + light text) to read as a
   primary action on the page. */
.tile.tile-projects-compact {
    width: 100%;
    max-width: 420px;
    background: linear-gradient(135deg, var(--tile-projects) 0%, #1f2d3d 100%);
    border-radius: var(--radius-md);
    padding: var(--space-lg) var(--space-xl);
    text-align: center;
    transition: transform var(--transition-fast),
                box-shadow var(--transition-fast);
}

.tile.tile-projects-compact:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md), 0 0 0 1px var(--color-primary-light);
}

.tile.tile-projects-compact .tile-body {
    background-color: transparent;
    padding: 0;
}

.tile.tile-projects-compact .tile-label {
    color: var(--color-text-inverse);
    font-size: var(--font-size-xxl);
    letter-spacing: 0.5px;
}

.tile.tile-projects-compact .tile-sublabel {
    color: rgba(255, 255, 255, 0.75);
    font-size: var(--font-size-md);
    margin-top: var(--space-xs);
}

/* Product grid - centered on the page. Each tile is capped at 320px
   wide so they stay a reasonable size on ultra-wide monitors. */
.tile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 320px));
    gap: var(--space-lg);
    justify-content: center;
}

/* A single tile (button for accessibility and keyboard navigation) */
.tile {
    background-color: var(--color-surface);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
    display: flex;
    flex-direction: column;
    text-align: left;
    width: 100%;
}

.tile:hover {
    transform: translateY(-2px);
    /* Soft elevation shadow + 1px brand-blue ring so the tile reads
       as actively hovered instead of just lifted. */
    box-shadow: var(--shadow-md), 0 0 0 1px var(--color-primary-light);
}

.tile:focus-visible {
    outline: 3px solid var(--color-primary-light);
    outline-offset: 2px;
}

/* Image / placeholder area at the top of each tile */
.tile-image {
    width: 100%;
    aspect-ratio: 4 / 3;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.85);
    font-size: var(--font-size-sm);
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.tile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Label area below the image */
.tile-body {
    padding: var(--space-md);
    background-color: var(--color-surface);
}

.tile-label {
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: var(--color-text);
    margin: 0;
}

.tile-sublabel {
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
    margin-top: var(--space-xs);
}

