/* ==========================================================================
   Foxco Showcase Grid – Core Styles
   ========================================================================== */

.foxco-showcase-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
    width: 100%;
}

/* ------------------------------------------------------------------
   Grid Item
   ------------------------------------------------------------------ */
.foxco-showcase-item {
    position: relative;
    overflow: hidden;
    height: 340px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    text-decoration: none !important;
    cursor: pointer;
    transition: transform 0.05s ease;
}

.foxco-showcase-item:hover {
    z-index: 2;
}

/* Overlay */
.foxco-showcase-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0);
    transition: background 0.35s ease;
    pointer-events: none;
    z-index: 1;
}

.foxco-showcase-item:hover .foxco-showcase-overlay {
    background: rgba(0, 0, 0, 0.25);
}

/* ------------------------------------------------------------------
   Static Name (visible by default, hides on hover)
   ------------------------------------------------------------------ */
.foxco-showcase-name-static {
    position: absolute;
    z-index: 5;
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
    letter-spacing: 0.02em;
    transition: opacity 0.3s ease;
    line-height: 1.2;
}

.foxco-showcase-item:hover .foxco-showcase-name-static {
    opacity: 0;
}

/* bottom-left (default) */
.foxco-showcase-pos-bottom-left .foxco-showcase-name-static {
    bottom: 24px;
    left: 24px;
}

.foxco-showcase-pos-top-left .foxco-showcase-name-static {
    top: 24px;
    left: 24px;
}

.foxco-showcase-pos-top-center .foxco-showcase-name-static {
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
}

