/* ===== GLOBAL ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
}

body {
    background-image: url("https://carnage.horrordev.com/images/background4.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: #e6e6e6;
}



/* ===== NAVBAR ===== */
.navbar {
    background: #151515;
    border-bottom: 2px solid #e95e1b;
    border-top: 1px solid #e95e1b;
}


/* full-width equal sections */
.nav-menu {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    width: 100%;
}

/* nav items */
.nav-menu a {
    color: #ccc;
    text-decoration: none;
    font-size: 20px;
    font-weight: 600;
    padding: 18px 0;
    text-align: center;
    transition: 0.25s;
    border-right: 1px solid #2a2a2a;
}

/* remove last divider */
.nav-menu a:last-child {
    border-right: none;
}

/* hover effect */
.nav-menu a:hover {
    background: rgba(255, 122, 0, 0.08);
    color: #e95e1b;
    box-shadow: inset 0 0 12px rgba(255, 122, 0, 0.25);
}

/* ===== TOP BAR ===== */
.top-bar {
    background: #0d0d0d;
    padding: 14px 20px;   /* ↑ more space above & below */
    display: flex;
    justify-content: flex-end;
    margin-bottom: 0;
}




.login-btn {
    color: #e95e1b;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    padding: 6px 14px;
    border: 1px solid #e95e1b;
    border-radius: 4px;
    transition: 0.25s;
    margin-right: 40px; /* NEW: pushes it left (2–3x spacing) */
}


.login-btn:hover {
    background: rgba(255, 122, 0, 0.15);
    box-shadow: 0 0 10px rgba(255, 122, 0, 0.4);
}



/* ===== HERO ===== */
.hero {
    height: 85vh;
    display: flex;
    flex-direction: column;
    align-items: center;      /* horizontal center */
    justify-content: center;  /* vertical center */
    text-align: center;
}

/* make both elements behave as centered blocks */
.hero-logo,
.floating-btn {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* spacing between logo and button */
.hero-logo {
    max-width: 420px;
    width: 90%;
    margin-bottom: 30px;
    filter: drop-shadow(0 0 20px rgba(255, 122, 0, 0.45));
    animation: float 4s ease-in-out infinite;
}

/* floating button */
.floating-btn {
    animation: float 4s ease-in-out infinite;
    animation-delay: 0.5s;
}

/* floating animation */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}



/* ===== BUTTON ===== */
.cta-btn {
    background: linear-gradient(45deg, #ff7a00, #ff9a2a);
    border: none;
    padding: 14px 34px;
    font-size: 18px;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    text-decoration: none;
    transition: 0.25s;
    box-shadow: 0 0 15px rgba(255, 122, 0, 0.4);
}

.cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 25px rgba(255, 122, 0, 0.7);
}

/* ===== PLAY PAGE CENTERING ===== */
.play-page {
    min-height: calc(100vh - 180px); /* accounts for top bar + nav */
    display: flex;
    align-items: center;
    justify-content: center;
}

.play-center {
    width: 100%;
    max-width: 1100px;
}


/* ===== PLAY PAGE ===== */
.page {
    width: 90%;
    max-width: 1100px;
    margin: 40px auto 0 auto;
    padding-bottom: 40px;
}

.page-header {
    text-align: center;
    margin-bottom: 25px;
}

.page-header h1 {
    font-size: 34px;
    color: #ff7a00;
    text-shadow: 0 0 10px rgba(255, 122, 0, 0.35);
    margin-bottom: 8px;
}

.page-header p {
    color: #b6b6b6;
}

.download-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
}

.card {
    background: rgba(10, 10, 10, 0.65);
    border: 1px solid #252525;
    border-top: 2px solid rgba(255, 122, 0, 0.65);
    border-radius: 10px;
    padding: 22px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(2px);
}

.card-title {
    font-size: 22px;
    font-weight: 800;
    color: #ff7a00;
    margin-bottom: 6px;
}

.card-subtitle {
    color: #bdbdbd;
    margin-bottom: 16px;
    line-height: 1.4;
}

/* card icon at top */
.card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
}

.os-icon {
    width: 88px;
    height: 88px;
    fill: #e95e1b;
    filter: drop-shadow(0 0 12px rgba(233, 94, 27, 0.45));
    opacity: 0.95;
}

/* Java icon uses strokes for steam lines */
.os-icon path[stroke-width] {
    stroke: #e95e1b;
}


.btn-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.dl-btn {
    flex: 1;
    min-width: 210px;
    background: linear-gradient(45deg, #ff7a00, #ff9a2a);
    color: #ffffff;
    text-decoration: none;
    font-weight: 700;
    text-align: center;
    padding: 14px 16px;
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(255, 122, 0, 0.35);
    transition: 0.25s;
    border: 0;
}

.dl-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 25px rgba(255, 122, 0, 0.6);
}

.card-note {
    margin-top: 14px;
    color: #9a9a9a;
    font-size: 14px;
}

.accent {
    color: #ff7a00;
    font-weight: 800;
}

