/**
 * CREALIVE EVENT - Tropical Mobile-Only CSS
 * © 2025 Crealive Event - Maurice 🌴 développé par Shahil AppDev
 */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

:root {
  --blue-ocean: #1ea7dd;
  --blue-ocean-dark: #1589b8;
  --blue-ocean-light: #5fc4eb;
  --green-lime: #00e096;
  --green-lime-dark: #00b377;
  --sunset-orange: #ff8f4c;
  --sunset-pink: #ff4d94;
  --purple-night: #5b3cff;
  --dark-deep: #0d1020;
  --dark-card: #161a2d;
  --dark-surface: #1c2137;
  --white-soft: #f8f8f8;
  --white-pure: #ffffff;
  --gray-100: #f1f3f5;
  --gray-200: #e9ecef;
  --gray-300: #dee2e6;
  --gray-400: #ced4da;
  --gray-500: #adb5bd;
  --gray-600: #6c757d;
  --gray-700: #495057;
  --color-success: #00e096;
  --color-warning: #ffbe0b;
  --color-error: #ff4757;
  --color-live: #ff4757;
  --gradient-tropical: linear-gradient(135deg, #1ea7dd 0%, #00e096 100%);
  --gradient-sunset: linear-gradient(135deg, #ff8f4c 0%, #ff4d94 100%);
  --gradient-night: linear-gradient(135deg, #5b3cff 0%, #ff4d94 100%);
  --gradient-ocean: linear-gradient(180deg, #1ea7dd 0%, #0d1020 100%);
  --gradient-glass: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
  --font-main: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-12: 3rem;
  --radius-sm: 0.5rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --radius-full: 9999px;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.15);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.2);
  --shadow-glow-blue: 0 4px 20px rgba(30, 167, 221, 0.4);
  --shadow-glow-pink: 0 4px 20px rgba(255, 77, 148, 0.4);
  --shadow-card: 0 2px 8px rgba(0,0,0,0.08), 0 4px 16px rgba(0,0,0,0.04);
  --transition-fast: 150ms ease;
  --transition-base: 200ms ease;
  --transition-slow: 300ms ease;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --header-height: 56px;
  --bottom-nav-height: 64px;
  --mobile-max-width: 480px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html { font-size: 16px; scroll-behavior: smooth; }
body { font-family: var(--font-main); font-size: var(--text-base); line-height: 1.5; color: var(--dark-deep); background: var(--white-soft); min-height: 100vh; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
body.dark-mode { background: var(--dark-deep); color: var(--white-soft); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, textarea, select { font-family: inherit; font-size: inherit; }
ul, ol { list-style: none; }

.mobile-container { width: 100%; max-width: var(--mobile-max-width); margin: 0 auto; min-height: 100vh; position: relative; background: var(--white-soft); }
.mobile-container.dark { background: var(--dark-deep); color: var(--white-soft); }
.page-content { padding: calc(var(--header-height) + var(--safe-top)) var(--space-4) calc(var(--bottom-nav-height) + var(--safe-bottom) + var(--space-4)); min-height: 100vh; }
.page-content.no-header { padding-top: var(--safe-top); }
.page-content.no-bottom { padding-bottom: var(--space-4); }
.page-content.fullscreen { padding: 0; }

.mobile-header { position: fixed; top: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: var(--mobile-max-width); height: calc(var(--header-height) + var(--safe-top)); padding-top: var(--safe-top); background: var(--white-pure); display: flex; align-items: center; justify-content: space-between; padding-left: var(--space-4); padding-right: var(--space-4); z-index: 100; border-bottom: 1px solid var(--gray-200); }
.mobile-header.dark { background: var(--dark-deep); border-bottom-color: var(--dark-card); color: var(--white-soft); }
.mobile-header.transparent { background: transparent; border-bottom: none; }
.mobile-header.gradient { background: var(--gradient-tropical); border-bottom: none; color: var(--white-pure); }
.header-btn { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; border-radius: var(--radius-full); color: inherit; font-size: var(--text-lg); transition: background var(--transition-fast); }
.header-btn:hover { background: rgba(0, 0, 0, 0.05); }
.header-title { font-size: var(--text-lg); font-weight: 600; flex: 1; text-align: center; }

.bottom-nav { position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: var(--mobile-max-width); height: calc(var(--bottom-nav-height) + var(--safe-bottom)); padding-bottom: var(--safe-bottom); background: var(--white-pure); display: flex; align-items: center; justify-content: space-around; z-index: 100; border-top: 1px solid var(--gray-200); box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.05); }
.bottom-nav.dark { background: var(--dark-card); border-top-color: var(--dark-surface); }
.nav-item { display: flex; flex-direction: column; align-items: center; gap: var(--space-1); padding: var(--space-2) var(--space-3); color: var(--gray-500); font-size: var(--text-xs); font-weight: 500; transition: color var(--transition-fast); }
.nav-item i { font-size: 20px; }
.nav-item.active { color: var(--blue-ocean); }
.nav-item.active i { transform: scale(1.1); }

.tropical-btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2); padding: var(--space-3) var(--space-6); font-size: var(--text-base); font-weight: 600; border: none; border-radius: var(--radius-md); cursor: pointer; transition: all var(--transition-base); }
.tropical-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.tropical-btn-primary { background: var(--gradient-tropical); color: var(--white-pure); box-shadow: var(--shadow-glow-blue); }
.tropical-btn-primary:hover:not(:disabled) { transform: translateY(-2px); }
.tropical-btn-sunset { background: var(--gradient-sunset); color: var(--white-pure); box-shadow: var(--shadow-glow-pink); }
.tropical-btn-outline { background: transparent; color: var(--blue-ocean); border: 2px solid var(--blue-ocean); }
.tropical-btn-outline:hover:not(:disabled) { background: var(--blue-ocean); color: var(--white-pure); }
.tropical-btn-ghost { background: transparent; color: var(--blue-ocean); }
.tropical-btn-white { background: var(--white-pure); color: var(--blue-ocean); box-shadow: var(--shadow-md); }
.tropical-btn-block { width: 100%; }
.tropical-btn-sm { padding: var(--space-2) var(--space-4); font-size: var(--text-sm); }
.tropical-btn-lg { padding: var(--space-4) var(--space-8); font-size: var(--text-lg); }
.tropical-btn-icon { width: 48px; height: 48px; padding: 0; border-radius: var(--radius-full); }

.tropical-card { background: var(--white-pure); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); overflow: hidden; transition: all var(--transition-base); }
.tropical-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,0.12); }
.glass-card { background: var(--gradient-glass); backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,0.2); border-radius: var(--radius-lg); }

