/* ============================= */
/* BASE */
/* ============================= */

html {
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

html {
    position: relative;
    min-height: 100%;
}

body {
    margin-bottom: 60px;
}

.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

/* ============================= */
/* COMPETITION CARD */
/* ============================= */

.competition-image {
    width: 100%;
    max-height: 300px;
    object-fit: contain;
    background-color: #f8f9fa;
    padding: 12px;
}

@media (max-width: 768px) {
    .competition-image {
        max-height: 220px;
    }
}

/* ============================= */
/* PLAY PAGE LAYOUT */
/* ============================= */

.play-container {
    max-width: 900px;
    margin: 0 auto;
}

.game-card {
    border-radius: 12px;
    overflow: hidden;
}

/* ============================= */
/* GAME IMAGE + ZOOM ARCHITECTURE */
/* ============================= */

/* Viewport (clipping area) */
.game-image-wrapper {
    position: relative;
    overflow: hidden;
    background: #000;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Scaled canvas (image + markers) */
.game-image-canvas {
    position: relative;
    transform-origin: center center;
    transition: transform 0.2s ease;
}

/* Game image */
#gameImage {
    width: 100%;
    max-height: 500px;
    object-fit: contain;
    display: block;
}

/* ============================= */
/* ENTRY MARKERS */
/* ============================= */

.entry-marker {
    position: absolute;
    width: 2px;
    height: 2px;
    /*background: red;*/
    border-radius: 50%;
    border: 1px solid #ffffff;
    transform: translate(-50%, -50%);
    pointer-events: none;
    box-shadow: 0 0 4px rgba(0,0,0,0.6);
    z-index: 10;
}

/* ============================= */
/* ZOOM CONTROLS */
/* ============================= */

.zoom-controls {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 10px;
    background: #f8f9fa;
}

    .zoom-controls button {
        min-width: 44px;
    }

/* ============================= */
/* MOBILE TWEAKS */
/* ============================= */

@media (max-width: 768px) {
    #gameImage {
        max-height: 65vh;
    }
}

/* =========================
   Admin Quick Panel
   ========================= */

.admin-panel {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
}

.admin-toggle {
    border-radius: 20px;
    padding: 6px 14px;
    font-weight: 600;
}

.admin-links {
    display: none;
    margin-top: 8px;
    background: #212529;
    border-radius: 8px;
    padding: 10px;
    min-width: 220px;
}

    .admin-links.show {
        display: block;
    }

    .admin-links a {
        display: block;
        color: #fff;
        text-decoration: none;
        padding: 6px 0;
        font-size: 14px;
    }

        .admin-links a:hover {
            text-decoration: underline;
        }


/* =========================
   Competition Status Badges
   ========================= */

.status-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
}

.status-open {
    background-color: #28a745; /* green */
}

.status-closed {
    background-color: #fd7e14; /* orange */
}

.status-winner {
    background-color: #d4af37; /* gold */
    color: #000;
}


.navbar-brand img {
    max-height: 80px; /* was 70px */
    width: auto;
}

.navbar-brand span {
    font-size: 1.25rem;
}

.pinpoint-trust-badge .badge {
    font-size: 0.75rem;
    padding: 0.45em 0.6em;
}

.pinpoint-trust-badge {
    white-space: nowrap;
}

footer a:hover {
    text-decoration: underline;
}

/* ============================
   Legal & Info Pages Styling
   ============================ */

