/* Martial Arts Lead Magnet — JDB Sports Theme (Black & Gold) */

/* ── Guide grid ─────────────────────────────────────────── */
.malm-guide-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    padding: 20px 0;
}

/* ── Guide card ─────────────────────────────────────────── */
.malm-guide-card {
    background: #111111;
    border: 1px solid #2a2a2a;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform .2s, border-color .2s, box-shadow .2s;
    box-shadow: 0 2px 12px rgba(0,0,0,.4);
}
.malm-guide-card:hover {
    transform: translateY(-4px);
    border-color: #c9a227;
    box-shadow: 0 8px 30px rgba(201,162,39,.2);
}
.malm-guide-card__cover {
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 10px;
    position: relative;
}
.malm-guide-card__emoji { font-size: 54px; }
.malm-guide-card__level {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 3px;
    text-transform: uppercase;
    padding: 4px 14px;
    border-radius: 999px;
    color: #000;
    background: #c9a227;
}
.malm-guide-card__body { padding: 18px 20px; flex: 1; }
.malm-guide-card__title {
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 8px;
    line-height: 1.3;
}
.malm-guide-card__desc {
    font-size: 13px;
    color: #aaaaaa;
    line-height: 1.6;
    margin: 0;
}
.malm-guide-card__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 12px;
}
.malm-guide-card__count { font-size: 12px; color: #666; }
.malm-guide-card__free {
    font-size: 11px;
    font-weight: 800;
    color: #c9a227;
    background: rgba(201,162,39,.12);
    padding: 2px 10px;
    border-radius: 999px;
    letter-spacing: .04em;
}
.malm-guide-card__footer {
    padding: 14px 20px;
    border-top: 1px solid #222;
}

/* ── Buttons ─────────────────────────────────────────────── */
.malm-btn {
    display: block;
    width: 100%;
    padding: 12px;
    text-align: center;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    border: none;
    transition: all .15s;
    text-decoration: none;
    letter-spacing: .03em;
}
.malm-btn--primary {
    background: #c9a227;
    color: #000000;
}
.malm-btn--primary:hover {
    background: #e0b82a;
    color: #000000;
    transform: translateY(-1px);
}
.malm-btn--downloaded {
    background: #1a1a1a;
    color: #c9a227;
    border: 1px solid #c9a227;
}
.malm-btn--downloaded:hover {
    background: rgba(201,162,39,.1);
    color: #c9a227;
}

/* ── Modal overlay ───────────────────────────────────────── */
.malm-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.85);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.malm-modal {
    background: #111111;
    border: 1px solid #333;
    border-radius: 12px;
    max-width: 460px;
    width: 100%;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(0,0,0,.7);
}
.malm-modal__header {
    background: #000000;
    border-bottom: 2px solid #c9a227;
    color: #fff;
    padding: 22px 26px 18px;
    position: relative;
}
.malm-modal__close {
    position: absolute;
    top: 14px;
    right: 16px;
    background: none;
    border: none;
    color: #666;
    font-size: 20px;
    cursor: pointer;
    line-height: 1;
    transition: color .15s;
}
.malm-modal__close:hover { color: #c9a227; }
.malm-modal__logo {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #c9a227;
    margin-bottom: 8px;
}
.malm-modal__title {
    font-size: 20px;
    font-weight: 800;
    margin: 0 0 4px;
    color: #ffffff;
}
.malm-modal__subtitle {
    font-size: 13px;
    color: #888;
    margin: 0;
}
.malm-modal__body { padding: 22px 26px; }

/* ── Tabs ────────────────────────────────────────────────── */
.malm-modal-tabs {
    display: flex;
    gap: 0;
    border-bottom: 1px solid #2a2a2a;
    margin-bottom: 20px;
}
.malm-modal-tab {
    flex: 1;
    padding: 10px;
    text-align: center;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    border: none;
    background: none;
    color: #555;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    transition: all .15s;
    letter-spacing: .03em;
    text-transform: uppercase;
}
.malm-modal-tab:hover { color: #c9a227; }
.malm-modal-tab.active { color: #c9a227; border-bottom-color: #c9a227; }

.malm-modal-pane { display: none; }
.malm-modal-pane.active { display: block; }

/* ── Form fields ─────────────────────────────────────────── */
.malm-form-group { margin-bottom: 14px; }
.malm-form-group label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: #777;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: .08em;
}
.malm-form-group input,
.malm-form-group select {
    width: 100%;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 6px;
    padding: 11px 13px;
    font-size: 14px;
    color: #ffffff;
    transition: border-color .15s;
    box-sizing: border-box;
}
.malm-form-group input::placeholder { color: #444; }
.malm-form-group select { color: #ccc; }
.malm-form-group select option { background: #1a1a1a; }
.malm-form-group input:focus,
.malm-form-group select:focus {
    outline: none;
    border-color: #c9a227;
    box-shadow: 0 0 0 3px rgba(201,162,39,.15);
}

.malm-submit-btn {
    width: 100%;
    padding: 13px;
    background: #c9a227;
    color: #000000;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    margin-top: 6px;
    transition: all .15s;
    letter-spacing: .03em;
}
.malm-submit-btn:hover { background: #e0b82a; transform: translateY(-1px); }
.malm-submit-btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }

.malm-form-note {
    font-size: 11px;
    color: #555;
    text-align: center;
    margin-top: 10px;
}
.malm-form-note a { color: #c9a227; text-decoration: none; }

.malm-form-error {
    background: rgba(220,53,69,.15);
    border: 1px solid rgba(220,53,69,.3);
    color: #ff6b7a;
    padding: 10px 12px;
    border-radius: 6px;
    font-size: 13px;
    margin-bottom: 14px;
    display: none;
}
.malm-form-success {
    background: rgba(201,162,39,.12);
    border: 1px solid rgba(201,162,39,.3);
    color: #c9a227;
    padding: 14px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    display: none;
}

/* ── My guides ───────────────────────────────────────────── */
.malm-my-guides { padding: 10px 0; }
.malm-my-guide-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #222;
    color: #ccc;
}
.malm-my-guide-item:last-child { border-bottom: none; }
.malm-dl-btn {
    margin-left: auto;
    font-size: 13px;
    color: #c9a227;
    text-decoration: none;
    font-weight: 700;
}
.malm-dl-btn:hover { color: #e0b82a; }

/* ── Level badges ────────────────────────────────────────── */
.malm-level-badge {
    font-size: 10px;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: .08em;
}
.malm-level-beginner     { background: rgba(201,162,39,.15); color: #c9a227; }
.malm-level-intermediate { background: rgba(100,149,237,.15); color: #6495ed; }
.malm-level-advanced     { background: rgba(255,255,255,.1);  color: #ffffff; }

/* ── Success page / thank you ────────────────────────────── */
.malm-success-box {
    background: #111;
    border: 1px solid #c9a227;
    border-radius: 10px;
    padding: 32px;
    text-align: center;
    max-width: 500px;
    margin: 40px auto;
}
.malm-success-box h2 { color: #c9a227; font-size: 22px; margin-bottom: 12px; }
.malm-success-box p  { color: #aaa; font-size: 14px; line-height: 1.6; }

@media (max-width: 600px) {
    .malm-guide-grid { grid-template-columns: 1fr; }
    .malm-modal-overlay { align-items: flex-end; padding: 0; }
    .malm-modal { border-radius: 12px 12px 0 0; max-width: 100%; }
}
