/* =========================================================
   Vetrivox Tools Frontend Styles
   ========================================================= */


/* =========================================================
   Theme Cleanup
   ========================================================= */

/* Hide default theme title/meta on individual Shooter pages.
   Vetrivox Tools renders the profile layout instead. */
body.single-shooter .hero-section,
body.single-shooter .entry-header,
body.single-shooter .ct-breadcrumbs,
body.single-shooter .entry-meta,
body.single-shooter .post-meta,
body.single-shooter .ct-meta-element,
body.single-shooter .page-title,
body.single-shooter .entry-title {
    display: none !important;
}

/* Hide the default Team page title. Page ID 17 = Team page. */
body.page-id-17 .entry-header,
body.page-id-17 .hero-section,
body.page-id-17 .page-title,
body.page-id-17 .entry-title,
body.page-id-17 .ct-title-label,
body.page-id-17 [data-type="type-1"] > header,
body.page-id-17 article > header {
    display: none !important;
}

/* Hide Blocksy / CreativeThemes copyright footer on all pages. */
.ct-footer-copyright,
.site-footer .ct-footer-copyright,
footer .ct-footer-copyright,
footer [data-id="copyright"],
[data-footer*="copyright"],
.ct-footer [class*="copyright"] {
    display: none !important;
}


/* =========================================================
   Shared Vetrivox Cards
   ========================================================= */

.vtx-card {
    background: #15191C;
    border: 1px solid #30383D;
    border-radius: 16px;
    padding: 1.35rem;
    margin-bottom: 1.25rem;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
}

.vtx-card h2 {
    margin-top: 0;
    margin-bottom: 1rem;
    color: #C49A45;
    font-size: 1.35rem;
    letter-spacing: 0.02em;
}

.vtx-label {
    color: #A8A79F;
    font-weight: 700;
}

.vtx-value {
    color: #F2EFE6;
    font-weight: 800;
    text-align: right;
}

.vtx-value a {
    color: #C49A45;
    text-decoration: none;
}

.vtx-value a:hover {
    color: #B35C2E;
}


/* =========================================================
   Individual Shooter Profile
   ========================================================= */

.vtx-shooter-profile {
    margin-top: 2rem;
}

.vtx-profile-grid {
    display: grid;
    grid-template-columns: minmax(260px, 0.85fr) minmax(320px, 1.15fr);
    gap: 1.25rem;
    margin-bottom: 1.25rem;
    align-items: stretch;
}

.vtx-profile-grid .vtx-card {
    margin-bottom: 0;
}

.vtx-photo-card {
    padding: 0;
    overflow: hidden;
    min-height: 320px;
}

.vtx-shooter-photo {
    width: 100%;
    height: 100%;
    min-height: 320px;
    object-fit: cover;
    object-position: center 20%;
    display: block;
}

.vtx-photo-placeholder {
    min-height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background:
        radial-gradient(circle at top left, rgba(196, 154, 69, 0.18), transparent 32%),
        linear-gradient(135deg, #15191C, #0B0D0E);
    color: #F2EFE6;
    text-align: center;
    font-size: 1.35rem;
    font-weight: 800;
}

.vtx-short-bio p {
    margin: 0;
    color: #F2EFE6;
    font-size: 1.08rem;
    line-height: 1.65;
}

.vtx-detail-row,
.vtx-classification-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid #30383D;
}

.vtx-detail-row:last-child,
.vtx-classification-row:last-child {
    border-bottom: none;
}

.vtx-classification-row .vtx-value {
    color: #C49A45;
}


/* =========================================================
   USPSA Badges
   ========================================================= */

.vtx-badge-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.vtx-badge-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    min-height: 155px;
    text-align: center;

    background: #0B0D0E;
    border: 1px solid #30383D;
    border-radius: 12px;
    padding: 1rem;
}

.vtx-badge-item img {
    width: 92px;
    height: 92px;
    object-fit: contain;
    object-position: center;
    display: block;
    margin: 0 auto 0.8rem auto;
    filter: drop-shadow(0 8px 10px rgba(0, 0, 0, 0.35));
}

