@import url('https://fonts.googleapis.com/css2?family=Pixelify+Sans&display=swap');

/* Main Title Font */
.font-pixelify {
    font-family: 'Pixelify Sans', sans-serif;
    color: rgb(203, 250, 208);
    letter-spacing: 2px;
}

/* Secondary / Card Titles Font */
.font-franklin {
    font-family: Arial, Helvetica, sans-serif;
    font-weight: 600;
}

/* General Text */
body {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 1.05rem;
    font-weight: 500;
    scrollbar-width: thin;
    scrollbar-color: #000 #fff;
    background-color: #1e2124;
    /* Dark gray similar to screenshot */
    color: #fff;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 1px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #888;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Colors */
.card-green {
    background-color: rgb(68, 129, 79);
    transition: transform 0.2s, box-shadow 0.2s;
    margin-top: 0 !important;
}

.video-card-link {
    display: block;
}

.video-card-link:hover .card-green {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3) !important;
}

.card-text-light {
    color: rgb(221, 255, 223);
    margin: 0;
    line-height: 1.3;
    font-size: 1.1rem;
    text-align: left;
}

.text-mint {
    color: rgb(203, 250, 208);
}

/* Social Icons */
.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    color: white;
    font-size: 1.6rem;
    text-decoration: none;
    transition: transform 0.2s;
}

.social-icon:hover {
    transform: scale(1.1);
    color: white;
}

.instagram {
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
    border-radius: 12px;
}

.x-twitter {
    background-color: #000;
    border: 1px solid #333;
    border-radius: 50%;
}

.discord {
    background-color: #5865F2;
    border-radius: 12px;
}

.gmail {
    background-color: #fff;
    color: #ea4335;
    border-radius: 10px;
    font-size: 1.8rem;
}

/* Category Buttons */
.btn-category {
    padding: 10px 48px;
    font-family: Arial, Helvetica, sans-serif;
    font-weight: bold;
    font-size: 1.15rem;
    color: white;
    border: none;
    border-radius: 4px;
    transition: opacity 0.2s;
}

.btn-category-active {
    background-color: #2b844b;
    box-shadow: 0 0 0 2px rgba(203, 250, 208, 0.3);
}

.btn-category-inactive {
    background-color: #6c757d;
}

.btn-category:hover {
    color: #fff;
    opacity: 0.8;
}

/* Search Box Container */
.search-container {
    max-width: 300px;
    width: 100%;
}

.search-input {
    background-color: #212529;
    color: #f8f9fa;
    border: 1px solid #495057;
    border-radius: 4px;
    padding: 0.5rem 1rem;
}

.search-input:focus {
    background-color: #212529;
    color: #f8f9fa;
    border-color: rgb(203, 250, 208);
    box-shadow: none;
}

.search-input::placeholder {
    color: #6c757d;
}

/* Secondary Texts */
.text-secondary-small {
    color: #dfe1e4;
    font-size: 0.9rem;
}

/* Buttons */
.btn-success {
    background-color: #2b844b;
    color: rgb(203, 250, 208);
    font-weight: bold;
    border: none;
}

.btn-secondary {
    color: rgb(203, 250, 208);
    font-weight: bold;
}

.card-green .card-body {
    justify-content: flex-start !important;
}

.video-stats-row {
    margin-top: 1.5rem;
}

.card-thumbnail {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
}

/* Badge Positioning */
.badge-container {
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    gap: 4px;
    z-index: 10;
    border-radius: var(--bs-border-radius) 0 var(--bs-border-radius) 0;
}

/* "NEW" Pulsing Status Badge (Glowing Neon Pulse) */
.badge-status-new {
    background: linear-gradient(135deg, #ff1744 0%, #ff6d00 100%);
    color: #ffffff !important;
    font-family: Arial, Helvetica, sans-serif;
    font-weight: 700;
    font-size: 0.78rem;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    border: 1px solid rgba(255, 255, 255, 0.4);
    padding: 0.35em 0.65em;
    animation: badgeNewPulse 1.8s infinite ease-in-out;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
    user-select: none;
}

.badge-status-new i {
    font-size: 0.72rem;
    color: #fffb8f;
    filter: drop-shadow(0 0 4px rgba(255, 230, 0, 0.9));
}

@keyframes badgeNewPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 23, 68, 0.7), 0 2px 6px rgba(0, 0, 0, 0.4);
        transform: scale(1);
        opacity: 1;
    }
    50% {
        box-shadow: 0 0 14px 3px rgba(255, 82, 82, 0.9), 0 0 22px 6px rgba(255, 109, 0, 0.45);
        transform: scale(1.06);
        opacity: 0.88;
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 23, 68, 0), 0 2px 6px rgba(0, 0, 0, 0.4);
        transform: scale(1);
        opacity: 1;
    }
}