/* responsive */
@media (max-width: 900px) {
    .download-grid {
        grid-template-columns: 1fr;
    }
}


/* ===== FOOTER ===== */
.footer {
    text-align: center;
    padding: 20px;
    border-top: 1px solid #222;
    color: #777;
    margin-top: 40px;
}

/* ===== VOTE PAGE ===== */
.vote-page {
    min-height: calc(100vh - 180px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.vote-center {
    width: 90%;
    max-width: 780px;
}

.vote-card {
    background: rgba(10, 10, 10, 0.65);
    border: 1px solid #252525;
    border-top: 2px solid rgba(233, 94, 27, 0.65);
    border-radius: 12px;
    padding: 26px;
    box-shadow: 0 0 22px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(2px);
    text-align: center;
}

.vote-icon {
    display: flex;
    justify-content: center;
    margin-bottom: 12px;
}

.vote-svg {
    width: 92px;
    height: 92px;
    fill: #e95e1b;
    opacity: 0.95;
    filter: drop-shadow(0 0 12px rgba(233, 94, 27, 0.45));
}

/* steam/line strokes in svg */
.vote-svg path[stroke-width] {
    stroke: #e95e1b;
}

.vote-title {
    font-size: 28px;
    font-weight: 900;
    color: #e6e6e6;
    margin-bottom: 10px;
}

.vote-subtitle {
    color: #bdbdbd;
    line-height: 1.5;
    margin-bottom: 18px;
}

.vote-label {
    display: block;
    text-align: left;
    color: #cfcfcf;
    font-weight: 700;
    margin: 10px 0 6px 0;
}

.vote-input {
    width: 100%;
    background: rgba(15, 15, 15, 0.75);
    color: #e6e6e6;
    border: 1px solid #2a2a2a;
    border-radius: 10px;
    padding: 14px 14px;
    outline: none;
    font-size: 16px;
}

.vote-input:focus {
    border-color: rgba(233, 94, 27, 0.75);
    box-shadow: 0 0 0 3px rgba(233, 94, 27, 0.18);
}

.vote-actions {
    display: flex;
    gap: 12px;
    margin-top: 14px;
    flex-wrap: wrap;
}

.vote-btn {
    flex: 1;
    min-width: 220px;
    padding: 14px 16px;
    border-radius: 10px;
    font-weight: 800;
    cursor: pointer;
    transition: 0.25s;
    border: 0;
}

.vote-btn-primary {
    background: linear-gradient(45deg, #ff7a00, #ff9a2a);
    color: #fff;
    box-shadow: 0 0 15px rgba(255, 122, 0, 0.35);
}

.vote-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 25px rgba(255, 122, 0, 0.6);
}

.vote-btn-secondary {
    background: rgba(20, 20, 20, 0.7);
    color: #e6e6e6;
    border: 1px solid #2a2a2a;
}

.vote-btn-secondary:hover {
    transform: translateY(-2px);
    border-color: rgba(233, 94, 27, 0.55);
    box-shadow: 0 0 18px rgba(0, 0, 0, 0.35);
}

/* status box that vote.js updates */
.vote-status {
    margin-top: 14px;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid #2a2a2a;
    background: rgba(10, 10, 10, 0.55);
    color: #cfcfcf;
    text-align: left;
}

/* vote.js expects these classes */
.hidden { display: none; }
.ok {
    border-color: rgba(40, 200, 120, 0.45) !important;
    background: rgba(20, 60, 35, 0.35) !important;
    color: #dff7ea !important;
}
.warn {
    border-color: rgba(233, 94, 27, 0.55) !important;
    background: rgba(60, 28, 10, 0.35) !important;
    color: #ffe7d6 !important;
}

.timer {
    font-weight: 900;
    color: #e95e1b;
}

.vote-noscript {
    display: block;
    margin-top: 10px;
    color: #ff9b9b;
}

/* ===== STORE PAGE ===== */
.store-page {
    min-height: calc(100vh - 180px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.store-center {
    width: 90%;
    max-width: 820px;
}

.store-card {
    background: rgba(10, 10, 10, 0.65);
    border: 1px solid #252525;
    border-top: 2px solid rgba(233, 94, 27, 0.65);
    border-radius: 12px;
    padding: 26px;
    box-shadow: 0 0 22px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(2px);
}

.store-title {
    text-align: center;
    font-size: 30px;
    font-weight: 900;
    margin-bottom: 8px;
}

.store-subtitle {
    text-align: center;
    color: #bdbdbd;
    margin-bottom: 18px;
}

.store-label {
    display: block;
    color: #cfcfcf;
    font-weight: 700;
    margin: 10px 0 6px;
}

.store-input {
    width: 100%;
    background: rgba(15, 15, 15, 0.75);
    color: #e6e6e6;
    border: 1px solid #2a2a2a;
    border-radius: 10px;
    padding: 14px 14px;
    outline: none;
    font-size: 16px;
}

.store-input:focus {
    border-color: rgba(233, 94, 27, 0.75);
    box-shadow: 0 0 0 3px rgba(233, 94, 27, 0.18);
}

.store-summary {
    margin-top: 14px;
    border: 1px solid #2a2a2a;
    background: rgba(10, 10, 10, 0.45);
    border-radius: 10px;
    padding: 12px 14px;
}

.sum-row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    color: #cfcfcf;
}

.sum-row.total {
    border-top: 1px solid #2a2a2a;
    margin-top: 6px;
    padding-top: 10px;
    font-weight: 900;
}

.store-hint {
    margin-top: 8px;
    font-size: 14px;
    color: #9a9a9a;
}

.store-hint.good { color: #9ef0c0; }
.store-hint.bad  { color: #ffb3b3; }

.store-actions {
    margin-top: 14px;
    display: flex;
}

.store-actions .vote-btn {
    width: 100%;
    min-width: unset;
}

.store-foot {
    margin-top: 12px;
    color: #9a9a9a;
    text-align: center;
    font-size: 14px;
}

/* ===== ADMIN TABLE ===== */
.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 12px;
    min-width: 920px; /* allows horizontal scroll on smaller screens */
}

.admin-table th, .admin-table td {
    border-bottom: 1px solid #2a2a2a;
    padding: 10px 10px;
    text-align: left;
    color: #d6d6d6;
    font-size: 14px;
}

.admin-table th {
    color: #ffcfb2;
    font-weight: 800;
    background: rgba(0,0,0,0.25);
}

.mini-btn {
    background: rgba(20, 20, 20, 0.7);
    color: #e6e6e6;
    border: 1px solid #2a2a2a;
    padding: 8px 10px;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.2s;
    font-weight: 700;
    margin-right: 6px;
}

.mini-btn:hover {
    border-color: rgba(233, 94, 27, 0.55);
    box-shadow: 0 0 14px rgba(0,0,0,0.35);
    transform: translateY(-1px);
}

.mini-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    transform: none;
}

/* ===== ADMIN UPGRADES ===== */
.admin-top-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 12px;
}

.admin-link-btn {
    display: inline-block;
    max-width: 220px;
    min-width: 180px;
}

.metric-big {
    font-size: 28px;
    font-weight: 900;
    color: #e6e6e6;
    margin-top: 6px;
}

.admin-metrics {
    grid-template-columns: repeat(4, 1fr);
    margin-bottom: 16px;
}

.admin-status {
    grid-template-columns: repeat(3, 1fr);
    margin-bottom: 16px;
}

.admin-search {
    display: grid;
    grid-template-columns: 1.6fr 1fr 0.8fr 0.8fr;
    gap: 12px;
    align-items: center;
    margin-top: 12px;
}

.admin-search-btn {
    min-width: unset;
    width: 100%;
}

.mini-btn.danger {
    border-color: rgba(255, 120, 120, 0.55);
    color: #ffd1d1;
}

.mini-btn.danger:hover {
    border-color: rgba(255, 120, 120, 0.9);
    box-shadow: 0 0 14px rgba(255, 120, 120, 0.18);
}

/* coupons form */
.admin-coupon-form {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 0.6fr 0.9fr 1.2fr 0.7fr;
    gap: 12px;
    align-items: center;
    margin-top: 12px;
}

.coupon-actions {
    white-space: nowrap;
}

/* responsive */
@media (max-width: 1100px) {
    .admin-metrics { grid-template-columns: repeat(2, 1fr); }
    .admin-search { grid-template-columns: 1fr 1fr; }
    .admin-coupon-form { grid-template-columns: 1fr 1fr; }
}


/* ===== FINALIZED ORDER RECEIPT ===== */
.receipt {
    width: 100%;
}

.receipt-header {
    margin-bottom: 12px;
}

.receipt-title {
    font-size: 22px;
    font-weight: 900;
    color: #dff7ea;
    margin-bottom: 4px;
}

.receipt-subtitle {
    color: #bdbdbd;
    font-size: 14px;
    line-height: 1.4;
}

.receipt-details {
    margin-top: 12px;
    border: 1px solid #2a2a2a;
    background: rgba(10, 10, 10, 0.45);
    border-radius: 10px;
    padding: 12px 14px;
}

.receipt-row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(42, 42, 42, 0.6);
}

.receipt-row:last-child {
    border-bottom: none;
}

.receipt-label {
    color: #bdbdbd;
    font-weight: 700;
}

.receipt-value {
    color: #e6e6e6;
    font-weight: 800;
    text-align: right;
    word-break: break-word;
}

.receipt-row.total .receipt-label,
.receipt-row.total .receipt-value {
    color: #ffcfb2;
    font-size: 16px;
}

.receipt-callout {
    margin-top: 12px;
    border-radius: 10px;
    border: 1px solid rgba(233, 94, 27, 0.45);
    background: rgba(60, 28, 10, 0.25);
    padding: 12px 14px;
}

.receipt-callout-title {
    color: #e95e1b;
    font-weight: 900;
    margin-bottom: 6px;
}

.receipt-callout-text {
    color: #e6e6e6;
    line-height: 1.4;
    font-size: 14px;
}


