
/* ── Tile ── */

.tile {
    border-radius: 16px;
    border: 3px solid;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
}

.tile-cover {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.tile-header {
    align-items: center;
    display: flex;
    flex-direction: row;
    gap: var(--space-sm);
    justify-content: space-between;
    margin-bottom: var(--space-sm);
    padding: var(--space-lg);
}

.tile-header > img {
    height: 4.5rem;
    width: 4.5rem;
}

.tile-header-title {
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-bold);
    line-height: var(--line-height-tight);
}

.tile-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: var(--space-sm);
    margin-bottom: 0;
    padding: 0 var(--space-lg) var(--space-sm);
}

.tile-body-text {
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-light);
    line-height: var(--line-height-base);
}

.tile-body-link {
    color: var(--color-link-primary);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-light);
    margin-top: auto;
}

.tile-container {
    display: grid;
    gap: var(--space-sm);
    grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 60.71rem) {
    .tile-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 30rem) {
    .tile-container {
        grid-template-columns: 1fr;
    }
}

/* ── Expanded Tile ── */

/* TODO (nate) whats-new-extended classes will go away when we re-write the expanded tile
html per jims design, i.e. this will be generic but can't change now since WN entries in DB
have old class name */

.tile-extended-wrapper,
.whats-new-extended-wrapper {
    border-radius: 0;
    background: var(--color-background-primary);
    position: relative;
    margin-top: -0.5rem;
}

.tile-extended-icon-badge,
.whats-new-extended-icon-badge {
    border-radius: 50%;
    display: flex;
    align-items: center;
    flex-shrink: 0;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    z-index: 2;
    padding: 0.6rem;
}

.tile-extended-icon-badge img,
.whats-new-extended-icon-badge img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.tile-extended-header,
.whats-new-extended-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.tile-extended-category,
.whats-new-extended-category {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: var(--font-weight-bold);
    padding: 0rem 0.7rem;
    border-radius: 12px;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.category-feature {
    background: #E3F2FD;
    color: #1565C0;
}

.category-improvement {
    background: #F3E5F5;
    color: #7B1FA2;
}

.category-in-progress {
    background: #EFEBE9;
    color: #5D4037;
}

.category-tip {
    background: #FFF3E0;
    color: #E65100;
}

.tile-extended-title,
.whats-new-extended-title {
    font-size: 1.5rem;
    font-weight: var(--font-weight-semi-bold);
    margin: 0 0 0.25rem 0;
}

.tile-extended-subtitle,
.whats-new-extended-subtitle {
    font-size: 0.95rem;
    margin: 0 0 0.25rem 0;
    color: var(--color-text-secondary);
}

.tile-extended-content,
.whats-new-extended-content {
    padding: 0;
    font-size: var(--font-size-base);
    line-height: 1.8;
}

.tile-extended-content p,
.whats-new-extended-content p {
    margin: 0 0 1rem 0;
}

.tile-extended-content p:last-child,
.whats-new-extended-content p:last-child {
    margin-bottom: 0;
}

.tile-extended-highlight,
.whats-new-extended-highlight {
    padding: 1rem 1.25rem;
    border-radius: 4px;
    margin: 1.5rem 0;
    border-left: 4px solid;
}

.tile-extended-highlight p,
.whats-new-extended-highlight p {
    margin: 0;
    font-weight: var(--font-weight-medium);
}

.tile-extended-links,
.whats-new-extended-links {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--color-border-secondary);
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.tile-extended-links a,
.whats-new-extended-links a {
    color: var(--color-link-primary);
    text-decoration: none;
    font-weight: var(--font-weight-semi-bold);
    font-size: 0.9rem;
}

.tile-extended-links a:hover,
.whats-new-extended-links a:hover {
    text-decoration: underline;
}

@media (max-width: 31.25rem) {
    .tile-extended-icon-badge,
    .whats-new-extended-icon-badge {
        display: none;
    }
}

/* ── Getting Started Tile ── */

.getting-started-tile {
    border-color: var(--color-conversation-dark);
}

.getting-started-tile:has(.tile-cover:hover) {
    border-color: var(--color-conversation-darker);
}

.getting-started-tile .tile-header {
    background: var(--color-conversation-light);
}

/* ── Getting Started Extended ── */

.getting-started-extended-icon-badge {
    width: 3rem;
    height: 3rem;
    background: var(--color-conversation-light);
}

.getting-started-extended-title {
    color: var(--color-getting-started);
}

.getting-started-extended-highlight {
    background: var(--color-conversation-light);
    border-color: var(--color-getting-started);
}

.getting-started-extended-highlight p {
    color: var(--color-getting-started-darker);
}

.getting-started-steps {
    background: var(--color-background-secondary);
    padding: 1rem 1.25rem;
    border-radius: 4px;
    margin: 1.5rem 0;
}

.getting-started-steps p {
    margin: 0 0 0.75rem 0;
    font-weight: var(--font-weight-semi-bold);
}

.getting-started-steps ol {
    margin: 0;
    padding-left: 1.5rem;
}

.getting-started-steps li {
    margin-bottom: 0.5rem;
}

.getting-started-steps li:last-child {
    margin-bottom: 0;
}

/* ── What's New Tile ── */

.whats-new-tile {
    border-color: var(--color-announcement-dark);
}

.whats-new-tile:has(.tile-cover:hover) {
    border-color: var(--color-announcement-darker);
}

.whats-new-tile .tile-header {
    background: var(--color-announcement-light);
}

/* TODO (nate) img will go away after updates */
.whats-new-tile .tile-header > img,
.whats-new-tile .tile-header > svg {
    height: var(--font-size-4xl);
    width: var(--font-size-4xl);
}

/* ── What's New Extended ── */

.whats-new-extended-icon-badge {
    width: 6rem;
    height: 6rem;
    background: var(--color-announcement-light);
}

.whats-new-extended-title {
    color: var(--color-whats-new);
}

.whats-new-extended-metadata {
    margin-top: 0.5rem;
}

.whats-new-extended-meta-item {
    font-size: 0.85rem;
    color: var(--color-text-secondary);
    margin-bottom: 0.25rem;
}

.whats-new-extended-meta-item:last-child {
    margin-bottom: 0;
}

.whats-new-extended-meta-item strong {
    color: var(--color-whats-new);
    font-weight: var(--font-weight-semi-bold);
}

.whats-new-extended-highlight {
    background: var(--color-announcement-light);
    border-color: var(--color-whats-new);
}

.whats-new-extended-highlight p {
    color: var(--color-whats-new-darker);
}