.video-card-link:hover .badge-status-new {
    animation-duration: 0.9s;
    box-shadow: 0 0 18px 5px rgba(255, 82, 82, 0.95);
}

/* Video Card Hover Overlay */
.video-hover-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 5;
    font-size: 1.2rem;
    font-weight: bold;
}

.video-card-link:hover .video-hover-overlay {
    opacity: 1;
}

/* Note Blur Effect */
.blur-text {
    color: transparent;
    text-shadow: 0 0 6px rgba(255, 255, 255, 0.8);
    user-select: none;
}

/* Links in guides. The server sends no address, only a marker; this is a blurred stand-in, so
   removing the blur in the inspector shows nothing real. */
.guide-link-hidden {
    display: inline-block;
    max-width: 100%;
    overflow: hidden;
    vertical-align: bottom;
    white-space: nowrap;
    color: transparent;
    text-shadow: 0 0 7px rgba(140, 200, 255, 0.95);
    user-select: none;
    -webkit-user-select: none;
    pointer-events: auto;
    cursor: not-allowed;
}

/* Note separator (replaces ==== and ---- lines) */
.note-separator {
    border: none;
    border-top: 2px dashed rgba(203, 250, 208, 0.3);
    margin: 0.8rem 0;
}

/* About Me Section */
.about-me-section {
    padding: 0.5rem 0 0.8rem;
}

.about-me-card {
    background: linear-gradient(135deg, rgba(43, 132, 75, 0.15) 0%, rgba(30, 33, 36, 0.95) 100%);
    border: 1px solid rgba(203, 250, 208, 0.15);
    border-radius: 12px;
    padding: 1.2rem 1.8rem;
    position: relative;
    overflow: hidden;
}

.about-me-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, rgb(203, 250, 208), #2b844b);
    border-radius: 12px 0 0 12px;
}

.about-me-card h2 {
    font-size: 1.4rem;
    margin-bottom: 0.6rem !important;
}

.about-me-content p {
    color: #c4c8cc;
    font-size: 0.85rem;
    line-height: 1.55;
    margin-bottom: 0.4rem;
}

.about-me-content strong {
    color: rgb(203, 250, 208);
}

.about-me-cta {
    background-color: rgba(43, 132, 75, 0.2);
    border: 1px solid rgba(203, 250, 208, 0.15);
    border-radius: 8px;
    padding: 0.5rem 0.8rem !important;
    margin-top: 0.3rem !important;
    color: #a5d6a7 !important;
    font-size: 0.82rem !important;
}

.about-me-stats {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    margin-top: 0.8rem;
    padding-top: 0.8rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 1.5rem;
    color: rgb(203, 250, 208);
    line-height: 1.2;
}

.stat-label {
    font-size: 0.7rem;
    color: #8a8f95;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* View Videos Scroll Button */
.view-videos-btn-wrapper {
    text-align: center;
    padding: 0.5rem 0 0;
}

.view-videos-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    border: 1px solid rgba(203, 250, 208, 0.3);
    color: rgb(203, 250, 208);
    padding: 6px 20px;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.view-videos-btn:hover {
    background-color: rgba(43, 132, 75, 0.3);
    border-color: rgb(203, 250, 208);
    color: rgb(203, 250, 208);
    text-decoration: none;
}

.view-videos-btn .arrow-down {
    animation: arrowBounce 1.5s infinite;
    display: inline-block;
}

@keyframes arrowBounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(4px);
    }
}

/* Admin nav tabs: active tab text green */
#adminTabs .nav-link.active {
    color: rgb(203, 250, 208) !important;
}

