/**
 * GMSU Showcase Builder — Frontend Styles
 * Premium dark blue aesthetic, responsive grid & slider
 * POLISHED & RESPONSIVE VERSION
 */

/* =========================================================
   GRID WRAPPER
   ========================================================= */

.gmsu-sc-grid-wrap {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 16px;
    box-sizing: border-box;
}

.gmsu-sc-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 28px;
    width: 100%;
}

.gmsu-sc-grid > div {
    flex: 0 1 360px;
    width: 100%;
    max-width: 360px;
    display: flex;
    align-items: stretch;
}

@media (max-width: 1200px) {
    .gmsu-sc-grid > div {
        flex: 0 1 calc(33.333% - 20px);
    }
}

@media (max-width: 992px) {
    .gmsu-sc-grid > div {
        flex: 0 1 calc(50% - 20px);
    }
}

@media (max-width: 600px) {
    .gmsu-sc-grid > div {
        flex: 0 1 100%;
        max-width: 100%;
    }
}

/* =========================================================
   SLIDER WRAPPER
   ========================================================= */

.gmsu-sc-slider-wrap {
    position: relative;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
}

.gmsu-slider-track {
    display: flex;
    will-change: transform;
    cursor: grab;
    user-select: none;
}
.gmsu-slider-track:active { cursor: grabbing; }

.gmsu-slide {
    flex-shrink: 0;
    padding: 0 clamp(7px, 1vw, 14px);
    box-sizing: border-box;
    width: 100%;
}

/* =========================================================
   NAVIGATION ARROWS
   ========================================================= */

.gmsu-sl-prev,
.gmsu-sl-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(26, 35, 126, 0.85);
    border: 2px solid rgba(245, 185, 66, 0.4);
    color: #fff;
    width: clamp(36px, 4vw, 46px);
    height: clamp(36px, 4vw, 46px);
    border-radius: 50%;
    font-size: clamp(20px, 2vw, 26px);
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.25s, border-color 0.25s, transform 0.2s;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}
.gmsu-sl-prev:hover,
.gmsu-sl-next:hover {
    background: #f5b942;
    border-color: #f5b942;
    color: #000;
    transform: translateY(-50%) scale(1.08);
}
.gmsu-sl-prev { left: 8px; }
.gmsu-sl-next { right: 8px; }

/* =========================================================
   DOTS PAGINATION
   ========================================================= */

.gmsu-sl-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 18px 0 8px;
}

.gmsu-sl-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background 0.3s, transform 0.3s;
}
.gmsu-sl-dot.active {
    background: #f5b942;
    transform: scale(1.4);
}
.gmsu-sl-dot:hover { background: rgba(245, 185, 66, 0.6); }

/* =========================================================
   CARD
   ========================================================= */

.gmsu-sc-card {
    background: linear-gradient(145deg, #0d1b2e 0%, #0c1a2d 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    overflow: hidden;
    transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                box-shadow 0.35s ease,
                border-color 0.35s;
    display: flex;
    flex-direction: column;
    position: relative;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.gmsu-sc-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(245, 185, 66, 0.15);
    border-color: rgba(245, 185, 66, 0.25);
}

/* =========================================================
   CARD IMAGE AREA
   ========================================================= */

.gmsu-sc-card-image {
    position: relative;
    width: 100%;
    height: clamp(160px, 22vw, 260px); /* COMPACT & RESPONSIVE */
    overflow: hidden;
    background: #0c1a2d;
}

.gmsu-sc-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.gmsu-sc-card:hover .gmsu-sc-card-image img {
    transform: scale(1.06);
}

/* Hover Overlay */
.gmsu-sc-card-overlay {
    position: absolute;
    inset: 0;
    background: rgba(7, 17, 31, 0.85);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: clamp(8px, 1vw, 12px);
    opacity: 0;
    transition: opacity 0.35s ease;
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    z-index: 5;
}

.gmsu-sc-card:hover .gmsu-sc-card-overlay {
    opacity: 1;
}

.gmsu-sc-overlay-btn {
    padding: clamp(8px, 1vw, 10px) clamp(16px, 2vw, 24px);
    border-radius: 50px;
    font-weight: 700;
    font-size: clamp(12px, 1.2vw, 14px);
    cursor: pointer;
    text-decoration: none;
    border: 2px solid;
    transition: all 0.25s;
    letter-spacing: 0.5px;
    display: inline-block;
    text-align: center;
    min-width: clamp(100px, 10vw, 130px);
}

.gmsu-sc-btn-profile {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.6);
    color: #fff;
}
.gmsu-sc-btn-profile:hover {
    background: #fff;
    color: #07111f;
    border-color: #fff;
}