.influencer-card { position: relative; background: var(--white-pure); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-card); }
.influencer-card:hover { transform: translateY(-4px); }
.influencer-card-image { width: 100%; aspect-ratio: 1; object-fit: cover; }
.influencer-card-content { padding: var(--space-4); }
.influencer-card-name { font-weight: 600; display: flex; align-items: center; gap: var(--space-1); }
.influencer-card-category { font-size: var(--text-sm); color: var(--gray-500); }
.influencer-card-stats { display: flex; gap: var(--space-4); margin-top: var(--space-3); font-size: var(--text-sm); color: var(--gray-600); }

.event-card { position: relative; background: var(--white-pure); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-card); }
.event-card:hover { transform: translateY(-4px); }
.event-card-image { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.event-card-date { position: absolute; top: var(--space-3); left: var(--space-3); background: var(--white-pure); padding: var(--space-2) var(--space-3); border-radius: var(--radius-sm); text-align: center; box-shadow: var(--shadow-sm); }
.event-card-date-day { font-size: var(--text-xl); font-weight: 700; color: var(--blue-ocean); line-height: 1; }
.event-card-date-month { font-size: var(--text-xs); color: var(--gray-500); text-transform: uppercase; }
.event-card-content { padding: var(--space-4); }
.event-card-title { font-weight: 600; margin-bottom: var(--space-2); }
.event-card-location { display: flex; align-items: center; gap: var(--space-1); font-size: var(--text-sm); color: var(--gray-500); }
.event-card-price { margin-top: var(--space-3); font-weight: 700; color: var(--green-lime-dark); }

.live-card { position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 9/16; }
.live-card-thumbnail { width: 100%; height: 100%; object-fit: cover; }
.live-card-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0.4) 0%, transparent 30%, transparent 60%, rgba(0,0,0,0.8) 100%); display: flex; flex-direction: column; justify-content: space-between; padding: var(--space-3); }
.live-card-top { display: flex; justify-content: space-between; align-items: flex-start; }
.live-card-bottom { display: flex; align-items: center; gap: var(--space-3); }
.live-card-avatar { width: 40px; height: 40px; border-radius: var(--radius-full); border: 2px solid var(--white-pure); object-fit: cover; }
.live-card-info { flex: 1; min-width: 0; }
.live-card-title { font-weight: 600; color: var(--white-pure); font-size: var(--text-sm); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.live-card-host { font-size: var(--text-xs); color: rgba(255,255,255,0.8); }

.product-card { background: var(--white-pure); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-card); }
.product-card-image { width: 100%; aspect-ratio: 1; object-fit: cover; }
.product-card-content { padding: var(--space-3); }
.product-card-name { font-weight: 500; font-size: var(--text-sm); margin-bottom: var(--space-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-card-price { font-weight: 700; color: var(--blue-ocean); }
.product-card-old-price { font-size: var(--text-sm); color: var(--gray-400); text-decoration: line-through; margin-left: var(--space-2); }

.badge { display: inline-flex; align-items: center; gap: var(--space-1); padding: var(--space-1) var(--space-2); font-size: var(--text-xs); font-weight: 500; border-radius: var(--radius-full); text-transform: uppercase; }
.badge-success { background: #e6fff5; color: #00b377; }
.badge-warning { background: #fff8e6; color: #cc9800; }
.badge-error { background: #ffebee; color: #cc3945; }

.live-badge { display: inline-flex; align-items: center; gap: var(--space-1); padding: 6px 12px; background: var(--color-live); color: var(--white-pure); font-size: var(--text-xs); font-weight: 700; border-radius: var(--radius-full); text-transform: uppercase; letter-spacing: 1px; animation: pulse-live 2s infinite; }
.live-badge::before { content: ''; width: 6px; height: 6px; background: var(--white-pure); border-radius: var(--radius-full); animation: blink 1s infinite; }
.live-badge.sm { padding: 4px 8px; font-size: 10px; }
.live-badge.sm::before { width: 4px; height: 4px; }

.verified-badge { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; background: var(--gradient-tropical); color: var(--white-pure); border-radius: var(--radius-full); font-size: 10px; }
.viewer-count { display: inline-flex; align-items: center; gap: var(--space-1); padding: var(--space-1) var(--space-2); background: rgba(0,0,0,0.5); color: var(--white-pure); font-size: var(--text-xs); font-weight: 500; border-radius: var(--radius-full); }

.avatar { position: relative; display: inline-block; border-radius: var(--radius-full); overflow: hidden; flex-shrink: 0; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar-sm { width: 32px; height: 32px; }
.avatar-md { width: 48px; height: 48px; }
.avatar-lg { width: 64px; height: 64px; }
.avatar-xl { width: 96px; height: 96px; }
.avatar-bordered { padding: 3px; background: var(--gradient-tropical); }
.avatar-bordered img { border-radius: var(--radius-full); }
.avatar-live { padding: 3px; background: var(--gradient-sunset); animation: avatar-pulse 2s infinite; }

.form-group { margin-bottom: var(--space-4); }
.form-label { display: block; margin-bottom: var(--space-2); font-size: var(--text-sm); font-weight: 500; color: var(--gray-700); }
.form-label.required::after { content: ' *'; color: var(--color-error); }
.form-input { width: 100%; padding: var(--space-3) var(--space-4); font-size: var(--text-base); color: var(--gray-700); background: var(--gray-100); border: 2px solid transparent; border-radius: var(--radius-md); outline: none; transition: all var(--transition-fast); }
.form-input::placeholder { color: var(--gray-400); }
.form-input:focus { background: var(--white-pure); border-color: var(--blue-ocean); box-shadow: 0 0 0 4px rgba(30,167,221,0.1); }
.form-input.error { border-color: var(--color-error); }
.form-textarea { min-height: 120px; resize: vertical; }
.form-select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236c757d' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.5rem; }
.form-error { margin-top: var(--space-1); font-size: var(--text-sm); color: var(--color-error); }

.section { margin-bottom: var(--space-8); }
.section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: var(--space-4); }
.section-title { font-size: var(--text-lg); font-weight: 600; display: flex; align-items: center; gap: var(--space-2); }
.section-link { font-size: var(--text-sm); color: var(--blue-ocean); display: flex; align-items: center; gap: var(--space-1); font-weight: 500; }

.scroll-horizontal { display: flex; gap: var(--space-3); overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; padding: var(--space-1); margin: 0 calc(var(--space-4) * -1); padding-left: var(--space-4); padding-right: var(--space-4); }
.scroll-horizontal::-webkit-scrollbar { display: none; }
.scroll-item-sm { flex-shrink: 0; width: 120px; scroll-snap-align: start; }
.scroll-item-md { flex-shrink: 0; width: 160px; scroll-snap-align: start; }
.scroll-item-lg { flex-shrink: 0; width: 200px; scroll-snap-align: start; }
.scroll-item-xl { flex-shrink: 0; width: 280px; scroll-snap-align: start; }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-4); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-3); }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-2 { gap: var(--space-2); }
.gap-3 { gap: var(--space-3); }
.gap-4 { gap: var(--space-4); }
.text-center { text-align: center; }
.text-white { color: var(--white-pure); }
.text-gray { color: var(--gray-500); }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.mb-2 { margin-bottom: var(--space-2); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.mt-4 { margin-top: var(--space-4); }
.py-4 { padding-top: var(--space-4); padding-bottom: var(--space-4); }
.px-4 { padding-left: var(--space-4); padding-right: var(--space-4); }
.p-4 { padding: var(--space-4); }
.bg-dark { background: var(--dark-deep); }
.bg-white { background: var(--white-pure); }

.hero-tropical { min-height: 100vh; background: linear-gradient(180deg, rgba(30,167,221,0.9) 0%, rgba(0,224,150,0.8) 50%, rgba(13,16,32,1) 100%); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: var(--space-8) var(--space-4); text-align: center; position: relative; overflow: hidden; }
.hero-content { position: relative; z-index: 2; }
.hero-title { font-size: var(--text-4xl); font-weight: 800; color: var(--white-pure); line-height: 1.1; margin-bottom: var(--space-4); }
.hero-title span { background: var(--gradient-sunset); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.hero-subtitle { font-size: var(--text-lg); color: rgba(255,255,255,0.9); margin-bottom: var(--space-8); line-height: 1.6; }
.hero-buttons { display: flex; flex-direction: column; gap: var(--space-3); }

.bottom-sheet-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 200; opacity: 0; visibility: hidden; transition: all var(--transition-base); }
.bottom-sheet-overlay.active { opacity: 1; visibility: visible; }
.bottom-sheet { position: fixed; bottom: 0; left: 50%; transform: translateX(-50%) translateY(100%); width: 100%; max-width: var(--mobile-max-width); max-height: 90vh; background: var(--white-pure); border-radius: var(--radius-xl) var(--radius-xl) 0 0; z-index: 201; transition: transform var(--transition-slow); overflow: hidden; }
.bottom-sheet.active { transform: translateX(-50%) translateY(0); }
.bottom-sheet-handle { width: 40px; height: 4px; background: var(--gray-300); border-radius: var(--radius-full); margin: var(--space-3) auto; }
.bottom-sheet-header { padding: var(--space-4); border-bottom: 1px solid var(--gray-100); display: flex; align-items: center; justify-content: space-between; }
.bottom-sheet-title { font-size: var(--text-lg); font-weight: 600; }
.bottom-sheet-body { padding: var(--space-4); overflow-y: auto; max-height: calc(90vh - 120px); }

.empty-state { text-align: center; padding: var(--space-12) var(--space-4); }
.empty-state-icon { font-size: 64px; color: var(--gray-300); margin-bottom: var(--space-4); }
.empty-state-title { font-size: var(--text-lg); font-weight: 600; margin-bottom: var(--space-2); }
.empty-state-text { color: var(--gray-500); margin-bottom: var(--space-6); }

.loading-spinner { width: 40px; height: 40px; border: 3px solid var(--gray-200); border-top-color: var(--blue-ocean); border-radius: 50%; animation: spin 0.8s linear infinite; }
.skeleton { background: linear-gradient(90deg, var(--gray-200) 25%, var(--gray-100) 50%, var(--gray-200) 75%); background-size: 200% 100%; animation: shimmer 1.5s infinite; border-radius: var(--radius-sm); }
.skeleton-text { height: 16px; margin-bottom: var(--space-2); }
.skeleton-avatar { width: 48px; height: 48px; border-radius: var(--radius-full); }

.animate-fade-in { animation: fadeIn 0.3s ease; }
.animate-slide-up { animation: slideUp 0.3s ease; }
.animate-slide-in-right { animation: slideInRight 0.3s ease; }
.animate-bounce-in { animation: bounceIn 0.5s ease; }
.animate-pulse { animation: pulse 2s infinite; }
.stagger-1 { animation-delay: 0.1s; }
.stagger-2 { animation-delay: 0.2s; }
.stagger-3 { animation-delay: 0.3s; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideInRight { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: translateX(0); } }
@keyframes bounceIn { 0% { opacity: 0; transform: scale(0.3); } 50% { transform: scale(1.05); } 100% { opacity: 1; transform: scale(1); } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes shimmer { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }
@keyframes pulse-live { 0%, 100% { box-shadow: 0 0 0 0 rgba(255,71,87,0.4); } 50% { box-shadow: 0 0 0 8px rgba(255,71,87,0); } }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }
@keyframes avatar-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(255,77,148,0.4); } 50% { box-shadow: 0 0 0 6px rgba(255,77,148,0); } }
@keyframes float-slow { 0%, 100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-20px) rotate(5deg); } }
