/* Home page styles (resources/views/index.blade.php). Shared theme: dayz.css */
/* Shared theme (palette, header, hero, buttons, section headers) lives in public/css/dayz.css */

/* feed showcase: tabs + a Discord channel posting sample embeds */
.dz-showcase { max-width: 680px; margin: 2.2em auto 0; text-align: left; }
.dz-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.35em;
    padding-bottom: 0.6em;
}
.dz-tab {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.45em;
    height: auto;
    padding: 0.4em 0.85em;
    border: 1px dashed var(--dz-line-2);
    border-radius: 0;
    background: rgba(0,0,0,0.35);
    box-shadow: none;
    color: var(--dz-muted);
    font-family: var(--dz-head);
    font-size: 0.75em;
    font-weight: 500;
    line-height: 1.5;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.15s;
}
.dz-tab i { color: var(--dz-khaki); font-size: 0.95em; }
.dz-tab:hover { color: var(--dz-text); border-color: var(--dz-khaki); background: rgba(0,0,0,0.5); }
.dz-tab.active { background: var(--dz-khaki); border: 1px solid var(--dz-khaki); color: #1a1c14; }
.dz-tab.active i { color: #1a1c14; }

.dz-discord {
    position: relative;
    background: #313338;
    border: 1px solid rgba(0,0,0,0.6);
    box-shadow: 0 18px 40px rgba(0,0,0,0.55);
    font-family: 'gg sans', 'Noto Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}
.dz-discord::before,
.dz-discord::after {
    content: '';
    position: absolute;
    width: 14px;
    height: 14px;
    border: solid var(--dz-khaki);
    z-index: 2;
    pointer-events: none;
}
.dz-discord::before { top: -4px; left: -4px; border-width: 2px 0 0 2px; }
.dz-discord::after  { bottom: -4px; right: -4px; border-width: 0 2px 2px 0; }
.dz-discord-head {
    display: flex;
    align-items: center;
    gap: 0.45em;
    padding: 0.65em 1em;
    border-bottom: 1px solid #1f2023;
    color: #f2f3f5;
    font-weight: 600;
    font-size: 0.9em;
}
.dz-discord-head .hash { color: #80848e; font-size: 1.3em; font-weight: 400; line-height: 1; }
.dz-discord-head .note {
    font-family: var(--dz-mono);
    font-weight: 400;
    font-size: 0.75em;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #80848e;
}
.dz-switch {
    margin: 0 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 0.5em;
    color: #b5bac1;
    font-size: 0.8em;
    font-weight: 600;
    cursor: pointer;
    user-select: none;
}
.dz-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.dz-switch .track {
    position: relative;
    width: 2.4em;
    height: 1.35em;
    border-radius: 1em;
    background: #4e5058;
    transition: background 0.15s;
}
.dz-switch .track::after {
    content: '';
    position: absolute;
    top: 0.15em;
    left: 0.15em;
    width: 1.05em;
    height: 1.05em;
    border-radius: 50%;
    background: #fff;
    transition: transform 0.15s;
}
.dz-switch input:checked + .track { background: #23a55a; }
.dz-switch input:checked + .track::after { transform: translateX(1.05em); }
.dz-switch input:focus-visible + .track { outline: 2px solid #00a8fc; outline-offset: 2px; }
.dz-discord-head .note { margin-left: 1em; }
.dz-discord-body {
    height: 27em;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 0 0 0.8em;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 3.5em);
            mask-image: linear-gradient(to bottom, transparent 0, #000 3.5em);
}
.dz-msg {
    display: flex;
    line-height: 1.35;
    gap: 0.9em;
    padding: 0.15em 1em;
    flex-shrink: 0;
}
.dz-msg:first-child { margin-top: auto; }
.dz-msg.is-new { animation: dz-msg-in 0.45s ease-out; }
@keyframes dz-msg-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.dz-avatar {
    width: 2.5em;
    height: 2.5em;
    border-radius: 50%;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    background: #1e2a1c;
    color: var(--dz-text);
    font-size: 0.95em;
    margin-top: 0.15em;
}
.dz-msg-main { flex: 1; min-width: 0; }
.dz-msg-head { display: flex; align-items: baseline; gap: 0.4em; flex-wrap: wrap; margin-bottom: 0.1em; }
.dz-msg-head .name { color: #f2f3f5; font-weight: 600; font-size: 0.95em; }
.dz-msg-head .bot {
    background: #5865f2;
    color: #fff;
    font-size: 0.62em;
    font-weight: 600;
    padding: 0.05em 0.35em;
    border-radius: 3px;
    position: relative;
    top: -0.1em;
}
.dz-msg-head .when { color: #949ba4; font-size: 0.72em; }
/* follow-up messages in a group hide the avatar and name, like Discord */
.dz-msg.is-follow .dz-avatar { visibility: hidden; height: 0; }
.dz-msg.is-follow .dz-msg-head { display: none; }
.dz-msg.is-follow { padding-top: 0.35em; }

.dz-embed {
    display: flex;
    max-width: 30em;
    background: #2b2d31;
    border-radius: 4px;
    overflow: hidden;
    margin-top: 0.15em;
}
.dz-embed-bar { width: 4px; flex-shrink: 0; }
.dz-embed-body { padding: 0.55em 1em 0.7em 0.8em; flex: 1; min-width: 0; font-size: 0.82em; }
.dz-embed-author { color: #f2f3f5; font-weight: 600; font-size: 0.92em; margin-bottom: 0.3em; }
.dz-embed-title  { color: #f2f3f5; font-weight: 700; font-size: 1.02em; margin-bottom: 0.3em; }
.dz-embed-link   { color: #00a8fc; font-weight: 600; margin-bottom: 0.35em; }
.dz-embed-desc   { color: #dbdee1; line-height: 1.4; white-space: pre-wrap; margin-bottom: 0.45em; }
.dz-embed strong { color: #f2f3f5; font-weight: 700; }
.dz-embed-desc .mention { color: #c9cdfb; background: rgba(88,101,242,0.3); border-radius: 3px; padding: 0 2px; }
.dz-embed-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.35em 0.8em; }
.dz-embed-field .n { color: #f2f3f5; font-weight: 600; font-size: 0.95em; margin-bottom: 0.1em; }
.dz-embed-field .v { color: #dbdee1; font-size: 0.95em; overflow-wrap: anywhere; }
.dz-embed-footer { color: #949ba4; font-size: 0.85em; margin-top: 0.55em; }

.dz-custom-note {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.4em 0.9em;
    margin: 1.1em 0 0 !important;
    font-family: var(--dz-mono);
    font-size: 0.8em !important;
    letter-spacing: 0.04em;
    line-height: 1.6;
    color: var(--dz-muted) !important;
    text-align: center;
}
.dz-custom-note i { color: var(--dz-khaki); margin-right: 0.35em; }
.dz-custom-note a { color: var(--dz-amber); text-decoration: none; border-bottom: 1px dashed rgba(226,179,90,0.5); }
.dz-custom-note a:hover { color: var(--dz-text); border-bottom-color: var(--dz-text); }

/* ─────────────────────────────────────────
   Stats strip: HUD status icons
───────────────────────────────────────── */
#stats-strip {
    background: var(--dz-bg);
    border-top: 1px solid var(--dz-line);
    border-bottom: 1px solid var(--dz-line);
    position: relative;
    padding: 1.2em 0;
}
#stats-strip::after {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: -1px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--dz-red) 20%, var(--dz-red) 80%, transparent);
    opacity: 0.7;
}
.stats-inner {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1em 2.4em;
}
.stat-item { display: flex; align-items: center; gap: 0.7em; text-align: left; }
.stat-icon {
    width: 2.4em;
    height: 2.4em;
    display: grid;
    place-items: center;
    border: 1px solid rgba(116,168,79,0.45);
    background: rgba(116,168,79,0.08);
    color: var(--dz-pristine);
    border-radius: 6px;
    font-size: 0.95em;
}
.stat-number {
    display: block;
    font-family: var(--dz-head);
    font-size: 1.6em;
    font-weight: 700;
    color: var(--dz-text);
    line-height: 1;
}
.stat-label {
    display: block;
    font-family: var(--dz-mono);
    font-size: 0.68em;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--dz-faint);
    margin-top: 0.25em;
}

/* ─────────────────────────────────────────
   Feature grid
───────────────────────────────────────── */
.feature-grid {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -0.5em;
}
.feature-card {
    padding: 0.5em;
    box-sizing: border-box;
}
@media (min-width: 980px)  { .feature-card { width: 33.333%; } }
@media (max-width: 979px) and (min-width: 737px) { .feature-card { width: 50%; } }
@media (max-width: 736px)  { .feature-card { width: 100%; } }
.feature-card.hidden { display: none !important; }

/* ─────────────────────────────────────────
   Card: inventory item
───────────────────────────────────────── */
.feat-box {
    position: relative;
    background: var(--dz-panel);
    border: 1px solid var(--dz-line);
    padding: 1.2em 1.3em 1.1em;
    height: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    transition: border-color 0.2s, background 0.2s;
}
.feat-box::before,
.feat-box::after {               /* corner brackets */
    content: '';
    position: absolute;
    width: 12px;
    height: 12px;
    border-color: var(--dz-khaki);
    border-style: solid;
    opacity: 0.55;
    transition: opacity 0.2s;
    pointer-events: none;
}
.feat-box::before { top: -1px; left: -1px; border-width: 2px 0 0 2px; }
.feat-box::after  { bottom: -1px; right: -1px; border-width: 0 2px 2px 0; }
.feat-box:hover {
    border-color: var(--dz-line-2);
    background: rgba(38, 43, 31, 0.92);
}
.feat-box:hover::before,
.feat-box:hover::after { opacity: 1; }

.feat-head {
    display: flex;
    align-items: center;
    gap: 0.8em;
    margin-bottom: 0.8em;
}
.feat-icon {                     /* inventory slot */
    position: relative;
    flex-shrink: 0;
    width: 2.6em;
    height: 2.6em;
    display: grid;
    place-items: center;
    font-size: 1.05em;
    color: var(--dz-text);
    background:
        linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px) 0 0 / 50% 50%,
        linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px) 0 0 / 50% 50%,
        rgba(0,0,0,0.4);
    border: 1px solid var(--dz-line-2);
}
.feat-icon::after {              /* condition marker */
    content: '';
    position: absolute;
    right: 2px;
    bottom: 2px;
    border: 5px solid transparent;
    border-right-color: var(--dz-pristine);
    border-bottom-color: var(--dz-pristine);
}
.feat-title { flex: 1; min-width: 0; }
.feat-box h3 {
    font-family: var(--dz-head);
    font-size: 1em;
    font-weight: 600;
    color: var(--dz-text);
    margin: 0;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.feat-cond {
    display: block;
    font-family: var(--dz-mono);
    font-size: 0.65em;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--dz-pristine);
    margin-top: 0.2em;
}
.feat-box p {
    font-size: 0.86em;
    color: var(--dz-muted);
    line-height: 1.6;
    margin: 0 0 0.6em;
    flex: 1;
}
.feat-more {
    align-self: flex-start;
    margin: 0 0 0.7em;
    font-family: var(--dz-mono);
    font-size: 0.74em;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--dz-khaki);
    text-decoration: none;
    border-bottom: 1px dashed var(--dz-line-2);
}
.feat-more:hover { color: var(--dz-text); border-color: var(--dz-khaki); }
.feat-more i { margin-left: 0.3em; font-size: 0.9em; }

/* category tags */
.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3em;
    margin-top: auto;
    padding-top: 0.8em;
    border-top: 1px dashed var(--dz-line);
}
.card-tag {
    font-family: var(--dz-mono);
    font-size: 0.66em;
    font-weight: 400;
    padding: 0.15em 0.6em;
    border-radius: 0;
    border: 1px solid var(--dz-line);
    background: rgba(0,0,0,0.25);
    color: var(--dz-faint);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    cursor: pointer;
    line-height: inherit;
    box-shadow: none;
    height: auto;
    transition: all 0.15s;
}
.card-tag:hover,
.card-tag.active {
    border-color: var(--dz-khaki);
    color: var(--dz-khaki);
    background: rgba(181,168,120,0.08);
}

/* command chips */
.feat-commands {
    margin-top: 0.6em;
    display: flex;
    flex-wrap: wrap;
    gap: 0.25em;
}
.cmd-chip {
    font-family: var(--dz-mono);
    font-size: 0.74em;
    font-weight: 400;
    line-height: 1.5;
    height: auto;
    padding: 0.1em 0.5em;
    border-radius: 0;
    background: rgba(226,179,90,0.08);
    color: var(--dz-amber);
    border: 1px solid rgba(226,179,90,0.25);
    letter-spacing: 0.02em;
    text-transform: none;
    box-shadow: none;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}
.cmd-chip:hover,
.cmd-chip:focus {
    background: var(--dz-amber);
    color: #1a1c14;
    outline: none;
}

/* ─────────────────────────────────────────
   What's new: one spotlight per feature,
   text on one side, screenshots on the other
───────────────────────────────────────── */
#whats-new .features-header { padding-bottom: 1em; }
.dz-spot {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 1.6em 2.4em;
    align-items: center;
    padding: 2.2em 0;
    border-bottom: 1px dashed var(--dz-line);
}
.dz-spot:last-of-type { border-bottom: 0; }
.dz-spot.flip .dz-spot-text { order: 2; }
.dz-spot-badge {
    display: inline-block;
    font-family: var(--dz-mono);
    font-size: 0.7em;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--dz-pristine);
    border: 1px solid rgba(116,168,79,0.45);
    background: rgba(116,168,79,0.08);
    padding: 0.15em 0.6em;
    margin-bottom: 0.8em;
}
.dz-spot-badge .new { color: var(--dz-red-hi); margin-right: 0.5em; }
.dz-spot h3 {
    display: flex;
    align-items: center;
    gap: 0.55em;
    margin: 0 0 0.5em;
    font-family: var(--dz-display);
    font-weight: 400;
    font-size: 1.7em;
    line-height: 1.1;
    color: var(--dz-text);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.dz-spot h3 i { color: var(--dz-khaki); font-size: 0.75em; }
.dz-spot-lead { color: var(--dz-text); opacity: 0.85; font-size: 0.98em; line-height: 1.65; margin: 0 0 1em; }
.dz-spot-points { list-style: none; margin: 0 0 1.3em; padding: 0; }
.dz-spot-points li {
    position: relative;
    padding: 0 0 0 1.4em;
    margin: 0 0 0.55em;
    color: var(--dz-muted);
    font-size: 0.88em;
    line-height: 1.6;
}
.dz-spot-points li::before {
    content: '';
    position: absolute;
    left: 0.15em;
    top: 0.55em;
    width: 0.5em;
    height: 0.5em;
    border: 1px solid var(--dz-khaki);
    transform: rotate(45deg);
}
.dz-spot-links { display: flex; flex-wrap: wrap; gap: 0.5em; }
.dz-spot-links .dz-btn { font-size: 0.82em; padding: 0.55em 1.2em; }

/* screenshot frame: fixed shape, so switching shots doesn't move the page */
.dz-shot-main {
    position: relative;
    aspect-ratio: 16 / 10;
    background: #0b0d09;
    border: 1px solid var(--dz-line-2);
    box-shadow: 0 18px 40px rgba(0,0,0,0.5);
}
.dz-shot-main::before,
.dz-shot-main::after {
    content: '';
    position: absolute;
    width: 14px;
    height: 14px;
    border: solid var(--dz-khaki);
    z-index: 2;
    pointer-events: none;
}
.dz-shot-main::before { top: -4px; left: -4px; border-width: 2px 0 0 2px; }
.dz-shot-main::after  { bottom: -4px; right: -4px; border-width: 0 2px 2px 0; }
.dz-shot-main figure { position: absolute; inset: 0; margin: 0; }
.dz-shot-zoom {
    display: block;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: none;
    box-shadow: none;
    cursor: zoom-in;
}
.dz-shot-zoom img { display: block; width: 100%; height: 100%; object-fit: contain; }
.dz-shot-zoom:focus-visible { outline: 2px solid var(--dz-amber); outline-offset: 2px; }
.dz-shot-cap {
    margin: 0.7em 0 0;
    min-height: 2.9em;
    font-family: var(--dz-mono);
    font-size: 0.78em;
    letter-spacing: 0.03em;
    line-height: 1.5;
    color: var(--dz-muted);
}
.dz-shot-cap i { color: var(--dz-khaki); margin-right: 0.45em; }
.dz-thumbs { display: flex; flex-wrap: wrap; gap: 0.45em; margin-top: 0.5em; }
.dz-thumb {
    width: 4.9em;
    height: 3.3em;
    padding: 0;
    border: 1px solid var(--dz-line-2);
    border-radius: 0;
    background: #0b0d09;
    box-shadow: none;
    opacity: 0.55;
    cursor: pointer;
    transition: opacity 0.15s, border-color 0.15s;
}
.dz-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.dz-thumb:hover { opacity: 0.85; }
.dz-thumb.active { opacity: 1; border-color: var(--dz-amber); box-shadow: 0 0 0 1px var(--dz-amber); }
.dz-thumb:focus-visible { outline: 2px solid var(--dz-amber); outline-offset: 2px; }

.dz-also { margin-top: 1.4em; }
.dz-also .dz-card h3 { font-size: 0.95em; }

/* full-size view */
.dz-lightbox {
    position: fixed;
    inset: 0;
    z-index: 10050;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.8em;
    padding: 3.2em 1em 1.2em;
    background: rgba(5,6,4,0.94);
    cursor: zoom-out;
}
.dz-lightbox img {
    max-width: 100%;
    max-height: calc(100vh - 7em);
    object-fit: contain;
    border: 1px solid var(--dz-line-2);
    box-shadow: 0 18px 50px rgba(0,0,0,0.7);
    cursor: default;
}
.dz-lightbox p { margin: 0; font-family: var(--dz-mono); font-size: 0.82em; color: var(--dz-muted); text-align: center; }
.dz-lightbox-close {
    position: absolute;
    top: 0.6em;
    right: 0.8em;
    width: 2.4em;
    height: 2.4em;
    padding: 0;
    line-height: 1;
    border: 1px solid var(--dz-line-2);
    border-radius: 0;
    background: rgba(0,0,0,0.5);
    box-shadow: none;
    color: var(--dz-text);
    font-size: 1em;
    cursor: pointer;
}
.dz-lightbox-close:hover { border-color: var(--dz-khaki); }

/* ─────────────────────────────────────────
   Reviews strip
───────────────────────────────────────── */
#reviews { padding-top: 2.6em; }
.dz-review { display: flex; flex-direction: column; }
.dz-review .dz-card-actions { margin-top: auto; padding-top: 0.9em; }

/* ─────────────────────────────────────────
   Small screens + reduced motion
───────────────────────────────────────── */
@media (max-width: 736px) {
    .dz-discord-body { height: 24em; }
    .dz-discord-head .note { display: none; }
    .dz-embed-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .stats-inner { gap: 0.9em 1.4em; }
    .dz-spot h3 { font-size: 1.4em; }
    /* five to a row */
    .dz-thumb { width: calc((100% - 1.8em) / 5); height: auto; aspect-ratio: 3 / 2; }
}
@media (max-width: 979px) {
    .dz-spot { grid-template-columns: minmax(0, 1fr); padding: 1.8em 0; }
    .dz-spot.flip .dz-spot-text { order: 0; }
}

/* Free tools & popular guides */
.dz-home-links .dz-card ul { margin: 0.4em 0 0; padding: 0; list-style: none; }
.dz-home-links .dz-card li { padding: 0.35em 0; border-top: 1px solid var(--dz-line); font-size: 0.92em; }
.dz-home-links .dz-card li:first-child { border-top: 0; }
