/* ==============================================================================
   GenIsis Holistic Life — 3D Button & 3D Interactive Link Design System
   Tactile 3D push-button physics with lighting, depth, press states, and zero-overlap clearance
   Ocean Palette: #1A6274 (Dark), #2F8893 (Medium), #43B0B1 (Aqua), #87D9D8 (Soft), #AFE8E9 (Mist)
   ============================================================================== */

/* Base 3D Button & Link System */
.btn-3d,
button.btn-3d,
a.btn-3d,
.btn-action,
.btn-cta {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    padding: 0.85rem 1.75rem;
    font-family: var(--font-body, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif);
    font-size: 0.96rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    text-decoration: none;
    text-align: center;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    user-select: none;
    outline: none;
    transition: transform 0.12s ease-out, box-shadow 0.12s ease-out, background 0.2s ease, color 0.2s ease, opacity 0.2s ease;
    vertical-align: middle;
    white-space: nowrap;
    -webkit-tap-highlight-color: transparent;
    max-width: 100%;
    box-sizing: border-box;
    margin-top: 0.25rem;
    margin-bottom: 0.35rem;
}

/* Shiny Bevel / Lighting Reflection on Top Edge */
.btn-3d::before {
    content: '';
    position: absolute;
    top: 1px;
    left: 4px;
    right: 4px;
    height: 35%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.35) 0%, rgba(255, 255, 255, 0.05) 100%);
    border-radius: inherit;
    border-bottom-left-radius: 4px;
    border-bottom-right-radius: 4px;
    pointer-events: none;
}

/* ─────────────────────────────────────────────────────────────────────────────
   1. Primary Deep Ocean 3D Button (#1A6274 -> #103E4A)
   ───────────────────────────────────────────────────────────────────────────── */
