/* ==========================================================================
   HOME MODULE (home.css)
   Scoped to .home-archive to stay modular alongside main stylesheet
   ========================================================================== */

.home-archive {
    --home-font: inherit;
    font-family: var(--home-font);
}

/* --- ASCII Dividers --- */
.home-archive .ascii-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0.35rem 0 0.25rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    color: rgba(20, 200, 180, 0.85);
    text-shadow: 0 0 8px rgba(20, 200, 180, 0.35);
    user-select: none;
    overflow: hidden;
}

.home-archive .ascii-divider::after {
    content: attr(data-ascii);
    flex: 0 1 auto;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.home-archive .ascii-divider--pink {
    color: rgba(255, 100, 200, 0.88);
    text-shadow: 0 0 8px rgba(255, 100, 200, 0.4);
}

/* --- Welcome Message Card --- */
.home-archive .home-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.95rem;
    padding: 1rem 1.1rem;
    border-radius: 4px;
    border: 1px solid rgba(20, 200, 180, 0.45);
    background: linear-gradient(
        165deg,
        rgba(20, 200, 180, 0.08) 0%,
        rgba(0, 0, 0, 0.45) 60%,
        rgba(180, 50, 255, 0.07) 100%
    );
    box-shadow:
        0 0 16px rgba(20, 200, 180, 0.12),
        inset 0 0 14px rgba(20, 200, 180, 0.04);
}

/* Corner bracket accents */
.home-archive .home-card::before,
.home-archive .home-card::after {
    content: "";
    position: absolute;
    width: 9px;
    height: 9px;
    border-color: #38f2dc;
    border-style: solid;
    pointer-events: none;
}

.home-archive .home-card::before {
    top: -1px;
    left: -1px;
    border-width: 2px 0 0 2px;
}

.home-archive .home-card::after {
    bottom: -1px;
    right: -1px;
    border-width: 0 2px 2px 0;
}

.home-archive .home-card p {
    margin: 0;
    max-width: 68ch;
    font-size: 0.96rem;
    line-height: 1.68;
    color: rgba(238, 244, 248, 0.94);
}

.home-archive .home-comms {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    margin-top: 0.15rem;
}

.home-archive .home-comm-btn {
    --btn-rgb: 255, 220, 50;
    --btn-hex: #ffdc32;
    --btn-hover-rgb: 80, 255, 150;
    --btn-hover-hex: #50ff96;

    position: relative;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    width: 100%;
    padding: 0.68rem 0.85rem;
    border-radius: 4px;
    border: 1px solid rgba(var(--btn-rgb), 0.55);
    background: linear-gradient(
        135deg,
        rgba(var(--btn-rgb), 0.1) 0%,
        rgba(0, 0, 0, 0.52) 100%
    );
    box-shadow:
        0 0 12px rgba(var(--btn-rgb), 0.14),
        inset 0 0 10px rgba(var(--btn-rgb), 0.05);
    color: rgba(240, 245, 248, 0.95);
    font-family: inherit;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
    transition:
        color 0.18s ease,
        border-color 0.18s ease,
        background-color 0.18s ease,
        box-shadow 0.18s ease,
        transform 0.18s ease;
}

/* Email Button Theme (Gold -> Phosphor Green) */
.home-archive .home-comm-btn--email {
    --btn-rgb: 255, 220, 50;
    --btn-hex: #ffdc32;
    --btn-hover-rgb: 80, 255, 150;
    --btn-hover-hex: #50ff96;
}

/* Discord Button Theme (Cyber Purple -> Hot Pink) */
.home-archive .home-comm-btn--discord {
    --btn-rgb: 213, 128, 255;
    --btn-hex: #d580ff;
    --btn-hover-rgb: 255, 100, 200;
    --btn-hover-hex: #ff64c8;
}

.home-archive .comm-tag {
    flex-shrink: 0;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    padding: 0.18rem 0.42rem;
    border-radius: 2px;
    color: var(--btn-hex);
    border: 1px solid rgba(var(--btn-rgb), 0.6);
    background: rgba(var(--btn-rgb), 0.12);
    transition:
        color 0.18s ease,
        border-color 0.18s ease,
        background-color 0.18s ease;
}

.home-archive .comm-main {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.12rem;
}

.home-archive .comm-label {
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    color: var(--btn-hex);
    transition: color 0.18s ease, text-shadow 0.18s ease;
}

.home-archive .comm-detail {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.74rem;
    letter-spacing: 0.02em;
    color: rgba(224, 224, 224, 0.78);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-archive .comm-action {
    flex-shrink: 0;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: rgba(224, 224, 224, 0.65);
    transition: color 0.18s ease, transform 0.18s ease;
}

/* Hover & Focus States */
.home-archive .home-comm-btn:hover,
.home-archive .home-comm-btn:focus-visible {
    border-color: rgba(var(--btn-hover-rgb), 0.9);
    box-shadow:
        0 0 16px rgba(var(--btn-hover-rgb), 0.28),
        inset 0 0 12px rgba(var(--btn-hover-rgb), 0.1);
    transform: translateY(-2px);
    outline: none;
}

.home-archive .home-comm-btn:hover .comm-tag,
.home-archive .home-comm-btn:focus-visible .comm-tag {
    color: var(--btn-hover-hex);
    border-color: rgba(var(--btn-hover-rgb), 0.85);
    background: rgba(var(--btn-hover-rgb), 0.18);
}

.home-archive .home-comm-btn:hover .comm-label,
.home-archive .home-comm-btn:focus-visible .comm-label {
    color: var(--btn-hover-hex);
    text-shadow: 0 0 10px rgba(var(--btn-hover-rgb), 0.55);
}

.home-archive .home-comm-btn:hover .comm-action,
.home-archive .home-comm-btn:focus-visible .comm-action {
    color: var(--btn-hover-hex);
    transform: translateX(2px);
}

/* Discord Copy Feedback State */
.home-archive .comm-action--done {
    display: none;
    color: #50ff96;
    text-shadow: 0 0 8px rgba(80, 255, 150, 0.65);
}

.home-archive .home-comm-btn[data-copied="true"] .comm-action--copy {
    display: none;
}

.home-archive .home-comm-btn[data-copied="true"] .comm-action--done {
    display: inline;
}

.home-archive .home-comm-btn[data-copied="true"] {
    border-color: rgba(80, 255, 150, 0.9);
    box-shadow: 0 0 16px rgba(80, 255, 150, 0.3);
}

/* Respect custom cursor rule on desktop */
@media (hover: hover) and (pointer: fine) {
    .home-archive .home-comm-btn {
        cursor: none !important;
    }
}

@media (max-width: 480px) {
    .home-archive .ascii-divider {
        font-size: 0.62rem;
        letter-spacing: 0.08em;
    }

    .home-archive .home-card {
        padding: 0.85rem 0.9rem;
    }
}