.vtx-badge-label {
    min-height: 2.5em;
    display: flex;
    align-items: center;
    justify-content: center;

    color: #F2EFE6;
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.35;
    text-align: center;
}


/* =========================================================
   Related / Featured Posts
   ========================================================= */

.vtx-related-post {
    padding: 1rem 0;
    border-bottom: 1px solid #30383D;
}

.vtx-related-post:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.vtx-related-post h3 {
    margin: 0 0 0.35rem 0;
    font-size: 1.15rem;
}

.vtx-related-post h3 a {
    color: #C49A45;
    text-decoration: none;
}

.vtx-related-post h3 a:hover {
    color: #B35C2E;
}

.vtx-related-post-meta {
    color: #A8A79F;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.vtx-related-post p {
    margin: 0;
    color: #F2EFE6;
    line-height: 1.55;
}


/* =========================================================
   Team / Shooters Grid
   ========================================================= */

.vtx-team-section {
    margin-top: 1.5rem;
}

.vtx-team-group {
    margin-bottom: 2.25rem;
}

.vtx-team-group:last-child {
    margin-bottom: 0;
}

.vtx-team-group-heading {
    margin: 0 0 1rem 0;
    color: #C49A45;
    font-size: 1.5rem;
    letter-spacing: 0.03em;
}

.vtx-team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: 1.25rem;
    align-items: stretch;
}

/* Equal-height card shell. */
.vtx-team-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 100%;

    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0)),
        #15191C;
    border: 1px solid #30383D;
    border-radius: 18px;
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.22);
    transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.vtx-team-card:hover {
    transform: translateY(-3px);
    border-color: rgba(196, 154, 69, 0.55);
    box-shadow: 0 22px 46px rgba(0, 0, 0, 0.32);
}

/* Fixed image area.
   Uses cover for the sleek cropped-card look, but focuses near the face.
   Adjust object-position if a specific image needs different framing. */
.vtx-team-photo-wrap {
    display: block;
    position: relative;
    overflow: hidden;
    background: #0B0D0E;
    height: 340px;
    text-decoration: none;
    flex: 0 0 auto;
}

.vtx-team-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
    display: block;
    transform: scale(1.01);
    transform-origin: center 30%;
    transition: transform 180ms ease, opacity 180ms ease;
}

.vtx-team-card:hover .vtx-team-photo {
    transform: scale(1.025);
    transform-origin: center 30%;
    opacity: 0.94;
}

.vtx-team-photo-wrap::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, transparent 45%, rgba(11, 13, 14, 0.78) 100%);
    pointer-events: none;
}

.vtx-team-photo-placeholder {
    height: 340px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background:
        radial-gradient(circle at top left, rgba(196, 154, 69, 0.18), transparent 32%),
        linear-gradient(135deg, #15191C, #0B0D0E);
    color: #F2EFE6;
    text-align: center;
    font-size: 1.25rem;
    font-weight: 900;
}

/* Card body grid keeps names, bios, pills, and buttons aligned. */
.vtx-team-card-body {
    display: grid;
    grid-template-rows:
        auto                  /* name / role */
        minmax(4.6rem, auto)  /* bio */
        minmax(3.1rem, auto)  /* classification pills */
        auto;                 /* button */
    gap: 0.85rem;

    height: 100%;
    padding: 1.1rem;
    flex: 1 1 auto;
}

.vtx-team-card-heading {
    margin: 0;
}

.vtx-team-name {
    margin: 0 0 0.25rem 0;
    font-size: 1.25rem;
    line-height: 1.2;
}

.vtx-team-name a {
    color: #F2EFE6;
    text-decoration: none;
}

.vtx-team-name a:hover {
    color: #C49A45;
}

.vtx-team-role {
    min-height: 1.2rem;
    color: #C49A45;
    font-size: 0.78rem;
    font-weight: 900;
    line-height: 1.35;
    text-transform: uppercase;
    letter-spacing: 0.055em;
}

.vtx-team-bio {
    color: #D8D5CC;
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
}

.vtx-team-class-pills {
    display: flex;
    flex-wrap: wrap;
    align-content: flex-start;
    gap: 0.45rem;
    min-height: 3.1rem;
}

.vtx-class-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    max-width: 100%;

    background: #0B0D0E;
    border: 1px solid #30383D;
    border-radius: 999px;
    padding: 0.4rem 0.62rem;

    color: #A8A79F;
    font-size: 0.78rem;
    line-height: 1;
    white-space: nowrap;
}