/* Admin Category Pills / Tabs */
.admin-cat-pill {
    background-color: #22272b;
    color: #c4c8cc;
    border: 1px solid #3d444d;
    border-radius: 8px;
    padding: 7px 16px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.admin-cat-pill:hover {
    background-color: #2d333b;
    color: #fff;
    border-color: #58a6ff;
    transform: translateY(-1px);
}

.admin-cat-pill.active {
    background: linear-gradient(135deg, #1b4b2c 0%, #2b844b 100%);
    color: #ffffff !important;
    border-color: rgb(203, 250, 208);
    box-shadow: 0 0 12px rgba(203, 250, 208, 0.35);
}

.admin-cat-pill .admin-cat-count {
    background-color: #1a1e22;
    color: #e6edf3 !important;
    border: 1px solid #484f58;
    font-size: 0.8rem;
    padding: 2px 8px;
    border-radius: 12px;
    font-weight: 600;
}

.admin-cat-pill.active .admin-cat-count {
    background-color: rgba(0, 0, 0, 0.5);
    color: rgb(203, 250, 208) !important;
    border-color: rgba(203, 250, 208, 0.4);
}

.modal-cat-badge {
    background-color: #2b3035 !important;
    color: #58a6ff !important;
    border: 1px solid #484f58 !important;
    font-size: 0.82rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.modal-cat-badge i {
    color: rgb(203, 250, 208);
}

.modal-cat-item {
    transition: background-color 0.15s ease;
}

.modal-cat-item:hover {
    background-color: #262b30 !important;
}

/* Category Restriction Country Badges */
.country-tag-badge {
    background-color: #212529;
    border: 1px solid #495057;
    color: #e9ecef;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.88rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background-color 0.2s ease;
}

.country-tag-badge:hover {
    background-color: #2c3238;
}

.country-tag-badge .remove-cat-country-btn {
    cursor: pointer;
    color: #ff6b6b;
    background: none;
    border: none;
    padding: 0;
    font-size: 0.8rem;
    line-height: 1;
}

.country-tag-badge .remove-cat-country-btn:hover {
    color: #ff3333;
}

/* Hide Google reCAPTCHA Badge */
.grecaptcha-badge {
    visibility: hidden !important;
}

/* Telegram Contact Widget */
.chat-widget-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.chat-widget-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #388e3c;
    color: white;
    font-size: 24px;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, background-color 0.3s ease;
    margin-top: 15px;
}

.chat-widget-btn:hover {
    transform: scale(1.1);
    background-color: #2b702e;
}

.chat-widget-form {
    width: 320px;
    background-color: #1e1e1e;
    border: 1px solid #495057;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease-in-out;
    transform-origin: bottom right;
}

.chat-widget-form.d-none {
    display: none !important;
}

.chat-header {
    background-color: #212529;
}

/* Chat Quick Reply Pills */
.chat-pill-btn {
    background-color: #2c2c2c;
    color: #e0e0e0;
    border: 1px solid #444;
    border-radius: 20px;
    font-size: 0.8rem;
    padding: 4px 12px;
    transition: all 0.2s ease;
}

.chat-pill-btn:hover,
.chat-pill-btn:active,
.chat-pill-btn:focus {
    background-color: #388e3c;
    color: #fff;
    border-color: #388e3c;
    outline: none;
    box-shadow: none;
}

/* Chat Notification Tooltip */
.chat-notification {
    background-color: #2c2c2c;
    color: rgb(203, 250, 208);
    /* same as .text-mint */
    padding: 12px 18px;
    border-radius: 12px;
    font-size: 0.95rem;
    position: absolute;
    bottom: 85px;
    /* Above the button wrapper */
    right: 0;
    width: max-content;
    text-align: right;
    border: 1px solid #388e3c;
    z-index: 1000;
    animation: fadeInTooltip 0.5s ease-out forwards;
    pointer-events: none;
}

/* Tooltip tail (triangle pointer) */
.chat-notification::after {
    content: '';
    position: absolute;
    bottom: -8px;
    right: 25px;
    border-width: 8px 8px 0;
    border-style: solid;
    border-color: #388e3c transparent transparent transparent;
    display: block;
    width: 0;
}

.chat-notification::before {
    content: '';
    position: absolute;
    bottom: -7px;
    right: 25px;
    border-width: 7px 7px 0;
    border-style: solid;
    border-color: #2c2c2c transparent transparent transparent;
    display: block;
    width: 0;
    z-index: 1;
}

@keyframes fadeInTooltip {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Bounce Animation for Button */
.chat-widget-btn-bounce {
    animation: bounceBtn 2.5s infinite;
}

@keyframes bounceBtn {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-12px);
    }

    60% {
        transform: translateY(-6px);
    }
}

/* Skeleton Loading Cards */
.skeleton-card {
    background-color: rgb(68, 129, 79);
    border-radius: 4px;
    overflow: hidden;
    margin-top: 0;
}

.skeleton-thumbnail {
    width: 100%;
    aspect-ratio: 16/9;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.04) 25%, rgba(255, 255, 255, 0.12) 50%, rgba(255, 255, 255, 0.04) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

.skeleton-title {
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.skeleton-title-bar {
    height: 18px;
    width: 70%;
    border-radius: 4px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.06) 25%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.06) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* ==========================================
   MOBILE RESPONSIVE FIXES
   ========================================== */
@media (max-width: 576px) {

    /* Hide chat notification balloon on mobile — it overlaps content */
    .chat-notification {
        display: none !important;
    }

    /* Shrink the main title with fluid scaling */
    h1.display-3 {
        font-size: clamp(2rem, 8vw, 3.5rem) !important;
    }

    /* Social icons: smaller and tighter gap */
    .social-icon {
        width: 38px;
        height: 38px;
        font-size: 1.3rem;
    }

    .d-flex.justify-content-center.gap-5 {
        gap: 1.2rem !important;
    }

    /* Category buttons: compact on mobile */
    .btn-category {
        padding: 8px 24px;
        font-size: 1rem;
    }

    /* About Me card: reduce padding */
    .about-me-card {
        padding: 1rem 1rem;
    }

    .about-me-card h2 {
        font-size: 1.2rem;
    }

    .about-me-content p {
        font-size: 0.82rem;
        line-height: 1.5;
    }

    .about-me-stats {
        gap: 1.5rem;
    }

    .stat-number {
        font-size: clamp(1.3rem, 5vw, 1.5rem);
    }

    /* Chat widget form: full width on small screens */
    .chat-widget-form {
        width: calc(100vw - 32px);
        right: 0;
    }

    /* Video cards: 2-column layout adjustments */
    .card-text-light {
        display: -webkit-box;
        line-clamp: 2;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
        font-size: 0.78rem;
        line-height: 1.3;
        min-height: 2.6em;
    }

    .card-body {
        padding: 0.5rem 0.6rem !important;
    }

    /* Section headings */
    h2.font-pixelify {
        font-size: clamp(1.4rem, 5vw, 2rem);
    }

    h3.font-franklin {
        font-size: clamp(1.1rem, 4vw, 1.5rem);
    }

    /* Badges */
    .badge-container {
        gap: 2px;
    }

    .badge-container .badge,
    .badge-container span {
        font-size: 0.55rem !important;
        padding: 0.2em 0.4em !important;
        line-height: 1.2;
        max-width: 75px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .badge-container .badge i,
    .badge-container span i {
        font-size: 0.6rem;
        margin-right: 2px;
    }

    /* "In The Making" — hide text, keep only icon */
    .badge.bg-warning {
        font-size: 0;
        padding: 0.4em 0.5em;
        gap: 0;
    }

    .badge.bg-warning i {
        font-size: 0.85rem;
    }

    /* "NEW" Badge mobile sizing */
    .badge-status-new {
        font-size: 0.7rem !important;
        padding: 0.3em 0.55em !important;
        letter-spacing: 0.5px;
    }

    .badge-status-new i {
        font-size: 0.68rem !important;
    }

    /* Section spacing */
    #showcaseSection {
        margin-bottom: clamp(2rem, 6vw, 4rem) !important;
    }

    /* Container fluid padding */
    main.container {
        padding-left: clamp(0.5rem, 3vw, 1rem);
        padding-right: clamp(0.5rem, 3vw, 1rem);
    }

    /* Search bar and video count row */
    .search-container {
        max-width: 100%;
    }

    .video-stats-row .col-6 {
        font-size: 0.9rem;
    }
}

@media (max-width: 360px) {

    .badge-container .badge,
    .badge-container span {
        font-size: 0.5rem !important;
        padding: 0.15em 0.35em !important;
    }

    .card-text-light {
        font-size: 0.72rem;
    }

    .card-body {
        padding: 0.5rem !important;
    }
}

/* ==========================================
   ADMIN PANEL & MODAL HIGH-CONTRAST DARK THEME
   ========================================== */

.modal-content {
    background-color: #1a1d21 !important;
    color: #e6edf3 !important;
    border: 1px solid #30363d !important;
}

.modal-header {
    border-bottom: 1px solid #30363d !important;
}

.modal-footer {
    border-top: 1px solid #30363d !important;
}

.modal-title {
    color: rgb(203, 250, 208) !important;
}

.modal-body label,
.modal-body .form-label,
.modal-body .form-check-label,
#addVideoForm label,
#editVideoForm label,
#modalAddCategoryForm label,
#editCategoryForm label,
.card-green label,
.card-green .form-label,
.card-green .form-check-label {
    color: #e6edf3 !important;
    font-weight: 500;
}

.modal-body .card {
    background-color: #121518 !important;
    border: 1px solid #30363d !important;
}

.modal-body .card-header {
    background-color: #1a1e23 !important;
    color: #f0f6fc !important;
    border-bottom: 1px solid #30363d !important;
}

.modal-body .card-header span {
    color: #f0f6fc !important;
}

.modal-body .text-muted,
.modal-body .text-secondary,
.card-body .text-muted,
.card-body .text-secondary {
    color: #9da7b3 !important;
}

.modal-body small,
.card-body small {
    color: #9da7b3 !important;
}

.modal-body .form-control,
.modal-body .form-select,
.card .form-control,
.card .form-select {
    background-color: #0d1117 !important;
    color: #f0f6fc !important;
    border: 1px solid #30363d !important;
}

.modal-body .form-control::placeholder,
.card .form-control::placeholder {
    color: #6e7681 !important;
}

.modal-body .form-control:focus,
.modal-body .form-select:focus,
.card .form-control:focus,
.card .form-select:focus {
    border-color: rgb(203, 250, 208) !important;
    box-shadow: 0 0 0 0.25rem rgba(203, 250, 208, 0.25) !important;
    background-color: #0d1117 !important;
    color: #ffffff !important;
}

#categoryList .list-group-item {
    background-color: #121518 !important;
    color: #f0f6fc !important;
    border: 1px solid #30363d !important;
}

