﻿/* Custom CSS for Soul Squad Platform */

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
}

/* 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;
}

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;
}

.btn-primary {
    @apply bg-gradient-to-r from-primary-600 to-primary-700 text-white hover:from-primary-700 hover:to-primary-800 shadow-lg hover:shadow-xl;
}

.btn-secondary {
    @apply bg-white text-primary-700 border-2 border-primary-600 hover:bg-primary-50;
}

.btn-accent {
    @apply bg-gradient-to-r from-secondary-600 to-secondary-700 text-white hover:from-secondary-700 hover:to-secondary-800 shadow-lg hover:shadow-xl;
}

/* 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;
    }
}