.vtx-class-pill strong {
    color: #C49A45;
    font-weight: 900;
}

.vtx-team-profile-link {
    align-self: end;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    min-height: 42px;

    background: #C49A45;
    color: #0B0D0E !important;
    border-radius: 999px;
    padding: 0.72rem 1rem;

    font-weight: 900;
    text-decoration: none;
    line-height: 1;

    transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.vtx-team-profile-link:hover {
    background: #B35C2E;
    color: #F2EFE6 !important;
}


/* =========================================================
   Responsive Layout
   ========================================================= */

@media (max-width: 800px) {
    .vtx-profile-grid {
        grid-template-columns: 1fr;
    }

    .vtx-photo-card,
    .vtx-shooter-photo,
    .vtx-photo-placeholder {
        min-height: 260px;
    }
}

@media (max-width: 640px) {
    .vtx-detail-row,
    .vtx-classification-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }

    .vtx-value {
        text-align: left;
    }

    .vtx-team-grid {
        grid-template-columns: 1fr;
    }

    .vtx-team-photo-wrap,
    .vtx-team-photo-placeholder {
        height: 300px;
    }

    .vtx-team-photo {
        object-position: center 28%;
        transform-origin: center 28%;
    }

    .vtx-team-card-body {
        grid-template-rows:
            auto
            auto
            auto
            auto;
    }

    .vtx-team-class-pills {
        min-height: unset;
    }
}

/* =========================================================
   Vetrivox Homepage Link Hub
   Grungy one-page shooter cards
   ========================================================= */

.vtx-link-hub {
    width: 100%;
    max-width: 1560px;
    margin: 0 auto;
    padding: 2rem 1rem 4.5rem;
}

.vtx-link-hub-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 1rem;
    align-items: stretch;
}

.vtx-link-card {
    position: relative;
    min-height: 590px;
    overflow: hidden;

    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0)),
        #0B0D0E;

    border: 1px solid rgba(242, 239, 230, 0.16);
    border-radius: 0;
    box-shadow: 0 26px 60px rgba(0, 0, 0, 0.42);

    isolation: isolate;
    transition:
        transform 180ms ease,
        border-color 180ms ease,
        box-shadow 180ms ease;
}

.vtx-link-card:hover {
    transform: translateY(-4px);
    border-color: rgba(196, 154, 69, 0.72);
    box-shadow: 0 34px 80px rgba(0, 0, 0, 0.56);
}

.vtx-link-card::before {
    content: "";
    position: absolute;
    inset: -30%;
    z-index: 2;
    pointer-events: none;

    background:
        linear-gradient(
            115deg,
            transparent 0%,
            transparent 42%,
            rgba(255, 255, 255, 0.08) 43%,
            rgba(255, 255, 255, 0.08) 45%,
            transparent 46%,
            transparent 100%
        );

    transform: rotate(-8deg);
    opacity: 0.8;
}

.vtx-link-card::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;

    background:
        radial-gradient(circle at 50% 10%, transparent 0%, rgba(0, 0, 0, 0.08) 38%, rgba(0, 0, 0, 0.48) 100%),
        linear-gradient(180deg, rgba(0,0,0,0.00) 0%, rgba(0,0,0,0.58) 100%);
}

.vtx-link-card-photo-wrap {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: #0B0D0E;
}

.vtx-link-card-photo,
.vtx-link-card-photo-placeholder {
    width: 100%;
    height: 100%;
    min-height: 590px;
}

.vtx-link-card-photo {
    display: block;
    object-fit: cover;
    object-position: center 24%;

    filter: grayscale(85%) contrast(1.00) brightness(1.35);
    transform: scale(1.02);
    transform-origin: center 24%;

    transition:
        transform 220ms ease,
        filter 220ms ease,
        opacity 220ms ease;
}