#categoryList .list-group-item:hover {
    background-color: #1a1f26 !important;
}
/* ==========================================
   PUBLIC SITE LAYOUT (index.html only, scoped to body.site-public)
   ========================================== */

.site-public {
    --bp-bg: #1e2124;
    --bp-surface: #272b30;
    --bp-surface-2: #30353b;
    --bp-border: rgba(255, 255, 255, 0.08);
    --bp-text: #f1f3f5;
    --bp-muted: #a3aab2;
    --bp-mint: rgb(203, 250, 208);
    --bp-mint-strong: #9ef0a9;
    --bp-mint-ink: #12301a;
    --bp-header-h: 60px;
    background-color: var(--bp-bg);
    color: var(--bp-text);
    padding-bottom: 72px; /* room for the floating contact button */
}

html:has(.site-public) {
    scroll-padding-top: calc(var(--bp-header-h, 60px) + 12px);
    scroll-behavior: smooth;
}

.site-public :focus-visible {
    outline: 2px solid var(--bp-mint);
    outline-offset: 2px;
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 900;
    background: rgba(30, 33, 36, 0.92);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--bp-border);
}

.site-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    height: var(--bp-header-h);
}

.site-logo {
    font-size: 1.6rem;
    text-decoration: none;
    white-space: nowrap;
    line-height: 1;
}

