/* ═══════════════════════════════════════════════════════════════════════════
   CyberKavach - Global Tactile Button System
   Solid sharp-edged offset shadow (stacked block effect, zero blur)
   ══════════════════════════════════════════════════════════════════════════ */

/* ── Base Tactile Button ───────────────────────────────────────────────── */
.btn-tactile {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;

    /* Typography */
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    text-decoration: none;
    white-space: nowrap;

    /* Spacing */
    padding: 0.55rem 1.1rem;

    /* Visual — solid fill, never transparent */
    border: 1.5px solid #3a3a3a;
    border-radius: 8px;
    background: #222222;
    color: #e5e5e5;

    /* Solid sharp shadow — zero blur, fully opaque */
    box-shadow: 4px 4px 0px 0px #0a0a0a;
    transform: translate(0, 0);

    /* Snappy transition */
    transition: transform 0.1s ease, box-shadow 0.1s ease;
    cursor: pointer;
    user-select: none;
}

.btn-tactile i {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* Hover — button moves toward shadow */
.btn-tactile:hover {
    box-shadow: 2px 2px 0px 0px #0a0a0a;
    transform: translate(2px, 2px);
}

/* Active/click — fully pressed flat */
.btn-tactile:active {
    box-shadow: 0px 0px 0px 0px #0a0a0a;
    transform: translate(4px, 4px);
}

/* Focus state */
.btn-tactile:focus-visible {
    outline: 2px solid #dc2626;
    outline-offset: 2px;
}

/* Disabled state */
.btn-tactile:disabled,
.btn-tactile.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* ── Nav Link Button (smaller sizing) ──────────────────────────────────── */
.btn-tactile-nav {
    font-size: 0.85rem;
    padding: 0.5rem 1rem;
    background: #222222;
    color: #e5e5e5;
    border-color: #3a3a3a;
    box-shadow: 4px 4px 0px 0px #2c2c2c;
}

.btn-tactile-nav:hover {
    box-shadow: 2px 2px 0px 0px #2c2c2c;
    transform: translate(2px, 2px);
}

.btn-tactile-nav:active {
    box-shadow: 0px 0px 0px 0px #2c2c2c;
    transform: translate(4px, 4px);
}

/* Active page nav link — solid red fill with darker red shadow */
.btn-tactile-nav.active {
    background: #dc2626;
    color: #ffffff;
    border-color: #dc2626;
    box-shadow: 4px 4px 0px 0px #5a0f0f;
}

.btn-tactile-nav.active:hover {
    box-shadow: 2px 2px 0px 0px #5a0f0f;
    transform: translate(2px, 2px);
}

.btn-tactile-nav.active:active {
    box-shadow: 0px 0px 0px 0px #5a0f0f;
    transform: translate(4px, 4px);
}

/* ── Sign In Button ────────────────────────────────────────────────────── */
.btn-tactile-ghost {
    background: #222222;
    color: #ffffff;
    border-color: #3a3a3a;
    box-shadow: 4px 4px 0px 0px #2c2c2c;
}

.btn-tactile-ghost:hover {
    box-shadow: 2px 2px 0px 0px #2c2c2c;
    transform: translate(2px, 2px);
}

.btn-tactile-ghost:active {
    box-shadow: 0px 0px 0px 0px #2c2c2c;
    transform: translate(4px, 4px);
}

/* ── Primary Button (Join Community, Register Now) ─────────────────────── */
.btn-tactile-primary {
    background: #dc2626;
    color: #ffffff;
    border-color: #dc2626;
    box-shadow: 4px 4px 0px 0px #5a0f0f;
}

.btn-tactile-primary:hover {
    box-shadow: 2px 2px 0px 0px #5a0f0f;
    transform: translate(2px, 2px);
}

.btn-tactile-primary:active {
    box-shadow: 0px 0px 0px 0px #5a0f0f;
    transform: translate(4px, 4px);
}

/* ── Secondary Button (View Details, Explore Events) ───────────────────── */
.btn-tactile-secondary {
    background: #222222;
    color: #ffffff;
    border-color: #3a3a3a;
    box-shadow: 4px 4px 0px 0px #0a0a0a;
}

.btn-tactile-secondary:hover {
    box-shadow: 2px 2px 0px 0px #0a0a0a;
    transform: translate(2px, 2px);
}

.btn-tactile-secondary:active {
    box-shadow: 0px 0px 0px 0px #0a0a0a;
    transform: translate(4px, 4px);
}

/* ── Button Sizes ──────────────────────────────────────────────────────── */
.btn-tactile-sm {
    font-size: 0.8rem;
    padding: 0.45rem 0.9rem;
}

.btn-tactile-lg {
    font-size: 1rem;
    padding: 0.7rem 1.4rem;
}

/* ── Mobile Adjustments ────────────────────────────────────────────────── */
@media (max-width: 768px) {
    .btn-tactile {
        font-size: 0.85rem;
        padding: 0.5rem 1rem;
    }

    .btn-tactile-nav {
        font-size: 0.9rem;
        padding: 0.6rem 1.1rem;
        width: 100%;
        justify-content: flex-start;
    }
}

/* ── Reduced Motion Support ────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    .btn-tactile {
        transition: none;
    }

    .btn-tactile:hover,
    .btn-tactile:active {
        transform: none;
        box-shadow: 4px 4px 0px 0px #0a0a0a;
    }

    .btn-tactile-nav.active:hover,
    .btn-tactile-nav.active:active,
    .btn-tactile-primary:hover,
    .btn-tactile-primary:active {
        box-shadow: 4px 4px 0px 0px #5a0f0f;
    }
}