.page-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

    .page-content h1 {
        font-size: 2rem;
        font-weight: 700;
        margin-bottom: 1.5rem;
    }

    .page-content h3 {
        margin-top: 2rem;
        margin-bottom: 0.75rem;
        font-size: 1.2rem;
        font-weight: 600;
    }

    .page-content p {
        line-height: 1.7;
        color: #333;
    }

    .page-content ul {
        padding-left: 1.2rem;
        margin-bottom: 1.25rem;
    }

        .page-content ul li {
            margin-bottom: 0.5rem;
        }

    /* Section divider feel */
    .page-content h3::before {
        content: "";
        display: block;
        width: 40px;
        height: 3px;
        background-color: #28a745; /* PinPoint green */
        margin-bottom: 0.5rem;
    }

    /* Muted metadata text */
    .page-content .text-muted,
    .page-content small {
        color: #6c757d;
    }

    /* ============================
   Contact Form Styling
   ============================ */

    .page-content form {
        background-color: #f8f9fa;
        border-radius: 6px;
        padding: 1.5rem;
        margin-top: 1.5rem;
    }

    .page-content .form-label {
        font-weight: 600;
    }

    .page-content .btn-success {
        padding: 0.5rem 1.25rem;
    }
    .page-content > p:first-of-type {
        font-size: 1.05rem;
        color: #555;
    }

/* ============================
   Identity (Login / Register)
   ============================ */

.identity-container {
    max-width: 420px;
    margin: 3rem auto;
    padding: 2rem;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

    .identity-container h1,
    .identity-container h2 {
        text-align: center;
        font-weight: 700;
        margin-bottom: 1.5rem;
    }

    .identity-container .form-label {
        font-weight: 600;
    }

    .identity-container .form-control {
        padding: 0.55rem 0.75rem;
        border-radius: 6px;
    }

    .identity-container .btn-primary {
        width: 100%;
        padding: 0.6rem;
        font-weight: 600;
    }

    .identity-container .btn-success {
        width: 100%;
        padding: 0.6rem;
        font-weight: 600;
    }

    .identity-container .form-check-label {
        font-size: 0.9rem;
    }

    .identity-container .text-muted {
        font-size: 0.9rem;
    }

    .identity-container .links {
        text-align: center;
        margin-top: 1rem;
    }

        .identity-container .links a {
            text-decoration: none;
        }

            .identity-container .links a:hover {
                text-decoration: underline;
            }

.identity-logo {
    display: block;
    margin: 0 auto 1.25rem;
    max-width: 160px;
    width: 100%;
    height: auto;
}
@media (max-width: 576px) {
    .identity-logo {
        max-width: 130px;
    }
}
.identity-logo {
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.12));
}

/* ============================
   Index Page – Competitions
   ============================ */