.site-logo:hover {
    color: var(--bp-mint);
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.site-nav a,
.site-nav button {
    color: var(--bp-text);
    text-decoration: none;
    font-size: 0.95rem;
    padding: 0.45rem 0.8rem;
    border-radius: 6px;
    background: none;
    border: 1px solid transparent;
    white-space: nowrap;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.site-nav a:hover,
.site-nav button:hover {
    background-color: var(--bp-surface-2);
    color: #fff;
}

.site-nav-cta {
    border-color: rgba(203, 250, 208, 0.45) !important;
    color: var(--bp-mint) !important;
    margin-left: 0.25rem;
}

/* Sections */
.home-section {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
}

.home-latest {
    padding-top: 1.75rem;
}

.section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    margin: 2.25rem 0 1rem;
}

.home-latest .featured-mod + .section-head {
    margin-top: 2rem;
}

.section-title {
    font-size: 1.75rem;
    margin: 0;
}

.section-subtitle {
    color: var(--bp-muted);
    font-size: 1.05rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 2rem 0 1rem;
}

.section-link {
    color: var(--bp-muted);
    text-decoration: none;
    font-size: 0.95rem;
}

.section-link:hover {
    color: var(--bp-mint);
}

/* Buttons */
.btn-mint {
    background-color: var(--bp-mint);
    color: var(--bp-mint-ink);
    border: none;
    font-weight: 700;
    padding: 0.65rem 1.4rem;
    border-radius: 6px;
}

.btn-mint:hover,
.btn-mint:focus-visible {
    background-color: var(--bp-mint-strong);
    color: var(--bp-mint-ink);
}

.btn-mint:disabled {
    background-color: var(--bp-mint);
    color: var(--bp-mint-ink);
    opacity: 0.7;
}

.btn-ghost {
    background: transparent;
    color: var(--bp-text);
    border: 1px solid rgba(255, 255, 255, 0.22);
    padding: 0.65rem 1.2rem;
    border-radius: 6px;
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
    background-color: var(--bp-surface-2);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.35);
}

.btn-light-strong {
    background-color: #f1f3f5;
    color: #15181b;
    border: none;
    font-weight: 700;
    padding: 0.65rem 1.4rem;
    border-radius: 6px;
}

.btn-light-strong:hover,
.btn-light-strong:focus-visible {
    background-color: #fff;
    color: #000;
}

/* Featured mod */
.featured-mod {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: 2rem;
    align-items: center;
}