.vtx-link-card:hover .vtx-link-card-photo {
    transform: scale(1.065);
    filter: grayscale(35%) contrast(1.03) brightness(1.45);
    opacity: 0.96;
}

.vtx-link-card-photo-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.4rem;

    background:
        radial-gradient(circle at top left, rgba(196, 154, 69, 0.20), transparent 34%),
        linear-gradient(135deg, #15191C, #0B0D0E);

    color: #F2EFE6;
    text-align: center;
    font-size: 1.15rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.vtx-link-card-body {
    position: absolute;
    inset: auto 0 0 0;
    z-index: 4;

    min-height: 350px;
    padding: 5.75rem 1rem 1rem;

    display: grid;
    grid-template-rows:
        0.8rem      /* shooter file */
        3.15rem     /* name */
        2.15rem     /* tagline */
        3.1rem      /* classification pills */
        minmax(5.25rem, auto);       /* links */
    gap: 0.55rem;

    background:
        linear-gradient(
            180deg,
            rgba(0, 0, 0, 0) 0%,
            rgba(0, 0, 0, 0.58) 30%,
            rgba(0, 0, 0, 0.88) 100%
        );
}

.vtx-link-card-topline {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;

    margin-bottom: 0.55rem;

    color: #C49A45;
    font-size: 0.64rem;
    font-weight: 900;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 0.16em;
}

.vtx-link-card-name {
    margin: 0;
    color: #F2EFE6;
    font-size: clamp(1.08rem, 1.32vw, 1.42rem);
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.vtx-link-card-name a {
    position: relative;
    z-index: 6;
    color: #F2EFE6;
    text-decoration: none;
}

.vtx-link-card-name a:hover {
    color: #C49A45;
}

.vtx-link-card-tagline {
    margin: 0.55rem 0 0.75rem;
    color: #D8D5CC;
    font-size: 0.78rem;
    line-height: 1.35;
    text-transform: uppercase;
    letter-spacing: 0.045em;
}

.vtx-link-card-classes {
    display: flex;
    flex-wrap: wrap;
    align-content: flex-start;
    gap: 0.35rem;
    min-height: 3.1rem;
    margin-bottom: 0;
}

.vtx-link-card-classes .vtx-class-pill {
    position: relative;
    z-index: 6;

    border-radius: 0;
    background: rgba(11, 13, 14, 0.82);
    border-color: rgba(242, 239, 230, 0.20);

    font-size: 0.68rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.vtx-link-card-links {
    position: relative;
    z-index: 6;
    align-self: end;
}

.vtx-link-card-links a {
    display: flex;
    justify-content: space-between;
    align-items: center;

    color: #F2EFE6;
    text-decoration: none;

    border-top: 1px solid rgba(242, 239, 230, 0.18);
    padding: 0.62rem 0;

    font-size: 0.72rem;
    font-weight: 900;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 0.14em;

    transition:
        color 160ms ease,
        padding-left 160ms ease;
}

.vtx-link-card-links a::after {
    content: ">";
    color: rgba(242, 239, 230, 0.45);
}

.vtx-link-card-links a:hover {
    color: #C49A45;
    padding-left: 0.45rem;
}

.vtx-link-card-links a:hover::after {
    color: #C49A45;
}

.vtx-link-hub-empty {
    color: #F2EFE6;
    text-align: center;
}

/* Link hub tablet */
@media (max-width: 1250px) {
    .vtx-link-hub-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .vtx-link-card {
        min-height: 560px;
    }

    .vtx-link-card-photo,
    .vtx-link-card-photo-placeholder {
        min-height: 560px;
    }
}

/* Link hub mobile */
@media (max-width: 700px) {
    .vtx-link-hub {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    .vtx-link-hub-grid {
        grid-template-columns: 1fr;
    }

    .vtx-link-card {
        min-height: 590px;
    }

    .vtx-link-card-photo,
    .vtx-link-card-photo-placeholder {
        min-height: 590px;
    }

    .vtx-link-card-photo {
        object-position: center 22%;
        transform-origin: center 22%;
    }
}