.card {
    border-radius: 10px;
    overflow: hidden;
    border: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

    .card:hover {
        transform: translateY(-4px);
        box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
    }

.competition-image {
    width: 100%;
    height: auto;
    max-height: 240px;
    object-fit: contain;
    background-color: #f8f9fa;
}

.status-badge {
    display: inline-block;
    padding: 0.35em 0.7em;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status-open {
    background-color: #28a745;
    color: #ffffff;
}

.status-closed {
    background-color: #ffc107;
    color: #212529;
}

.status-winner {
    background-color: #6c757d;
    color: #ffffff;
}

.progress {
    border-radius: 6px;
    background-color: #e9ecef;
}

.progress-bar {
    border-radius: 6px;
}

.card-text {
    font-size: 0.95rem;
}

.btn-primary {
    background-color: #28a745;
    border-color: #28a745;
    font-weight: 600;
}

    .btn-primary:hover {
        background-color: #218838;
        border-color: #1e7e34;
    }

.card-body {
    padding: 1.25rem;
}

.card-title {
    font-weight: 700;
    margin-bottom: 0.5rem;
}


@media (max-width: 576px) {
    .competition-image {
        height: 180px;
    }
}

.navbar-nav .nav-link {
    font-weight: 500;
}

    .navbar-nav .nav-link:hover {
        color: #28a745;
    }

/* ============================
   Navbar Hover & Active Styles
   ============================ */

.navbar-nav .nav-link {
    position: relative;
    font-weight: 500;
    color: #212529;
    transition: color 0.15s ease;
}

    .navbar-nav .nav-link:hover,
    .navbar-nav .nav-link:focus {
        color: #28a745; /* PinPoint green */
    }

    /* Underline animation */
    .navbar-nav .nav-link::after {
        content: "";
        position: absolute;
        left: 0;
        bottom: 4px;
        width: 0;
        height: 2px;
        background-color: #28a745;
        transition: width 0.2s ease;
    }

    .navbar-nav .nav-link:hover::after,
    .navbar-nav .nav-link.active::after {
        width: 100%;
    }

    /* Active page link */
    .navbar-nav .nav-link.active {
        color: #28a745;
        font-weight: 600;
    }

    .navbar-nav .nav-link::after {
        height: 3px;
    }

    .navbar-nav .nav-link::after {
        left: 50%;
        transform: translateX(-50%);
    }

/* ============================
   Winners Page Styling
   ============================ */

.winner-page h2 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 2rem;
}

/* Reuse competition cards but elevate them slightly */
.winner-page .card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

    .winner-page .card:hover {
        transform: translateY(-4px);
        box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
    }
.winner-page dl {
    margin-bottom: 0;
}

.winner-page dt {
    font-weight: 600;
    color: #6c757d;
}

.winner-page dd {
    font-weight: 600;
}

.winner-page .alert-success {
    background-color: #eaf8f0;
    border: none;
    color: #155724;
    font-size: 0.85rem;
}

@media (max-width: 576px) {
    .winner-page h2 {
        font-size: 1.8rem;
    }
}

.modal-body img {
    display: block;
    margin-left: auto;
    margin-right: auto;
    max-height: 320px;
    object-fit: contain;
    background-color: #f8f9fa;
    padding: 0.5rem;
    border-radius: 6px;
}

/* ============================
   Prize Specifications List
   ============================ */

.prize-spec-list {
    padding-left: 1.2rem;
    margin-bottom: 1rem;
}

    .prize-spec-list li {
        margin-bottom: 0.35rem;
        font-size: 0.95rem;
    }
/* ============================
   Prize Modal – Mobile First
   ============================ */

@media (max-width: 576px) {

    .modal-dialog {
        margin: 0;
        max-width: 100%;
        height: 100%;
    }

    .modal-content {
        border-radius: 0;
        height: 100%;
    }

    .modal-body {
        padding: 1rem;
    }

        .modal-body img {
            max-height: 220px;
        }

    .modal-header {
        position: sticky;
        top: 0;
        background-color: #fff;
        z-index: 10;
        border-bottom: 1px solid #dee2e6;
    }

    .modal-body h6 {
        font-weight: 700;
        margin-top: 1rem;
    }

    /* ============================
   Prize Modal Disclaimer
   ============================ */

    .prize-disclaimer {
        font-size: 0.85rem;
        color: #155724;
        background-color: #eaf8f0;
        padding: 0.75rem;
        border-radius: 6px;
        margin-top: 1rem;
    }

    /* ============================
   Competition Countdown
   ============================ */

    .competition-countdown {
        display: flex;
        justify-content: center;
        align-items: center;
        text-align: center;
        font-size: 0.85rem;
        font-weight: 600;
        color: #dc3545;
        margin-bottom: 0.5rem;
    }

}
.entry-marker,
.hover-marker {
    position: absolute;
    width: 20px;      /* bigger X */
    height: 20px;
    pointer-events: none;
    z-index: 10;
}

/* two crossing lines forming an X, centered in the box */
.entry-marker::before,
.entry-marker::after,
.hover-marker::before,
.hover-marker::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 1px;       /* thicker lines */
    height: 100%;
    background: #000; /* black */
    box-shadow: 0 0 2px rgba(255,255,255,0.9);
    transform-origin: center center;
}

.entry-marker::before,
.hover-marker::before {
    transform: translate(-50%, -50%) rotate(45deg);
}

.entry-marker::after,
.hover-marker::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

#entryList .list-group-item.active {
    background-color: #eaf8f0;
    border-color: #28a745;
    font-weight: 600;
}