.featured-media {
    display: block;
    position: relative;
    aspect-ratio: 16 / 9;
    border-radius: 10px;
    overflow: hidden;
    background-color: var(--bp-surface);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

.featured-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.featured-media:hover img {
    transform: scale(1.02);
}

.featured-media .skeleton-thumbnail {
    height: 100%;
}

.featured-kicker {
    display: inline-block;
    font-size: 0.95rem;
    margin-bottom: 0.6rem;
}

.featured-title {
    font-size: clamp(1.6rem, 2.6vw, 2.3rem);
    font-weight: 700;
    line-height: 1.15;
    color: #fff;
    margin: 0 0 0.6rem;
}

.featured-meta,
.mod-detail-meta {
    color: var(--bp-muted);
    font-size: 0.95rem;
    margin: 0 0 0.9rem;
}

.featured-meta strong,
.mod-detail-meta strong {
    color: var(--bp-text);
}

.featured-dot {
    margin: 0 0.35rem;
    opacity: 0.6;
}

.featured-tagline,
.mod-detail-tagline {
    font-size: 1.15rem;
    line-height: 1.5;
    color: #dfe3e7;
    margin: 0 0 1rem;
}

.mod-version-chip {
    display: inline-block;
    background-color: var(--bp-surface-2);
    color: var(--bp-text);
    border: 1px solid var(--bp-border);
    border-radius: 999px;
    padding: 0.25rem 0.8rem;
    font-size: 0.85rem;
    margin-bottom: 1.25rem;
}

.featured-actions,
.mod-detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

/* Trust line + catalog toolbar */
.trust-line {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.4rem 1rem;
    color: var(--bp-muted);
    font-size: 0.95rem;
    margin: 1.25rem 0 0;
    padding: 0.75rem 0;
    border-top: 1px solid var(--bp-border);
    border-bottom: 1px solid var(--bp-border);
}

.trust-link {
    color: var(--bp-mint);
    text-decoration: none;
    white-space: nowrap;
}

.trust-link:hover {
    color: var(--bp-mint-strong);
    text-decoration: underline;
}

.trust-link i {
    font-size: 0.8em;
}

.trust-line strong {
    color: var(--bp-text);
}

.trust-dot {
    margin: 0 0.3rem;
    opacity: 0.6;
}

.category-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.site-public .btn-category {
    padding: 0.5rem 1.2rem;
    font-size: 0.95rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.site-public .btn-category-inactive {
    background-color: transparent;
    color: var(--bp-text);
}

.site-public .btn-category-inactive:hover {
    background-color: var(--bp-surface-2);
    color: #fff;
    opacity: 1;
}

.site-public .btn-category-active,
.site-public .btn-category-active:hover {
    background-color: var(--bp-mint);
    border-color: var(--bp-mint);
    color: var(--bp-mint-ink);
    box-shadow: none;
    opacity: 1;
}

.catalog-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--bp-border);
}

.catalog-count {
    color: var(--bp-muted);
    white-space: nowrap;
}

.site-public .search-container {
    position: relative;
    max-width: 320px;
}

.site-public .search-icon {
    position: absolute;
    left: 0.85rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--bp-muted);
    font-size: 0.85rem;
    pointer-events: none;
}

.site-public .search-container .search-input {
    padding-left: 2.2rem;
    background-color: var(--bp-surface);
    border-color: rgba(255, 255, 255, 0.14);
}

#catalog #showcaseSection .section-subtitle {
    margin-top: 1.5rem;
}

/* Mod cards */
.mod-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background-color: var(--bp-surface);
    border: 1px solid var(--bp-border);
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    color: var(--bp-text);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.mod-card:hover {
    transform: translateY(-3px);
    border-color: rgba(203, 250, 208, 0.35);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.3);
    color: var(--bp-text);
}

.mod-card-media {
    position: relative;
    aspect-ratio: 16 / 9;
    background-color: var(--bp-surface-2);
}

.mod-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.mod-status {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 0.25em 0.6em;
    border-radius: 4px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.mod-status-new {
    background-color: #ff5a3c;
    color: #fff;
}

.mod-status-dev {
    background-color: #ffc107;
    color: #1d1d1d;
}

.mod-card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 0.6rem;
    padding: 0.8rem 0.9rem 0.85rem;
}

.mod-card-title {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.3;
    margin: 0;
    color: #fff;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.mod-card-footer {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    flex-wrap: wrap;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.85rem;
}