.foxco-showcase-pos-center .foxco-showcase-name-static {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.foxco-showcase-pos-bottom-center .foxco-showcase-name-static {
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
}

/* ------------------------------------------------------------------
   Hover Content (link text inside shape)
   ------------------------------------------------------------------ */
.foxco-showcase-content {
    position: absolute;
    inset: 0;
    z-index: 4;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
}

.foxco-showcase-content .foxco-showcase-name {
    position: static;
    transform: none;
    text-align: center;
    font-size: 1.6rem;
}

.foxco-showcase-link {
    color: #fff;
    font-size: 0.9rem;
    text-decoration: underline;
    text-underline-offset: 3px;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
    letter-spacing: 0.03em;
}

/* On hover show content */
.foxco-showcase-item:hover .foxco-showcase-content {
    opacity: 1;
}

/* ------------------------------------------------------------------
   Shape – Base
   ------------------------------------------------------------------ */
.foxco-showcase-shape {
    --foxco-shape-color: #FF6600;
    --foxco-shape-width: 4px;
    --foxco-shape-size: 90%;
    --foxco-shape-svg-width: 2;

    position: absolute;
    top: 50%;
    left: 50%;
    width: var(--foxco-shape-size);
    height: var(--foxco-shape-size);
    transform: translate(-50%, -50%);
    z-index: 3;
    pointer-events: none;

    /* Default hidden */
    opacity: 0;
    transition: opacity 0.4s ease, transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.foxco-showcase-item:hover .foxco-showcase-shape {
    opacity: 1;
}

/* SVG inside shape */
.foxco-showcase-shape svg {
    width: 100%;
    height: 100%;
}

/* ------------------------------------------------------------------
   Shape Variants – CSS borders
   ------------------------------------------------------------------ */

/* Circle */
.foxco-shape-circle {
    border: var(--foxco-shape-width) solid var(--foxco-shape-color);
    border-radius: 50%;
}

/* Rounded Square */
.foxco-shape-rounded-square {
    border: var(--foxco-shape-width) solid var(--foxco-shape-color);
    border-radius: 16px;
}

/* Diamond */
.foxco-shape-diamond {
    border: var(--foxco-shape-width) solid var(--foxco-shape-color);
    transform: translate(-50%, -50%) rotate(45deg);
    width: calc(var(--foxco-shape-size) * 0.7);
    height: calc(var(--foxco-shape-size) * 0.7);
}

.foxco-showcase-item:hover .foxco-shape-diamond {
    transform: translate(-50%, -50%) rotate(45deg);
}

/* Slash Box / Parallelogram */
.foxco-shape-slash-box {
    border: var(--foxco-shape-width) solid var(--foxco-shape-color);
    transform: translate(-50%, -50%) skewX(-8deg);
    border-radius: 4px;
}

.foxco-showcase-item:hover .foxco-shape-slash-box {
    transform: translate(-50%, -50%) skewX(-8deg);
}

/* Hexagon, Octagon, Blob use SVG – no border needed */
.foxco-shape-hexagon,
.foxco-shape-octagon,
.foxco-shape-blob {
    border: none;
}

/* ------------------------------------------------------------------
   Animations
   ------------------------------------------------------------------ */

/* Scale & Fade In */
.foxco-anim-scale-fade {
    transform: translate(-50%, -50%) scale(0.7);
}

.foxco-showcase-item:hover .foxco-anim-scale-fade {
    transform: translate(-50%, -50%) scale(1);
}

/* Diamond override for scale-fade */
.foxco-anim-scale-fade.foxco-shape-diamond {
    transform: translate(-50%, -50%) rotate(45deg) scale(0.7);
}

.foxco-showcase-item:hover .foxco-anim-scale-fade.foxco-shape-diamond {
    transform: translate(-50%, -50%) rotate(45deg) scale(1);
}

/* Slash box override for scale-fade */
.foxco-anim-scale-fade.foxco-shape-slash-box {
    transform: translate(-50%, -50%) skewX(-8deg) scale(0.7);
}

.foxco-showcase-item:hover .foxco-anim-scale-fade.foxco-shape-slash-box {
    transform: translate(-50%, -50%) skewX(-8deg) scale(1);
}

/* Draw / Stroke Reveal (for SVG shapes) */
.foxco-anim-draw svg polygon,
.foxco-anim-draw svg path {
    stroke-dasharray: 600;
    stroke-dashoffset: 600;
    transition: stroke-dashoffset 0.8s ease;
}

.foxco-showcase-item:hover .foxco-anim-draw svg polygon,
.foxco-showcase-item:hover .foxco-anim-draw svg path {
    stroke-dashoffset: 0;
}

/* Draw animation for CSS border shapes – use clip-path workaround */
.foxco-anim-draw.foxco-shape-circle,
.foxco-anim-draw.foxco-shape-rounded-square,
.foxco-anim-draw.foxco-shape-slash-box {
    transform: translate(-50%, -50%) scale(0.85);
    border-color: transparent;
    box-shadow: inset 0 0 0 0 var(--foxco-shape-color);
    transition: opacity 0.3s ease, box-shadow 0.5s ease, transform 0.5s ease, border-color 0.01s 0.01s;
}

.foxco-showcase-item:hover .foxco-anim-draw.foxco-shape-circle,
.foxco-showcase-item:hover .foxco-anim-draw.foxco-shape-rounded-square,
.foxco-showcase-item:hover .foxco-anim-draw.foxco-shape-slash-box {
    border-color: var(--foxco-shape-color);
    transform: translate(-50%, -50%) scale(1);
}

.foxco-showcase-item:hover .foxco-anim-draw.foxco-shape-slash-box {
    transform: translate(-50%, -50%) skewX(-8deg) scale(1);
}

/* Spin In */
.foxco-anim-spin-in {
    transform: translate(-50%, -50%) scale(0.5) rotate(-180deg);
    transition: opacity 0.35s ease, transform 0.55s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.foxco-showcase-item:hover .foxco-anim-spin-in {
    transform: translate(-50%, -50%) scale(1) rotate(0deg);
}

.foxco-anim-spin-in.foxco-shape-diamond {
    transform: translate(-50%, -50%) rotate(-135deg) scale(0.5);
}

.foxco-showcase-item:hover .foxco-anim-spin-in.foxco-shape-diamond {
    transform: translate(-50%, -50%) rotate(45deg) scale(1);
}

.foxco-anim-spin-in.foxco-shape-slash-box {
    transform: translate(-50%, -50%) skewX(-8deg) scale(0.5) rotate(-180deg);
}

.foxco-showcase-item:hover .foxco-anim-spin-in.foxco-shape-slash-box {
    transform: translate(-50%, -50%) skewX(-8deg) scale(1) rotate(0deg);
}

/* No Animation */
.foxco-anim-none {
    transition: opacity 0.3s ease;
}

/* ------------------------------------------------------------------
   CTA Tile
   ------------------------------------------------------------------ */
.foxco-showcase-cta {
    background-color: #1a1a1a !important;
    background-image: none !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

.foxco-showcase-cta a {
    color: #fff;
    font-size: 1.25rem;
    font-weight: 600;
    text-decoration: none;
    letter-spacing: 0.03em;
    transition: color 0.3s ease, transform 0.3s ease;
    display: inline-block;
}

.foxco-showcase-cta:hover a {
    transform: translateX(6px);
}

/* ------------------------------------------------------------------
   Responsive
   ------------------------------------------------------------------ */
@media (max-width: 1024px) {
    .foxco-showcase-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .foxco-showcase-name {
        font-size: 1.25rem;
    }
}

@media (max-width: 767px) {
    .foxco-showcase-grid {
        grid-template-columns: 1fr;
    }

    .foxco-showcase-item {
        height: 260px;
    }

    .foxco-showcase-name {
        font-size: 1.15rem;
    }
}
