/* Custom CSS for Soul Squad Platform */

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
    max-width: 100vw;
}

/* Remove dotted / dashed focus outlines site-wide; use shadow-based focus instead */
a,
button,
input,
select,
textarea,
[tabindex] {
    outline: none !important;
}

a:focus-visible,
button:focus-visible {
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.35);
    border-radius: 6px;
}

.card {
    outline: none;
}


body {
    font-family: 'Inter', system-ui, sans-serif;
    overflow-x: hidden;
    max-width: 100vw;
}

/* ── PWA / Mobile responsive global containment ── */
img, svg, video, canvas, iframe, embed, object {
    max-width: 100%;
    height: auto;
}

/* Tables scroll horizontally rather than blowing out the viewport */
table {
    max-width: 100%;
    width: 100%;
}
.table-wrap {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Long unbreakable strings (URLs, hashes) wrap inside cards */
p, span, li, td, th, label, div {
    word-break: break-word;
    overflow-wrap: break-word;
}

/* Pre / code blocks scroll, don't overflow */
pre, code {
    max-width: 100%;
    overflow-x: auto;
    white-space: pre-wrap;
    word-break: break-all;
}

/* Main content area never exceeds viewport */
main {
    overflow-x: hidden;
    max-width: 100%;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Outfit', 'Inter', sans-serif;
}

/* Button Styles */
.btn {
    @apply px-6 py-3 rounded-lg font-medium transition-all duration-200 inline-flex items-center justify-center gap-2;
}

/* ── SolaceSquad brand green (overrides Tailwind pink/rose primary) ── */
.btn-primary {
    background: linear-gradient(135deg, #2d6a5a 0%, #1e4d40 100%);
    color: #ffffff;
    border: none;
    box-shadow: 0 3px 10px rgba(45, 106, 90, 0.30);
    transition: opacity 0.2s, transform 0.1s;
}
.btn-primary:hover {
    opacity: 0.91;
    transform: translateY(-1px);
    color: #ffffff;
    box-shadow: 0 5px 16px rgba(45, 106, 90, 0.40);
}

.btn-secondary {
    background: #fff;
    color: #2d6a5a;
    border: 2px solid #2d6a5a;
    transition: background 0.2s, color 0.2s;
}
.btn-secondary:hover {
    background: #f0fdf4;
    color: #1e4d40;
}

/* Login / outlined nav button (used in header.html) */
.ss-login-btn {
    color: #2d6a5a;
    font-weight: 600;
    text-decoration: none;
    border: 1.5px solid #2d6a5a;
    padding: 0.4rem 1rem;
    border-radius: 0.5rem;
    transition: background 0.2s, color 0.2s;
    display: inline-block;
}
.ss-login-btn:hover {
    background: #2d6a5a;
    color: #fff;
}


/* Card Styles */
.card {
    @apply bg-white rounded-2xl shadow-md hover:shadow-xl transition-all duration-300 p-6;
}

.card-hover:hover {
    @apply -translate-y-1;
}

/* Section Styles */
.section {
    @apply py-16;
}

@media (min-width: 768px) {
    .section {
        @apply py-24;
    }
}

.container-custom {
    @apply max-w-7xl mx-auto px-4;
}

@media (min-width: 640px) {
    .container-custom {
        @apply px-6;
    }
}

@media (min-width: 1024px) {
    .container-custom {
        @apply px-8;
    }
}

/* Gradient Text */
.gradient-text {
    background: linear-gradient(to right, #e11d48, #0d9488);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Glass Effect */
.glass {
    @apply bg-white/95 backdrop-blur-md border-b border-gray-100;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideDown {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.animate-fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

.animate-slide-up {
    animation: slideUp 0.5s ease-out;
}

.animate-slide-down {
    animation: slideDown 0.5s ease-out;
}



/* Sidebar */
.sidebar {
    transform: translateX(-100%);
    transition: transform 0.3s ease-out;
}

.sidebar.open {
    transform: translateX(0);
}

@media (min-width: 1024px) {
    .sidebar {
        transform: translateX(0);
    }
}

/* Utility Classes */
.line-clamp-1 {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* -- ORIENTATION ADJUSTMENTS ------------------------------------------------ */

/* Portrait: safe-area insets for notch / Dynamic Island / home indicator */
@media (orientation: portrait) {
    body {
        padding-top: env(safe-area-inset-top, 0);
        padding-bottom: env(safe-area-inset-bottom, 0);
    }
}

/* Landscape on a phone (viewport height <= 600px) — compact the layout */
@media (orientation: landscape) and (max-height: 600px) {
    section:first-of-type {
        padding-top: 70px !important;
        padding-bottom: 32px !important;
    }

    .section {
        padding-top: 32px !important;
        padding-bottom: 32px !important;
    }

    .btn {
        padding-top: 0.45rem;
        padding-bottom: 0.45rem;
    }

    body {
        padding-left: env(safe-area-inset-left, 0);
        padding-right: env(safe-area-inset-right, 0);
    }
}

/* Mobile Menu — always visible on mobile, sits inside the fixed header in normal flow */
.mobile-menu {
    display: block;
    background: #fff;
    border-top: 1px solid #f3f4f6;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

@media (min-width: 768px) {
    .mobile-menu {
        display: none;
    }
}