.gmsu-sc-btn-vote {
    background: #f5b942;
    border-color: #f5b942;
    color: #000;
}
.gmsu-sc-btn-vote:hover {
    background: #e0a52d;
    border-color: #e0a52d;
}

/* Category Badge */
.gmsu-sc-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: linear-gradient(135deg, #f5b942, #e0a52d);
    color: #000;
    font-size: clamp(9px, 0.8vw, 11px);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 4px 10px;
    border-radius: 50px;
    z-index: 2;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

/* Votes chip */
.gmsu-sc-votes-chip {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: rgba(7, 17, 31, 0.75);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: clamp(11px, 1vw, 13px);
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 50px;
    z-index: 2;
}

/* =========================================================
   CARD BODY
   ========================================================= */

.gmsu-sc-card-body {
    padding: clamp(14px, 1.5vw, 20px);
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.gmsu-sc-card-name {
    margin: 0 0 6px;
    font-size: clamp(16px, 1.8vw, 22px);
    font-weight: 700;
    color: #ffffff;
    line-height: 1.2;
}

.gmsu-sc-card-field {
    display: flex;
    align-items: baseline;
    gap: 6px;
    font-size: clamp(12px, 1.2vw, 14px);
    margin-bottom: 2px;
}

.gmsu-sc-field-label {
    color: rgba(255, 255, 255, 0.4);
    font-size: clamp(10px, 0.9vw, 11px);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    white-space: nowrap;
    flex-shrink: 0;
}

.gmsu-sc-field-val {
    color: rgba(255, 255, 255, 0.85);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Social Links */
.gmsu-sc-social {
    display: flex;
    gap: 6px;
    margin-top: 8px;
    flex-wrap: wrap;
}

.gmsu-sc-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: clamp(28px, 3vw, 32px);
    height: clamp(28px, 3vw, 32px);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-decoration: none;
    font-size: clamp(14px, 1.4vw, 16px);
    transition: all 0.2s;
}
.gmsu-sc-social-link:hover {
    background: rgba(245, 185, 66, 0.15);
    border-color: rgba(245, 185, 66, 0.4);
    transform: translateY(-2px);
}

/* Card Actions Footer */
.gmsu-sc-card-actions {
    display: flex;
    gap: 8px;
    margin-top: auto;
    padding-top: 12px;
}

.gmsu-sc-btn {
    flex: 1;
    padding: clamp(8px, 1vw, 10px) clamp(10px, 1.2vw, 14px);
    border-radius: 10px;
    font-weight: 700;
    font-size: clamp(12px, 1.2vw, 14px);
    text-align: center;
    cursor: pointer;
    text-decoration: none;
    border: none;
    transition: all 0.25s;
    display: block;
}

.gmsu-sc-btn-primary {
    background: linear-gradient(135deg, #f5b942, #e0a52d);
    color: #000;
}
.gmsu-sc-btn-primary:hover {
    background: linear-gradient(135deg, #e0a52d, #c98f1a);
    box-shadow: 0 4px 12px rgba(245, 185, 66, 0.25);
}

.gmsu-sc-btn-outline {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.8);
}
.gmsu-sc-btn-outline:hover {
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
}

.gmsu-sc-btn-paid {
    background: #f5b942;
    color: #000;
}
.gmsu-sc-btn-paid:hover {
    background: #e0a52d;
    box-shadow: 0 4px 12px rgba(245, 185, 66, 0.3);
}

.gmsu-paid-vote-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 8px;
}

.gmsu-vote-qty-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: rgba(255,255,255,0.6);
}

.gmsu-vote-qty {
    width: 60px !important;
    padding: 4px 6px !important;
    background: rgba(255,255,255,0.05) !important;
    border: 1px solid rgba(255,255,255,0.1) !important;
    border-radius: 6px !important;
    color: #fff !important;
    text-align: center !important;
    font-weight: 700 !important;
}

.gmsu-sc-error-small {
    font-size: 11px;
    color: #ff4d4d;
    margin: 4px 0 0;
    text-align: center;
}

/* =========================================================
   MOBILE / RESPONSIVE TWEAKS
   ========================================================= */

@media (max-width: 600px) {
    .gmsu-sc-grid {
        grid-template-columns: 1fr !important;
        gap: 16px;
    }
    .gmsu-sc-card-image { height: 200px; }
    .gmsu-sc-card-actions { flex-direction: column; }
    .gmsu-sc-btn { width: 100%; }
}

/* Elementor container safety */
.gmsu-showcase-wrap {
    max-width: 100%;
    overflow: hidden;
}