.mod-card-creator {
    color: var(--bp-muted);
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mod-card-creator i {
    color: #ff4e45;
    margin-right: 2px;
}

.mod-card-action {
    color: var(--bp-mint);
    font-weight: 700;
    white-space: nowrap;
}

.mod-card-action i {
    font-size: 0.8em;
    transition: transform 0.2s ease;
}

.mod-card:hover .mod-card-action i {
    transform: translateX(3px);
}

.mod-card-action-external {
    color: var(--bp-text);
}

.mod-card-action-external i {
    color: #ff4e45;
}

.in-dev-section .section-subtitle i {
    color: #ffc107;
}

/* Skeletons on dark surface */
.site-public .skeleton-card {
    background-color: var(--bp-surface);
    border: 1px solid var(--bp-border);
    border-radius: 8px;
}

.featured-mod-skeleton .skeleton-title-bar {
    height: 18px;
}

/* About + footer */
.site-public .about-me-section {
    padding-top: 2.5rem;
}

.site-footer {
    border-top: 1px solid var(--bp-border);
    padding: 1.5rem 0;
    margin-top: 1rem;
}

.site-footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.site-footer-logo {
    font-size: 1.2rem;
}

.site-socials {
    display: flex;
    gap: 0.75rem;
}

.site-footer-link {
    color: var(--bp-muted, #9aa4ad);
    font-size: 0.9rem;
    text-decoration: none;
    margin-right: auto;
}

.site-footer-link:hover,
.site-footer-link:focus-visible {
    color: #fff;
    text-decoration: underline;
}

.chat-privacy-note {
    font-size: 0.72rem;
    line-height: 1.4;
    margin: 0.5rem 0 0;
    text-align: center;
}

.mod-setup-status {
    color: var(--bp-muted, #9aa4ad);
    font-size: 0.9rem;
}

.site-socials .social-icon {
    width: 40px;
    height: 40px;
    font-size: 1.25rem;
}

/* Mod detail modal */
.mod-detail .modal-header {
    padding: 0.9rem 1.25rem;
}

.mod-detail .modal-title {
    color: #fff !important;
    font-size: 1.2rem;
    font-weight: 700;
}

.mod-detail .modal-body {
    padding: 1.25rem;
}

.mod-detail-media {
    display: block;
    position: relative;
    aspect-ratio: 16 / 9;
    /* Always 16:9: on short screens the frame gets narrower (centred) instead of shorter, so the
       thumbnail is never cropped and the actions stay visible. */
    width: min(100%, calc(42vh * 16 / 9));
    height: auto;
    margin: 0 auto 1rem;
    border-radius: 8px;
    overflow: hidden;
    background-color: var(--bp-surface-2);
}

.mod-detail-media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover; /* hqdefault (4:3) has black bars above and below; cover trims them */
    object-position: center;
    display: block;
}

.mod-detail-play {
    position: absolute;
    inset: 0;
    margin: auto;
    width: 68px;
    height: 48px;
    border-radius: 12px;
    background-color: rgba(0, 0, 0, 0.7);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    transition: background-color 0.2s ease;
}

.mod-detail-media:hover .mod-detail-play {
    background-color: #ff0000;
}

.mod-detail-actions {
    margin-bottom: 1.25rem;
}

.mod-setup {
    border: 1px solid var(--bp-border);
    border-radius: 8px;
    background-color: #16191c;
}

.mod-setup summary {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 1rem;
    cursor: pointer;
    color: var(--bp-text);
}

.mod-setup summary::-webkit-details-marker {
    display: none;
}

.mod-setup summary:hover {
    color: var(--bp-mint);
}

.mod-setup-chevron {
    transition: transform 0.2s ease;
}

.mod-setup[open] .mod-setup-chevron {
    transform: rotate(180deg);
}

.mod-setup-body {
    padding: 0 1rem 1rem;
    font-size: 0.92rem;
    line-height: 1.6;
    color: #d5d9dd;
    overflow-wrap: break-word;
    word-break: break-word;
}

.mod-setup-unlock {
    border-top: 1px solid var(--bp-border);
    padding: 0.75rem 1rem;
    color: var(--bp-mint);
    font-size: 0.9rem;
    text-align: center;
}

/* About Blume + Work Together */
.about-section {
    padding-top: 2.5rem;
}

.about-grid {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    align-items: center;
    gap: 2.5rem;
    background: linear-gradient(135deg, rgba(43, 132, 75, 0.14) 0%, rgba(39, 43, 48, 0.9) 60%);
    border: 1px solid rgba(203, 250, 208, 0.14);
    border-radius: 12px;
    padding: 2rem;
}

.about-intro {
    max-width: 38rem;
}

.about-lead {
    font-size: 1.35rem;
    line-height: 1.45;
    color: #fff;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.about-text {
    color: #c4c8cc;
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 0;
}

.about-text + .about-text {
    margin-top: 0.75rem;
}

.about-text strong {
    color: var(--bp-mint);
}

.work-together {
    background-color: rgba(22, 25, 28, 0.7);
    border: 1px solid var(--bp-border);
    border-radius: 10px;
    padding: 1.5rem;
}

.work-kicker {
    display: block;
    color: var(--bp-mint);
    font-size: 0.8rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 0.4rem;
}

.work-title {
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.3;
    color: #fff;
    margin-bottom: 0.6rem;
}

.work-text {
    color: #c4c8cc;
    margin-bottom: 0.9rem;
}

.work-gameplay {
    background-color: rgba(43, 132, 75, 0.2);
    border: 1px solid rgba(203, 250, 208, 0.15);
    border-radius: 8px;
    padding: 0.7rem 0.85rem;
    color: #d5e9d7;
    font-size: 0.92rem;
    line-height: 1.45;
    margin-bottom: 1.1rem;
}

.work-gameplay i.fa-circle-play {
    color: var(--bp-mint);
}

.work-gameplay-link {
    display: inline-flex;
    align-items: center;
    margin-top: 0.45rem;
    padding: 0;
    background: none;
    border: none;
    color: var(--bp-mint);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.work-gameplay-link:hover,
.work-gameplay-link:focus-visible {
    color: #fff;
}

.work-gameplay-link i {
    font-size: 0.8em;
}

.work-actions {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.work-actions .btn {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    text-align: left;
}

.work-actions .btn-mint {
    justify-content: center;
}

.work-action-note {
    margin-left: auto;
    padding-left: 0.75rem;
    color: var(--bp-muted);
    font-size: 0.82rem;
    font-weight: 500;
}

.in-dev-section {
    padding-top: 0;
}

/* Contact widget: small button, no speech bubble */
.site-public .chat-widget-container {
    bottom: 16px;
    right: 16px;
}

.site-public .chat-widget-btn {
    width: 52px;
    height: 52px;
    font-size: 21px;
    margin-top: 10px;
    background-color: var(--bp-mint);
    color: var(--bp-mint-ink);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45) !important;
}

.site-public .chat-widget-btn:hover {
    transform: scale(1.06);
    background-color: var(--bp-mint-strong);
}

.site-public.modal-open .chat-widget-container {
    display: none;
}

.chat-mod-context {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    background-color: rgba(203, 250, 208, 0.1);
    border: 1px solid rgba(203, 250, 208, 0.3);
    color: var(--bp-mint);
    border-radius: 6px;
    padding: 0.45rem 0.7rem;
    margin-bottom: 0.9rem;
    font-size: 0.85rem;
}

.chat-mod-context strong {
    color: #fff;
}

.chat-mod-context button {
    background: none;
    border: none;
    color: var(--bp-muted);
    font-size: 1.2rem;
    line-height: 1;
    padding: 0 0.2rem;
}

.chat-mod-context button:hover {
    color: #fff;
}

/* Responsive */
@media (max-width: 991.98px) {
    .featured-mod,
    .about-grid {
        grid-template-columns: 1fr;
        gap: 1.1rem;
    }
}

/* Phones and small tablets: no floating button over the cards; Contact lives in the menu */
@media (max-width: 767.98px) {
    .site-public #openChatBtn {
        display: none;
    }

    .site-public {
        padding-bottom: 0;
    }
}

@media (max-width: 576px) {
    .site-public {
        --bp-header-h: 54px;
    }

    .site-logo {
        font-size: 1.2rem;
        letter-spacing: 1px;
    }

    .site-nav {
        gap: 0;
    }

    .site-nav a,
    .site-nav-contact {
        font-size: 0.85rem;
        padding: 0.4rem 0.55rem;
    }

    .home-latest {
        padding-top: 1rem;
    }

    .featured-title {
        font-size: 1.45rem;
    }

    .featured-tagline,
    .mod-detail-tagline {
        font-size: 1rem;
    }

    .featured-actions .btn,
    .mod-detail-actions .btn {
        flex: 1 1 auto;
    }

    .about-grid {
        padding: 1.1rem;
    }

    .work-together {
        padding: 1.1rem;
    }

    .about-lead {
        font-size: 1.1rem;
    }

    .about-text {
        font-size: 0.98rem;
    }

    .work-title {
        font-size: 1.15rem;
    }

    .work-action-note {
        display: none;
    }

    .trust-line {
        font-size: 0.85rem;
    }

    .section-title {
        font-size: 1.4rem;
    }

    .section-head {
        margin: 1.75rem 0 0.75rem;
    }

    .mod-card-body {
        padding: 0.6rem 0.65rem 0.7rem;
        gap: 0.45rem;
    }

    .mod-card-title {
        font-size: 0.85rem;
    }

    .mod-card-footer {
        font-size: 0.75rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.2rem;
    }

    .mod-status {
        font-size: 0.6rem;
        top: 6px;
        left: 6px;
    }

    .catalog-toolbar {
        flex-direction: column-reverse;
        align-items: stretch;
        gap: 0.6rem;
    }

    .site-public .search-container {
        max-width: 100%;
    }

    .site-public .btn-category {
        padding: 0.4rem 0.9rem;
        font-size: 0.85rem;
    }

    .site-public .chat-widget-btn {
        width: 48px;
        height: 48px;
        font-size: 19px;
    }

    .site-footer-inner {
        justify-content: center;
    }

    .mod-detail .modal-body {
        padding: 1rem;
    }
}