.btn-3d-teal,
.btn-teal {
    background: linear-gradient(180deg, #2F8893 0%, #1A6274 100%);
    color: #ffffff !important;
    text-shadow: 0 1px 2px rgba(16, 62, 74, 0.6);
    box-shadow: 
        0 1px 0 rgba(255, 255, 255, 0.35) inset,
        0 5px 0 #103E4A,
        0 8px 18px rgba(26, 98, 116, 0.35);
}

.btn-3d-teal:hover:not(:disabled),
.btn-teal:hover:not(:disabled) {
    background: linear-gradient(180deg, #43B0B1 0%, #2F8893 100%);
    transform: translateY(-2px);
    box-shadow: 
        0 1px 0 rgba(255, 255, 255, 0.45) inset,
        0 7px 0 #103E4A,
        0 12px 24px rgba(26, 98, 116, 0.45);
}

.btn-3d-teal:active:not(:disabled),
.btn-teal:active:not(:disabled) {
    transform: translateY(4px);
    box-shadow: 
        0 1px 0 rgba(255, 255, 255, 0.2) inset,
        0 1px 0 #103E4A,
        0 3px 8px rgba(26, 98, 116, 0.25);
}

/* ─────────────────────────────────────────────────────────────────────────────
   2. Vibrant Aqua 3D Button (#43B0B1 -> #2F8893)
   ───────────────────────────────────────────────────────────────────────────── */
.btn-3d-aqua,
.btn-aqua {
    background: linear-gradient(180deg, #43B0B1 0%, #2F8893 100%);
    color: #ffffff !important;
    text-shadow: 0 1px 2px rgba(16, 62, 74, 0.5);
    box-shadow: 
        0 1px 0 rgba(255, 255, 255, 0.45) inset,
        0 5px 0 #1A6274,
        0 8px 18px rgba(67, 176, 177, 0.35);
}

.btn-3d-aqua:hover:not(:disabled),
.btn-aqua:hover:not(:disabled) {
    background: linear-gradient(180deg, #87D9D8 0%, #43B0B1 100%);
    color: #103E4A !important;
    transform: translateY(-2px);
    box-shadow: 
        0 1px 0 rgba(255, 255, 255, 0.6) inset,
        0 7px 0 #1A6274,
        0 12px 24px rgba(67, 176, 177, 0.45);
}

.btn-3d-aqua:active:not(:disabled),
.btn-aqua:active:not(:disabled) {
    transform: translateY(4px);
    box-shadow: 
        0 1px 0 rgba(255, 255, 255, 0.25) inset,
        0 1px 0 #1A6274,
        0 3px 8px rgba(67, 176, 177, 0.25);
}

/* ─────────────────────────────────────────────────────────────────────────────
   3. Warm Amber Gold 3D Button (#FFC55C -> #FFB73E)
   ───────────────────────────────────────────────────────────────────────────── */
.btn-3d-gold,
.btn-gold {
    background: linear-gradient(180deg, #ffc55c 0%, #ffb73e 100%);
    color: #2b1700 !important;
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.5);
    box-shadow: 
        0 1px 0 rgba(255, 255, 255, 0.6) inset,
        0 5px 0 #b87b14,
        0 8px 18px rgba(255, 183, 62, 0.35);
}

.btn-3d-gold:hover:not(:disabled),
.btn-gold:hover:not(:disabled) {
    background: linear-gradient(180deg, #ffd073 0%, #ffbe4d 100%);
    transform: translateY(-2px);
    box-shadow: 
        0 1px 0 rgba(255, 255, 255, 0.7) inset,
        0 7px 0 #b87b14,
        0 12px 24px rgba(255, 183, 62, 0.45);
}

.btn-3d-gold:active:not(:disabled),
.btn-gold:active:not(:disabled) {
    transform: translateY(4px);
    box-shadow: 
        0 1px 0 rgba(255, 255, 255, 0.3) inset,
        0 1px 0 #b87b14,
        0 3px 8px rgba(255, 183, 62, 0.25);
}

/* ─────────────────────────────────────────────────────────────────────────────
   4. Deep Ocean Obsidian 3D Button (#1A6274 -> #103E4A)
   ───────────────────────────────────────────────────────────────────────────── */
.btn-3d-dark,
.btn-dark {
    background: linear-gradient(180deg, #1A6274 0%, #103E4A 100%);
    color: #ffffff !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
    box-shadow: 
        0 1px 0 rgba(255, 255, 255, 0.25) inset,
        0 5px 0 #09242B,
        0 8px 18px rgba(16, 62, 74, 0.45);
}

.btn-3d-dark:hover:not(:disabled),
.btn-dark:hover:not(:disabled) {
    background: linear-gradient(180deg, #2F8893 0%, #164D5B 100%);
    transform: translateY(-2px);
    box-shadow: 
        0 1px 0 rgba(255, 255, 255, 0.35) inset,
        0 7px 0 #09242B,
        0 12px 24px rgba(16, 62, 74, 0.55);
}

.btn-3d-dark:active:not(:disabled),
.btn-dark:active:not(:disabled) {
    transform: translateY(4px);
    box-shadow: 
        0 1px 0 rgba(255, 255, 255, 0.15) inset,
        0 1px 0 #09242B,
        0 3px 8px rgba(16, 62, 74, 0.3);
}

/* ─────────────────────────────────────────────────────────────────────────────
   5. Glassmorphic 3D White/Mist Button
   ───────────────────────────────────────────────────────────────────────────── */
.btn-3d-glass {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(220, 242, 242, 0.90) 100%);
    color: #103E4A !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(67, 176, 177, 0.35);
    box-shadow: 
        0 1px 0 #ffffff inset,
        0 5px 0 #87D9D8,
        0 8px 20px rgba(16, 62, 74, 0.18);
}

.btn-3d-glass:hover:not(:disabled) {
    background: #ffffff;
    transform: translateY(-2px);
    box-shadow: 
        0 1px 0 #ffffff inset,
        0 7px 0 #43B0B1,
        0 12px 26px rgba(16, 62, 74, 0.25);
}

.btn-3d-glass:active:not(:disabled) {
    transform: translateY(4px);
    box-shadow: 
        0 1px 0 #ffffff inset,
        0 1px 0 #43B0B1,
        0 3px 8px rgba(16, 62, 74, 0.15);
}

/* ─────────────────────────────────────────────────────────────────────────────
   6. Disabled Button State (Safe, Clear, Non-Interactive)
   ───────────────────────────────────────────────────────────────────────────── */
.btn-3d:disabled,
.btn-3d.btn-disabled,
button.btn-3d:disabled {
    opacity: 0.52 !important;
    cursor: not-allowed !important;
    pointer-events: none !important;
    transform: none !important;
    box-shadow: 0 2px 0 rgba(16, 62, 74, 0.35) !important;
    filter: grayscale(35%) !important;
}

/* ─────────────────────────────────────────────────────────────────────────────
   7. Button Shapes & Size Modifiers
   ───────────────────────────────────────────────────────────────────────────── */
/* Pill Shape */
.btn-pill {
    border-radius: 9999px !important;
    padding: 1rem 2.4rem;
    font-size: 1.05rem;
    letter-spacing: 0.05em;
}

/* Large Hero & Primary Action */
.btn-lg {
    padding: 0.95rem 2rem;
    font-size: 1.02rem;
    border-radius: 14px;
}

/* Small Card Action */
.btn-sm {
    padding: 0.55rem 1.15rem;
    font-size: 0.84rem;
    border-radius: 8px;
    box-shadow: 
        0 1px 0 rgba(255, 255, 255, 0.35) inset,
        0 3px 0 #103E4A,
        0 5px 12px rgba(26, 98, 116, 0.25);
}

/* Subtle Pulsing Aura Glow */
.btn-glow {
    animation: btnAuraPulse 3.5s infinite ease-in-out;
}

@keyframes btnAuraPulse {
    0%, 100% {
        box-shadow: 
            0 1px 0 rgba(255, 255, 255, 0.35) inset,
            0 5px 0 #103E4A,
            0 8px 18px rgba(26, 98, 116, 0.35);
    }
    50% {
        box-shadow: 
            0 1px 0 rgba(255, 255, 255, 0.55) inset,
            0 5px 0 #103E4A,
            0 10px 28px rgba(67, 176, 177, 0.6);
    }
}

/* ─────────────────────────────────────────────────────────────────────────────
   8. 3D Navigation Action & Header Links
   ───────────────────────────────────────────────────────────────────────────── */
.nav-link-3d {
    position: relative;
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.55rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: #103E4A;
    text-decoration: none;
    border-radius: 6px;
    background: transparent;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.nav-link-3d:hover {
    background: rgba(67, 176, 177, 0.15);
    color: #1A6274;
    transform: translateY(-1px);
}

.nav-link-3d.active {
    background: rgba(67, 176, 177, 0.22);
    color: #103E4A;
    box-shadow: inset 0 -2px 0 #2F8893;
}

.nav-cta-3d {
    background: linear-gradient(180deg, #2F8893 0%, #1A6274 100%);
    color: #ffffff !important;
    padding: 0.45rem 1.05rem;
    border-radius: 9999px;
    font-weight: 700;
    font-size: 0.82rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    box-shadow: 
        0 1px 0 rgba(255, 255, 255, 0.35) inset,
        0 3px 0 #103E4A,
        0 5px 12px rgba(26, 98, 116, 0.3);
    transition: all 0.12s ease-out;
    white-space: nowrap;
    margin: 0;
}

.nav-cta-3d:hover {
    background: linear-gradient(180deg, #43B0B1 0%, #2F8893 100%);
    transform: translateY(-2px);
    box-shadow: 
        0 1px 0 rgba(255, 255, 255, 0.45) inset,
        0 4px 0 #103E4A,
        0 8px 16px rgba(26, 98, 116, 0.4);
}

.nav-cta-3d:active {
    transform: translateY(2px);
    box-shadow: 
        0 1px 0 rgba(255, 255, 255, 0.2) inset,
        0 1px 0 #103E4A,
        0 2px 6px rgba(26, 98, 116, 0.2);
}

/* ─────────────────────────────────────────────────────────────────────────────
   9. Social 3D Pill & Circular Buttons
   ───────────────────────────────────────────────────────────────────────────── */
.social-btn-3d {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(180deg, #ffffff 0%, #E8F6F6 100%);
    color: #1A6274;
    text-decoration: none;
    box-shadow: 
        0 1px 0 #ffffff inset,
        0 4px 0 #87D9D8,
        0 6px 12px rgba(16, 62, 74, 0.18);
    transition: all 0.12s ease-out;
    margin: 0;
}

.social-btn-3d svg {
    width: 19px;
    height: 19px;
    fill: currentColor;
    transition: transform 0.2s ease;
}

.social-btn-3d:hover {
    transform: translateY(-2px);
    color: #103E4A;
    box-shadow: 
        0 1px 0 #ffffff inset,
        0 5px 0 #43B0B1,
        0 8px 16px rgba(26, 98, 116, 0.28);
}

.social-btn-3d:hover svg {
    transform: scale(1.12);
}

.social-btn-3d:active {
    transform: translateY(3px);
    box-shadow: 
        0 1px 0 #ffffff inset,
        0 1px 0 #43B0B1,
        0 2px 6px rgba(16, 62, 74, 0.15);
}

/* ─────────────────────────────────────────────────────────────────────────────
   10. Mobile Responsive Spacing & Overflow Protection
   ───────────────────────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
    .btn-3d,
    button.btn-3d,
    a.btn-3d,
    .btn-action,
    .btn-cta {
        white-space: normal !important;
        word-break: normal !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        padding: 0.85rem 1.25rem !important;
        font-size: 0.92rem !important;
        line-height: 1.35 !important;
        margin-top: 0.35rem;
        margin-bottom: 0.65rem;
    }

    .btn-lg {
        padding: 0.9rem 1.35rem !important;
        font-size: 0.95rem !important;
    }

    .btn-pill {
        padding: 0.9rem 1.4rem !important;
        font-size: 0.92rem !important;
        border-radius: 9999px !important;
    }
}
