/* TILES - MODERNIZED */
/* General */
.tile {
    text-decoration: none;
    color: #fff;
    padding: 1px;
    margin: 0;
    margin-bottom: 500px;
    display: none;
    position: absolute;
    overflow: hidden;
    border-radius: 2px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
    -moz-transition: transform 0.2s ease, box-shadow 0.2s ease;
    -webkit-transition: transform 0.2s ease, box-shadow 0.2s ease;
    -o-transition: transform 0.2s ease, box-shadow 0.2s ease;
    -ms-transition: transform 0.2s ease, box-shadow 0.2s ease;
    font-weight: normal;
}
.tile:visited {
    color: #fff;
}
.tile img {
    border: none;
}
.tile:hover {
    padding: 0;
    text-decoration: none;
    color: #fff;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: var(--box-shadow);
    -moz-box-shadow: var(--box-shadow);
    -webkit-box-shadow: var(--box-shadow);
    transform: translateY(-3px);
    filter: brightness(1.08); /* modern lift + subtle brighten */
    z-index: 100; /* Ensure it pops out */
}

/* LABELS */
.tileLabelWrapper {
    position: absolute;
    right: 0;
    z-index: 11;
}
.tileLabel {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-decoration: none;
    color: #fff;
}
.tileLabelDesc {
    border-top: 1px solid var(--border-color);
    background-color: rgba(12, 13, 15, 0.82); /* flat translucent dark for contrast on tiles */
    color: #e7e9ec;
    padding: 6px 10px;
    font-size: 12px;
}
.showOnHover {
    display: none;
}

/* BOTTOM LABEL */
.tileLabelWrapper.bottom {
    bottom: 0;
    left: 0;
}
.tileLabel.bottom {
    padding: 6px 12px;
    background-color: rgba(12, 13, 15, 0.72);
    border-bottom: 3px solid #777; /* accent color set inline per-tile via generateTileLabel */
    line-height: normal;
    vertical-align: bottom;
}

/* TOP LABEL */
.tileLabelWrapper.top {
    top: 0;
    border-top: 3px solid #777; /* accent color set inline per-tile via generateTileLabel */
    z-index: 15;
}
.tileLabel.top {
    position: relative;
    display: inline-block;
    padding: 6px 12px;
    margin-top: 0 !important;
    background-color: rgba(12, 13, 15, 0.72);
    line-height: normal;
    vertical-align: top;
}

/* tileTitleText */
.tileTitle {
    margin: 3px 3px 0 12px;
    padding: 0px;
    font-size: 28px;
    font-weight: 600;
    letter-spacing: -0.01em;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35); /* subtle shadow for readability */
}
.tileDesc {
    margin: 0 12px 0 12px;
    padding: 0;
    font-size: 13px;
    position: absolute;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

/* tileImg */
.tileImg:hover .tileLabelWrapper.bottom {
    bottom: 0;
    right: 0;
    left: 0;
}
.tileImg:hover .tileLabelWrapper.top {
    margin-right: -1px;
    margin-top: -1px;
}
.tileImg:hover .tileLabelDesc {
    color: #fff;
}

/* No Click */
a.noClick:hover,
a.inactiveTile:hover {
    cursor: default;
    box-shadow: none;
    transform: none;
    padding: 1px;
    border: none;
}

/* Image Slider Tile */
.tileImageSlider .tileImageSliderText {
    padding: 5px;
    font-size: 24px;
    font-weight: 600;
    letter-spacing: -0.01em;
    text-align: center;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}
