/* =============================================================
   ETHEREUM STREETS — MAIN STREET
   Zodiac Plate Grid + Registration Modal
   ============================================================= */

/* ── Page Wrapper ─────────────────────────────────────────── */
#ethst-main-street {
    min-height: 100vh;
    background: #080808;
    padding: 60px 20px 80px;
}

/* ── Grid Header ──────────────────────────────────────────── */
.ethst-grid-header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 52px;
}

.ethst-headline {
    font-size: clamp(2rem, 5vw, 3.5rem);
    color: #d4af37;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin: 0 0 18px;
    font-weight: 700;
    text-shadow: 0 0 40px rgba(212,175,55,0.35);
}

.ethst-disclaimer {
    color: #888;
    font-size: 0.92rem;
    line-height: 1.7;
    margin: 0;
}

/* ── Grid ─────────────────────────────────────────────────── */
.ethst-zodiac-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    max-width: 1080px;
    margin: 0 auto;
}

@media (max-width: 1023px) {
    .ethst-zodiac-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 767px) {
    .ethst-zodiac-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
}

/* ── Plate Card ───────────────────────────────────────────── */
.ethst-plate {
    cursor: pointer;
    border-radius: 18px;
    border: 1px solid #1e1a0d;
    background: linear-gradient(160deg, #0d0c06, #161300);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    outline: none;
}

.ethst-plate:hover,
.ethst-plate:focus {
    transform: translateY(-5px);
    border-color: #d4af37;
    box-shadow: 0 10px 36px rgba(212,175,55,0.22);
}

.ethst-plate-inner {
    padding: 26px 14px 22px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;
    text-align: center;
}

.ethst-plate-glyph {
    font-size: 2.8rem;
    line-height: 1;
    color: #d4af37;
    text-shadow: 0 0 18px rgba(212,175,55,0.45);
}

.ethst-plate-symbol {
    font-family: 'Courier New', Courier, monospace;
    font-size: 1.05rem;
    color: #f5d77a;
    opacity: 0.75;
    letter-spacing: 0.04em;
}

.ethst-plate-name {
    font-size: 0.95rem;
    color: #f0e8d0;
    margin: 0;
    font-weight: 600;
    letter-spacing: 0.05em;
}

.ethst-plate-dates {
    font-size: 0.72rem;
    color: #666;
    letter-spacing: 0.03em;
}

/* Element badge */
.ethst-plate-element {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 20px;
}

.ethst-element-fire  { background: rgba(180,40,0,0.25);  color: #ff7043; border: 1px solid rgba(255,112,67,0.3);  }
.ethst-element-earth { background: rgba(60,80,0,0.25);   color: #aed581; border: 1px solid rgba(174,213,129,0.3); }
.ethst-element-air   { background: rgba(0,80,130,0.25);  color: #81d4fa; border: 1px solid rgba(129,212,250,0.3); }
.ethst-element-water { background: rgba(0,40,120,0.25);  color: #90caf9; border: 1px solid rgba(144,202,249,0.3); }

/* CTA inside plate — visual only, click handled by plate div */
.ethst-plate-cta {
    margin-top: 4px;
    padding: 7px 14px;
    background: linear-gradient(135deg, #d4af37, #f5d77a);
    color: #000;
    border: none;
    border-radius: 9px;
    font-size: 0.73rem;
    font-weight: 700;
    cursor: pointer;
    letter-spacing: 0.05em;
    opacity: 0;
    transition: opacity 0.15s ease;
    pointer-events: none;
}

.ethst-plate:hover .ethst-plate-cta,
.ethst-plate:focus .ethst-plate-cta {
    opacity: 1;
}

/* ── Utilities ────────────────────────────────────────────── */
.ethst-modal-hidden { display: none !important; }
.ethst-hidden       { display: none !important; }

/* ── Modal Overlay ────────────────────────────────────────── */
#ethst-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.88);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

/* ── Modal Box ────────────────────────────────────────────── */
.ethst-modal {
    background: linear-gradient(160deg, #0e0c06, #181400);
    border: 1px solid #c8a820;
    border-radius: 22px;
    max-width: 460px;
    width: 100%;
    padding: 36px 30px 30px;
    position: relative;
    box-shadow: 0 24px 80px rgba(0,0,0,0.9), 0 0 50px rgba(212,175,55,0.12);
    max-height: 92vh;
    overflow-y: auto;
    scrollbar-width: thin;
}

.ethst-modal-close {
    position: absolute;
    top: 14px;
    right: 18px;
    background: none;
    border: none;
    color: #555;
    font-size: 1.9rem;
    cursor: pointer;
    line-height: 1;
    padding: 2px 6px;
    transition: color 0.15s;
    z-index: 1;
}
.ethst-modal-close:hover { color: #fff; }

/* Modal header */
.ethst-modal-header {
    text-align: center;
    margin-bottom: 26px;
}

.ethst-modal-glyph {
    font-size: 3.2rem;
    color: #d4af37;
    line-height: 1;
    margin-bottom: 8px;
    text-shadow: 0 0 22px rgba(212,175,55,0.45);
}

.ethst-modal-title {
    color: #f0e8d0;
    font-size: 1.35rem;
    margin: 0 0 4px;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.ethst-modal-dates {
    color: #777;
    font-size: 0.82rem;
    margin: 0;
}

/* ── Form Fields ──────────────────────────────────────────── */
.ethst-field {
    margin-bottom: 16px;
}

.ethst-field label {
    display: block;
    color: #999;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.ethst-field input {
    width: 100%;
    padding: 11px 14px;
    background: #0c0b05;
    border: 1px solid #2a2510;
    border-radius: 10px;
    color: #fff;
    font-size: 0.93rem;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
    box-sizing: border-box;
}

.ethst-field input:focus {
    border-color: #d4af37;
    box-shadow: 0 0 0 3px rgba(212,175,55,0.12);
}

/* ── Error Box ────────────────────────────────────────────── */
.ethst-error {
    background: rgba(160,0,0,0.2);
    border: 1px solid rgba(255,60,60,0.4);
    color: #ff8a80;
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 0.86rem;
    line-height: 1.5;
    margin-bottom: 14px;
}

/* ── Submit Button ────────────────────────────────────────── */
.ethst-submit-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #d4af37, #f5d77a);
    color: #000;
    border: none;
    border-radius: 12px;
    font-size: 0.97rem;
    font-weight: 700;
    cursor: pointer;
    letter-spacing: 0.04em;
    transition: opacity 0.2s, transform 0.1s;
    margin-top: 6px;
}

.ethst-submit-btn:hover  { opacity: 0.9; }
.ethst-submit-btn:active { transform: scale(0.98); }
.ethst-submit-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
}
