File size: 62,822 Bytes
d439ed3
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>SparkMeet - Interactive Dating Events</title>
    <script src="https://cdn.tailwindcss.com"></script>
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
    <style>
        @import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');
        
        :root {
            --primary: #ff6b6b;
            --primary-light: #ff8e8e;
        }
        
        body {
            font-family: 'Poppins', sans-serif;
            background-color: #fef6f6;
            overflow-x: hidden;
        }
        
        .gradient-bg {
            background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
        }
        
        .spark-animation {
            position: relative;
            overflow: hidden;
            transition: transform 0.3s ease;
        }
        
        .spark-animation:hover {
            transform: translateY(-5px);
        }
        
        .spark-animation::after {
            content: '';
            position: absolute;
            top: -50%;
            left: -50%;
            width: 200%;
            height: 200%;
            background: radial-gradient(circle, rgba(255,255,255,0.8) 0%, rgba(255,255,255,0) 70%);
            transform: scale(0);
            opacity: 0;
            transition: transform 0.5s, opacity 0.5s;
        }
        
        .spark-animation:hover::after {
            transform: scale(1);
            opacity: 1;
        }
        
        .countdown {
            font-family: 'Poppins', sans-serif;
            font-weight: 700;
        }
        
        .question-card {
            transform-style: preserve-3d;
            transition: all 0.5s ease;
        }
        
        .question-card.flipped {
            transform: rotateY(180deg);
        }
        
        .card-face {
            backface-visibility: hidden;
            position: absolute;
            width: 100%;
            height: 100%;
        }
        
        .card-back {
            transform: rotateY(180deg);
        }
        
        .match-reveal {
            animation: pulse 2s infinite;
        }
        
        @keyframes pulse {
            0% { transform: scale(1); }
            50% { transform: scale(1.05); }
            100% { transform: scale(1); }
        }
        
        /* Modal styles */
        .modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0,0,0,0.5);
            z-index: 1000;
            overflow-y: auto;
        }
        
        .modal-content {
            background: white;
            margin: 5% auto;
            width: 90%;
            max-width: 600px;
            border-radius: 20px;
            overflow: hidden;
            animation: modalFadeIn 0.3s ease-out;
        }
        
        @keyframes modalFadeIn {
            from { opacity: 0; transform: translateY(20px); }
            to { opacity: 1; transform: translateY(0); }
        }
        
        /* Event drawer */
        .event-drawer {
            position: fixed;
            bottom: -100%;
            left: 0;
            width: 100%;
            height: 85vh;
            background: white;
            border-radius: 20px 20px 0 0;
            box-shadow: 0 -5px 20px rgba(0,0,0,0.1);
            transition: transform 0.3s ease-out;
            z-index: 900;
            overflow-y: auto;
        }
        
        .event-drawer.open {
            transform: translateY(-100%);
        }
        
        .drawer-handle {
            width: 50px;
            height: 5px;
            background: #ddd;
            border-radius: 5px;
            margin: 15px auto;
            cursor: pointer;
        }
        
        /* Toast notification */
        .toast {
            position: fixed;
            bottom: 20px;
            left: 50%;
            transform: translateX(-50%);
            background: #333;
            color: white;
            padding: 12px 24px;
            border-radius: 30px;
            box-shadow: 0 4px 12px rgba(0,0,0,0.15);
            z-index: 1100;
            opacity: 0;
            transition: opacity 0.3s ease;
        }
        
        .toast.show {
            opacity: 1;
        }
        
        /* Confetti */
        .confetti {
            position: fixed;
            width: 10px;
            height: 10px;
            background-color: #f00;
            opacity: 0;
            z-index: 999;
            animation: confettiFall 3s ease-in-out;
        }
        
        @keyframes confettiFall {
            0% {
                transform: translateY(-100vh) rotate(0deg);
                opacity: 1;
            }
            100% {
                transform: translateY(100vh) rotate(360deg);
                opacity: 0;
            }
        }
        
        /* Progress steps */
        .progress-step {
            width: 30px;
            height: 30px;
            border-radius: 50%;
            background: #eee;
            display: flex;
            align-items: center;
            justify-content: center;
            color: #999;
            font-weight: bold;
            position: relative;
        }
        
        .progress-step.active {
            background: var(--primary);
            color: white;
        }
        
        .progress-step.completed {
            background: var(--primary-light);
            color: white;
        }
        
        .progress-step::after {
            content: '';
            position: absolute;
            top: 50%;
            left: 100%;
            width: 50px;
            height: 2px;
            background: #eee;
            z-index: -1;
        }
        
        .progress-step.completed::after {
            background: var(--primary-light);
        }
        
        .progress-step:last-child::after {
            display: none;
        }
        
        /* Badges */
        .badge {
            display: inline-flex;
            align-items: center;
            padding: 4px 8px;
            border-radius: 20px;
            font-size: 12px;
            font-weight: 600;
            margin-right: 8px;
            margin-bottom: 8px;
        }
        
        .badge i {
            margin-right: 4px;
        }
        
        /* Swipeable tabs */
        .tabs-container {
            overflow-x: auto;
            white-space: nowrap;
            scrollbar-width: none;
            -ms-overflow-style: none;
        }
        
        .tabs-container::-webkit-scrollbar {
            display: none;
        }
        
        .tab {
            display: inline-block;
            padding: 10px 20px;
            border-radius: 20px;
            margin-right: 8px;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.3s ease;
        }
        
        .tab.active {
            background: var(--primary);
            color: white;
        }
        
        /* Comment section */
        .comment {
            display: flex;
            margin-bottom: 16px;
            animation: commentFadeIn 0.3s ease;
        }
        
        @keyframes commentFadeIn {
            from { opacity: 0; transform: translateY(10px); }
            to { opacity: 1; transform: translateY(0); }
        }
        
        .comment-avatar {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background: #eee;
            margin-right: 12px;
            flex-shrink: 0;
        }
        
        /* Search with autocomplete */
        .search-container {
            position: relative;
        }
        
        .search-results {
            position: absolute;
            top: 100%;
            left: 0;
            width: 100%;
            background: white;
            border-radius: 0 0 10px 10px;
            box-shadow: 0 10px 20px rgba(0,0,0,0.1);
            z-index: 100;
            max-height: 300px;
            overflow-y: auto;
            display: none;
        }
        
        .search-item {
            padding: 12px 16px;
            cursor: pointer;
            transition: background 0.2s ease;
        }
        
        .search-item:hover {
            background: #f5f5f5;
        }
        
        /* Bottom sheet */
        .bottom-sheet {
            position: fixed;
            bottom: -100%;
            left: 0;
            width: 100%;
            background: white;
            border-radius: 20px 20px 0 0;
            box-shadow: 0 -5px 20px rgba(0,0,0,0.1);
            transition: transform 0.3s ease-out;
            z-index: 900;
            padding: 20px;
            max-height: 80vh;
            overflow-y: auto;
        }
        
        .bottom-sheet.open {
            transform: translateY(-100%);
        }
        
        /* Loading spinner */
        .spinner {
            width: 40px;
            height: 40px;
            border: 4px solid rgba(0,0,0,0.1);
            border-radius: 50%;
            border-top-color: var(--primary);
            animation: spin 1s ease-in-out infinite;
            margin: 20px auto;
        }
        
        @keyframes spin {
            to { transform: rotate(360deg); }
        }
    </style>
</head>
<body class="min-h-screen">
    <!-- Navigation -->
    <nav class="bg-white shadow-sm py-4 px-6 flex justify-between items-center sticky top-0 z-50">
        <div class="flex items-center">
            <i class="fas fa-fire text-2xl text-red-400 mr-2"></i>
            <span class="text-xl font-bold text-red-500">SparkMeet</span>
        </div>
        <div class="flex items-center space-x-4">
            <button class="text-gray-600 hover:text-red-500 relative" id="notifications-btn">
                <i class="fas fa-bell text-xl"></i>
                <span class="absolute -top-1 -right-1 bg-red-500 text-white text-xs rounded-full w-5 h-5 flex items-center justify-center">3</span>
            </button>
            <div class="w-8 h-8 rounded-full bg-red-300 flex items-center justify-center text-white font-bold cursor-pointer" id="profile-btn">
                <span>JS</span>
            </div>
        </div>
    </nav>

    <!-- Main Content -->
    <main class="container mx-auto px-4 py-8 pb-20">
        <!-- Search Bar -->
        <div class="search-container relative mb-8">
            <div class="relative">
                <input type="text" placeholder="Search events, interests, locations..." 
                    class="w-full bg-white rounded-full py-3 px-6 pr-12 shadow-sm focus:outline-none focus:ring-2 focus:ring-red-300"
                    id="search-input">
                <button class="absolute right-3 top-1/2 transform -translate-y-1/2 text-gray-400 hover:text-red-500">
                    <i class="fas fa-search"></i>
                </button>
            </div>
            <div class="search-results" id="search-results">
                <div class="search-item">
                    <div class="font-medium">Beach Yoga</div>
                    <div class="text-sm text-gray-500">Tomorrow, 8:00 AM • Santa Monica</div>
                </div>
                <div class="search-item">
                    <div class="font-medium">Hiking Club</div>
                    <div class="text-sm text-gray-500">This weekend • Runyon Canyon</div>
                </div>
                <div class="search-item">
                    <div class="font-medium">Vegan Cooking</div>
                    <div class="text-sm text-gray-500">Next Wednesday • Downtown</div>
                </div>
                <div class="search-item">
                    <div class="font-medium">Book Lovers Meetup</div>
                    <div class="text-sm text-gray-500">Monthly event • The Last Bookstore</div>
                </div>
            </div>
        </div>

        <!-- Tabs -->
        <div class="tabs-container mb-6">
            <div class="tab active" data-tab="all">All Events</div>
            <div class="tab" data-tab="today">Today</div>
            <div class="tab" data-tab="weekend">This Weekend</div>
            <div class="tab" data-tab="sports">Sports</div>
            <div class="tab" data-tab="food">Food & Drink</div>
            <div class="tab" data-tab="arts">Arts & Culture</div>
        </div>

        <!-- Hero Section -->
        <section class="gradient-bg rounded-3xl p-8 text-white mb-10 shadow-lg relative overflow-hidden">
            <div class="absolute top-0 right-0 w-32 h-32 bg-white opacity-10 rounded-full transform translate-x-16 -translate-y-16"></div>
            <div class="absolute bottom-0 left-0 w-40 h-40 bg-white opacity-10 rounded-full transform -translate-x-20 translate-y-20"></div>
            <div class="relative z-10 max-w-md">
                <h1 class="text-3xl font-bold mb-4">Find your spark at real-life events</h1>
                <p class="mb-6">No swiping. No games. Just meaningful connections through shared experiences.</p>
                <button class="bg-white text-red-500 font-bold py-3 px-6 rounded-full shadow-md hover:bg-gray-100 transition duration-300" id="create-event-btn">
                    Create an Event
                </button>
            </div>
        </section>

        <!-- Upcoming Events -->
        <section class="mb-10">
            <div class="flex justify-between items-center mb-6">
                <h2 class="text-2xl font-bold text-gray-800">Upcoming Events</h2>
                <button class="text-red-500 font-medium flex items-center">
                    See all
                    <i class="fas fa-chevron-right ml-1 text-sm"></i>
                </button>
            </div>
            <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6" id="events-container">
                <!-- Event Card 1 -->
                <div class="event-card bg-white rounded-xl shadow-md overflow-hidden hover:shadow-lg transition duration-300 spark-animation cursor-pointer" data-event-id="1">
                    <div class="h-40 bg-gradient-to-r from-blue-400 to-purple-500 flex items-center justify-center relative">
                        <i class="fas fa-running text-5xl text-white opacity-80"></i>
                        <div class="absolute top-3 left-3 flex">
                            <span class="badge bg-white text-blue-500">
                                <i class="fas fa-running"></i> Sports
                            </span>
                        </div>
                        <div class="absolute bottom-3 right-3 bg-black bg-opacity-50 text-white text-xs px-2 py-1 rounded-full">
                            <i class="fas fa-users mr-1"></i> 12/15
                        </div>
                    </div>
                    <div class="p-6">
                        <div class="flex justify-between items-start mb-2">
                            <h3 class="font-bold text-lg text-gray-800">Sunrise Run Club</h3>
                            <span class="bg-red-100 text-red-600 text-xs font-bold px-2 py-1 rounded-full">3 spots left</span>
                        </div>
                        <p class="text-gray-600 text-sm mb-4">Join fellow runners for a 5k along the beach at sunrise.</p>
                        <div class="flex justify-between items-center">
                            <div class="flex items-center text-gray-500 text-sm">
                                <i class="fas fa-calendar-alt mr-1"></i>
                                <span>Jun 15, 7:00 AM</span>
                            </div>
                            <button class="bg-red-500 text-white text-sm py-1 px-3 rounded-full hover:bg-red-600 transition duration-300 join-event-btn">
                                RSVP
                            </button>
                        </div>
                    </div>
                </div>

                <!-- Event Card 2 -->
                <div class="event-card bg-white rounded-xl shadow-md overflow-hidden hover:shadow-lg transition duration-300 spark-animation cursor-pointer" data-event-id="2">
                    <div class="h-40 bg-gradient-to-r from-green-400 to-blue-500 flex items-center justify-center relative">
                        <i class="fas fa-utensils text-5xl text-white opacity-80"></i>
                        <div class="absolute top-3 left-3 flex">
                            <span class="badge bg-white text-green-500">
                                <i class="fas fa-utensils"></i> Food
                            </span>
                        </div>
                        <div class="absolute bottom-3 right-3 bg-black bg-opacity-50 text-white text-xs px-2 py-1 rounded-full">
                            <i class="fas fa-users mr-1"></i> 8/12
                        </div>
                    </div>
                    <div class="p-6">
                        <div class="flex justify-between items-start mb-2">
                            <h3 class="font-bold text-lg text-gray-800">Vegan Cooking Class</h3>
                            <span class="bg-green-100 text-green-600 text-xs font-bold px-2 py-1 rounded-full">New</span>
                        </div>
                        <p class="text-gray-600 text-sm mb-4">Learn to cook delicious plant-based meals together.</p>
                        <div class="flex justify-between items-center">
                            <div class="flex items-center text-gray-500 text-sm">
                                <i class="fas fa-calendar-alt mr-1"></i>
                                <span>Jun 18, 6:30 PM</span>
                            </div>
                            <button class="bg-red-500 text-white text-sm py-1 px-3 rounded-full hover:bg-red-600 transition duration-300 join-event-btn">
                                RSVP
                            </button>
                        </div>
                    </div>
                </div>

                <!-- Event Card 3 -->
                <div class="event-card bg-white rounded-xl shadow-md overflow-hidden hover:shadow-lg transition duration-300 spark-animation cursor-pointer" data-event-id="3">
                    <div class="h-40 bg-gradient-to-r from-yellow-400 to-orange-500 flex items-center justify-center relative">
                        <i class="fas fa-book text-5xl text-white opacity-80"></i>
                        <div class="absolute top-3 left-3 flex">
                            <span class="badge bg-white text-yellow-500">
                                <i class="fas fa-book"></i> Arts
                            </span>
                        </div>
                        <div class="absolute bottom-3 right-3 bg-black bg-opacity-50 text-white text-xs px-2 py-1 rounded-full">
                            <i class="fas fa-users mr-1"></i> 15/25
                        </div>
                    </div>
                    <div class="p-6">
                        <div class="flex justify-between items-start mb-2">
                            <h3 class="font-bold text-lg text-gray-800">Book Lovers Meetup</h3>
                            <span class="bg-blue-100 text-blue-600 text-xs font-bold px-2 py-1 rounded-full">10 spots left</span>
                        </div>
                        <p class="text-gray-600 text-sm mb-4">Discuss this month's selected novel at the cozy downtown café.</p>
                        <div class="flex justify-between items-center">
                            <div class="flex items-center text-gray-500 text-sm">
                                <i class="fas fa-calendar-alt mr-1"></i>
                                <span>Jun 22, 4:00 PM</span>
                            </div>
                            <button class="bg-red-500 text-white text-sm py-1 px-3 rounded-full hover:bg-red-600 transition duration-300 join-event-btn">
                                RSVP
                            </button>
                        </div>
                    </div>
                </div>
            </div>
        </section>

        <!-- How It Works -->
        <section class="mb-10">
            <h2 class="text-2xl font-bold mb-6 text-gray-800">How SparkMeet Works</h2>
            <div class="grid grid-cols-1 md:grid-cols-3 gap-6">
                <!-- Step 1 -->
                <div class="bg-white p-6 rounded-xl shadow-md text-center hover:shadow-xl transition duration-300">
                    <div class="w-16 h-16 gradient-bg rounded-full flex items-center justify-center text-white text-2xl font-bold mx-auto mb-4">1</div>
                    <h3 class="font-bold text-lg mb-2 text-gray-800">Join an Event</h3>
                    <p class="text-gray-600">Select from our curated events based on your interests and availability.</p>
                </div>
                
                <!-- Step 2 -->
                <div class="bg-white p-6 rounded-xl shadow-md text-center hover:shadow-xl transition duration-300">
                    <div class="w-16 h-16 gradient-bg rounded-full flex items-center justify-center text-white text-2xl font-bold mx-auto mb-4">2</div>
                    <h3 class="font-bold text-lg mb-2 text-gray-800">Answer Questions</h3>
                    <p class="text-gray-600">Complete our thoughtful questionnaire to help us understand you better.</p>
                </div>
                
                <!-- Step 3 -->
                <div class="bg-white p-6 rounded-xl shadow-md text-center hover:shadow-xl transition duration-300">
                    <div class="w-16 h-16 gradient-bg rounded-full flex items-center justify-center text-white text-2xl font-bold mx-auto mb-4">3</div>
                    <h3 class="font-bold text-lg mb-2 text-gray-800">Get Matched</h3>
                    <p class="text-gray-600">After the event, receive your AI-powered matches and connect meaningfully.</p>
                </div>
            </div>
        </section>

        <!-- Question Preview (Interactive Demo) -->
        <section class="mb-10">
            <h2 class="text-2xl font-bold mb-6 text-gray-800">Sample Compatibility Questions</h2>
            <div class="bg-white rounded-xl shadow-md p-6 max-w-md mx-auto">
                <div class="question-card relative h-64 cursor-pointer" onclick="flipCard(this)">
                    <div class="card-face flex flex-col items-center justify-center p-6">
                        <i class="fas fa-question-circle text-5xl text-red-400 mb-4"></i>
                        <p class="text-center text-gray-700 mb-4">Click to reveal a sample question</p>
                        <button class="bg-red-500 text-white py-2 px-4 rounded-full text-sm">Tap to flip</button>
                    </div>
                    <div class="card-face card-back flex flex-col items-center justify-center p-6">
                        <h3 class="font-bold text-lg mb-4 text-center text-gray-800">What's your idea of a perfect Sunday?</h3>
                        <div class="w-full space-y-2">
                            <button class="w-full bg-gray-100 hover:bg-red-50 text-gray-800 py-2 px-4 rounded-full text-sm text-left transition duration-300">
                                Sleeping in and a lazy brunch
                            </button>
                            <button class="w-full bg-gray-100 hover:bg-red-50 text-gray-800 py-2 px-4 rounded-full text-sm text-left transition duration-300">
                                An early hike followed by exploring new places
                            </button>
                            <button class="w-full bg-gray-100 hover:bg-red-50 text-gray-800 py-2 px-4 rounded-full text-sm text-left transition duration-300">
                                Catching up on work or personal projects
                            </button>
                        </div>
                    </div>
                </div>
            </div>
        </section>

        <!-- Match Reveal Countdown (Demo) -->
        <section class="mb-10">
            <h2 class="text-2xl font-bold mb-6 text-gray-800">Match Reveal Experience</h2>
            <div class="bg-white rounded-xl shadow-md p-8 max-w-md mx-auto text-center">
                <div class="mb-6">
                    <i class="fas fa-heart text-5xl text-red-400 mb-4"></i>
                    <h3 class="font-bold text-xl mb-2 text-gray-800">Your matches are being calculated!</h3>
                    <p class="text-gray-600 mb-4">We're analyzing responses from the event to find your best connections.</p>
                </div>
                
                <div class="mb-6">
                    <p class="text-gray-500 mb-2">Matches will be revealed in:</p>
                    <div class="countdown text-3xl font-bold text-red-500 mb-4">00:15:32</div>
                    <div class="w-full bg-gray-200 rounded-full h-2.5">
                        <div class="bg-red-500 h-2.5 rounded-full" style="width: 65%"></div>
                    </div>
                </div>
                
                <button class="bg-red-500 text-white font-bold py-3 px-6 rounded-full shadow-md hover:bg-red-600 transition duration-300 match-reveal">
                    Reveal Matches Now
                </button>
            </div>
        </section>

        <!-- Badges Section -->
        <section class="mb-10">
            <h2 class="text-2xl font-bold mb-6 text-gray-800">Earn Badges</h2>
            <div class="bg-white rounded-xl shadow-md p-6">
                <p class="text-gray-600 mb-4">Complete challenges and earn badges to show off your SparkMeet journey!</p>
                <div class="flex flex-wrap">
                    <div class="badge bg-yellow-100 text-yellow-700">
                        <i class="fas fa-star"></i> First Event
                    </div>
                    <div class="badge bg-blue-100 text-blue-700">
                        <i class="fas fa-users"></i> Social Butterfly
                    </div>
                    <div class="badge bg-purple-100 text-purple-700">
                        <i class="fas fa-bolt"></i> Quick Responder
                    </div>
                    <div class="badge bg-green-100 text-green-700">
                        <i class="fas fa-heart"></i> Perfect Match
                    </div>
                    <div class="badge bg-red-100 text-red-700">
                        <i class="fas fa-fire"></i> Hot Streak
                    </div>
                </div>
                <div class="mt-4">
                    <div class="h-2 bg-gray-200 rounded-full overflow-hidden">
                        <div class="h-full bg-red-500 rounded-full" style="width: 45%"></div>
                    </div>
                    <p class="text-sm text-gray-500 mt-2">Complete 3 more events to earn your next badge!</p>
                </div>
            </div>
        </section>
    </main>

    <!-- Bottom Navigation -->
    <nav class="bg-white shadow-lg fixed bottom-0 w-full py-3 px-6 flex justify-around items-center z-50">
        <button class="text-gray-500 hover:text-red-500 flex flex-col items-center">
            <i class="fas fa-home text-xl mb-1"></i>
            <span class="text-xs">Home</span>
        </button>
        <button class="text-gray-500 hover:text-red-500 flex flex-col items-center">
            <i class="fas fa-calendar text-xl mb-1"></i>
            <span class="text-xs">Events</span>
        </button>
        <button class="text-red-500 flex flex-col items-center" id="floating-create-btn">
            <div class="gradient-bg w-12 h-12 rounded-full flex items-center justify-center text-white -mt-6 shadow-lg hover:shadow-xl transition duration-300">
                <i class="fas fa-plus text-xl"></i>
            </div>
            <span class="text-xs mt-1">Create</span>
        </button>
        <button class="text-gray-500 hover:text-red-500 flex flex-col items-center">
            <i class="fas fa-comments text-xl mb-1"></i>
            <span class="text-xs">Messages</span>
        </button>
        <button class="text-gray-500 hover:text-red-500 flex flex-col items-center">
            <i class="fas fa-user text-xl mb-1"></i>
            <span class="text-xs">Profile</span>
        </button>
    </nav>

    <!-- Event Drawer -->
    <div class="event-drawer" id="event-drawer">
        <div class="drawer-handle"></div>
        <div class="p-6">
            <div class="flex justify-between items-center mb-6">
                <h2 class="text-2xl font-bold" id="drawer-event-title">Event Title</h2>
                <button class="text-gray-400 hover:text-gray-600" id="close-drawer-btn">
                    <i class="fas fa-times"></i>
                </button>
            </div>
            
            <div class="h-48 bg-gradient-to-r from-blue-400 to-purple-500 rounded-xl mb-6 flex items-center justify-center relative">
                <i class="fas fa-running text-6xl text-white opacity-80" id="drawer-event-icon"></i>
                <div class="absolute top-3 left-3 flex">
                    <span class="badge bg-white text-blue-500" id="drawer-event-category">
                        <i class="fas fa-running"></i> Sports
                    </span>
                </div>
                <div class="absolute bottom-3 right-3 bg-black bg-opacity-50 text-white text-sm px-3 py-1 rounded-full">
                    <i class="fas fa-users mr-1"></i> <span id="drawer-event-attendees">12/15</span>
                </div>
            </div>
            
            <div class="flex items-center text-gray-500 text-sm mb-4">
                <i class="fas fa-calendar-alt mr-2"></i>
                <span id="drawer-event-date">Jun 15, 7:00 AM</span>
                <i class="fas fa-map-marker-alt ml-4 mr-2"></i>
                <span id="drawer-event-location">Santa Monica Beach</span>
            </div>
            
            <p class="text-gray-600 mb-6" id="drawer-event-description">
                Join fellow runners for a 5k along the beach at sunrise. All fitness levels welcome!
                We'll meet at the lifeguard tower #26 and run along the bike path. Coffee and snacks
                provided afterwards at a nearby café.
            </p>
            
            <div class="mb-6">
                <h3 class="font-bold text-lg mb-3 text-gray-800">Attendees</h3>
                <div class="flex flex-wrap">
                    <div class="w-10 h-10 rounded-full bg-red-300 flex items-center justify-center text-white font-bold mr-2 mb-2">JS</div>
                    <div class="w-10 h-10 rounded-full bg-blue-300 flex items-center justify-center text-white font-bold mr-2 mb-2">AM</div>
                    <div class="w-10 h-10 rounded-full bg-green-300 flex items-center justify-center text-white font-bold mr-2 mb-2">TK</div>
                    <div class="w-10 h-10 rounded-full bg-yellow-300 flex items-center justify-center text-white font-bold mr-2 mb-2">LP</div>
                    <div class="w-10 h-10 rounded-full bg-purple-300 flex items-center justify-center text-white font-bold mr-2 mb-2">+8</div>
                </div>
            </div>
            
            <div class="mb-6">
                <h3 class="font-bold text-lg mb-3 text-gray-800">Discussion</h3>
                <div class="bg-gray-50 rounded-lg p-4 max-h-40 overflow-y-auto">
                    <div class="comment">
                        <div class="comment-avatar bg-blue-200 flex items-center justify-center">AM</div>
                        <div>
                            <div class="font-medium text-sm">Alex M.</div>
                            <p class="text-gray-600 text-sm">Excited for this! What's the pace usually like?</p>
                        </div>
                    </div>
                    <div class="comment">
                        <div class="comment-avatar bg-red-200 flex items-center justify-center">JS</div>
                        <div>
                            <div class="font-medium text-sm">Jamie S.</div>
                            <p class="text-gray-600 text-sm">It's pretty relaxed, we usually have a few groups at different paces.</p>
                        </div>
                    </div>
                </div>
                <div class="flex mt-3">
                    <input type="text" placeholder="Add a comment..." class="flex-grow bg-white border border-gray-300 rounded-l-full py-2 px-4 focus:outline-none focus:ring-1 focus:ring-red-300">
                    <button class="bg-red-500 text-white px-4 rounded-r-full">
                        <i class="fas fa-paper-plane"></i>
                    </button>
                </div>
            </div>
            
            <button class="w-full gradient-bg text-white font-bold py-3 px-6 rounded-full shadow-md hover:shadow-lg transition duration-300" id="drawer-rsvp-btn">
                RSVP to Event
            </button>
        </div>
    </div>

    <!-- Create Event Modal -->
    <div class="modal" id="create-event-modal">
        <div class="modal-content">
            <div class="gradient-bg p-6 text-white">
                <div class="flex justify-between items-center">
                    <h2 class="text-xl font-bold">Create New Event</h2>
                    <button class="text-white hover:text-gray-200" id="close-modal-btn">
                        <i class="fas fa-times"></i>
                    </button>
                </div>
                
                <div class="flex justify-between mt-6 mb-4">
                    <div class="progress-step active">1</div>
                    <div class="progress-step">2</div>
                    <div class="progress-step">3</div>
                    <div class="progress-step">4</div>
                </div>
            </div>
            
            <div class="p-6">
                <div id="step-1" class="step-content">
                    <h3 class="font-bold text-lg mb-4 text-gray-800">Event Basics</h3>
                    <div class="mb-4">
                        <label class="block text-gray-700 text-sm font-medium mb-2" for="event-title">Event Title</label>
                        <input type="text" id="event-title" class="w-full bg-white border border-gray-300 rounded-lg py-2 px-4 focus:outline-none focus:ring-1 focus:ring-red-300" placeholder="e.g. Sunrise Beach Run">
                    </div>
                    <div class="mb-4">
                        <label class="block text-gray-700 text-sm font-medium mb-2" for="event-category">Category</label>
                        <select id="event-category" class="w-full bg-white border border-gray-300 rounded-lg py-2 px-4 focus:outline-none focus:ring-1 focus:ring-red-300">
                            <option value="">Select a category</option>
                            <option value="sports">Sports & Fitness</option>
                            <option value="food">Food & Drink</option>
                            <option value="arts">Arts & Culture</option>
                            <option value="outdoors">Outdoors</option>
                            <option value="learning">Learning</option>
                        </select>
                    </div>
                    <div class="mb-4">
                        <label class="block text-gray-700 text-sm font-medium mb-2" for="event-description">Description</label>
                        <textarea id="event-description" rows="3" class="w-full bg-white border border-gray-300 rounded-lg py-2 px-4 focus:outline-none focus:ring-1 focus:ring-red-300" placeholder="Tell people what your event is about..."></textarea>
                    </div>
                    <div class="flex justify-end">
                        <button class="gradient-bg text-white font-medium py-2 px-6 rounded-full shadow-md hover:shadow-lg transition duration-300 next-step-btn">
                            Next <i class="fas fa-arrow-right ml-1"></i>
                        </button>
                    </div>
                </div>
                
                <div id="step-2" class="step-content hidden">
                    <h3 class="font-bold text-lg mb-4 text-gray-800">Event Details</h3>
                    <div class="grid grid-cols-1 md:grid-cols-2 gap-4 mb-4">
                        <div>
                            <label class="block text-gray-700 text-sm font-medium mb-2" for="event-date">Date</label>
                            <input type="date" id="event-date" class="w-full bg-white border border-gray-300 rounded-lg py-2 px-4 focus:outline-none focus:ring-1 focus:ring-red-300">
                        </div>
                        <div>
                            <label class="block text-gray-700 text-sm font-medium mb-2" for="event-time">Time</label>
                            <input type="time" id="event-time" class="w-full bg-white border border-gray-300 rounded-lg py-2 px-4 focus:outline-none focus:ring-1 focus:ring-red-300">
                        </div>
                    </div>
                    <div class="mb-4">
                        <label class="block text-gray-700 text-sm font-medium mb-2" for="event-location">Location</label>
                        <input type="text" id="event-location" class="w-full bg-white border border-gray-300 rounded-lg py-2 px-4 focus:outline-none focus:ring-1 focus:ring-red-300" placeholder="Where will your event take place?">
                    </div>
                    <div class="mb-4">
                        <label class="block text-gray-700 text-sm font-medium mb-2" for="event-capacity">Max Attendees</label>
                        <input type="number" id="event-capacity" class="w-full bg-white border border-gray-300 rounded-lg py-2 px-4 focus:outline-none focus:ring-1 focus:ring-red-300" placeholder="15" min="2">
                    </div>
                    <div class="flex justify-between">
                        <button class="text-gray-600 font-medium py-2 px-6 rounded-full border border-gray-300 hover:bg-gray-50 transition duration-300 prev-step-btn">
                            <i class="fas fa-arrow-left mr-1"></i> Back
                        </button>
                        <button class="gradient-bg text-white font-medium py-2 px-6 rounded-full shadow-md hover:shadow-lg transition duration-300 next-step-btn">
                            Next <i class="fas fa-arrow-right ml-1"></i>
                        </button>
                    </div>
                </div>
                
                <div id="step-3" class="step-content hidden">
                    <h3 class="font-bold text-lg mb-4 text-gray-800">Compatibility Questions</h3>
                    <p class="text-gray-600 mb-4">Add questions to help match attendees based on shared values and interests.</p>
                    
                    <div class="bg-gray-50 rounded-lg p-4 mb-4">
                        <div class="mb-3">
                            <label class="block text-gray-700 text-sm font-medium mb-2" for="question-1">Question 1</label>
                            <input type="text" id="question-1" class="w-full bg-white border border-gray-300 rounded-lg py-2 px-4 focus:outline-none focus:ring-1 focus:ring-red-300" placeholder="What's your ideal weekend activity?">
                        </div>
                        <div class="grid grid-cols-1 md:grid-cols-2 gap-2 mb-2">
                            <input type="text" class="w-full bg-white border border-gray-300 rounded-lg py-2 px-4 focus:outline-none focus:ring-1 focus:ring-red-300" placeholder="Option 1">
                            <input type="text" class="w-full bg-white border border-gray-300 rounded-lg py-2 px-4 focus:outline-none focus:ring-1 focus:ring-red-300" placeholder="Option 2">
                        </div>
                        <div class="grid grid-cols-1 md:grid-cols-2 gap-2">
                            <input type="text" class="w-full bg-white border border-gray-300 rounded-lg py-2 px-4 focus:outline-none focus:ring-1 focus:ring-red-300" placeholder="Option 3">
                            <input type="text" class="w-full bg-white border border-gray-300 rounded-lg py-2 px-4 focus:outline-none focus:ring-1 focus:ring-red-300" placeholder="Option 4">
                        </div>
                    </div>
                    
                    <button class="text-red-500 font-medium py-2 px-4 rounded-full border border-red-300 hover:bg-red-50 transition duration-300 mb-4">
                        <i class="fas fa-plus mr-1"></i> Add Another Question
                    </button>
                    
                    <div class="flex justify-between">
                        <button class="text-gray-600 font-medium py-2 px-6 rounded-full border border-gray-300 hover:bg-gray-50 transition duration-300 prev-step-btn">
                            <i class="fas fa-arrow-left mr-1"></i> Back
                        </button>
                        <button class="gradient-bg text-white font-medium py-2 px-6 rounded-full shadow-md hover:shadow-lg transition duration-300 next-step-btn">
                            Next <i class="fas fa-arrow-right ml-1"></i>
                        </button>
                    </div>
                </div>
                
                <div id="step-4" class="step-content hidden">
                    <h3 class="font-bold text-lg mb-4 text-gray-800">Preview & Publish</h3>
                    <div class="bg-white rounded-xl shadow-md overflow-hidden mb-6">
                        <div class="h-32 bg-gradient-to-r from-blue-400 to-purple-500 flex items-center justify-center">
                            <i class="fas fa-image text-4xl text-white opacity-50"></i>
                        </div>
                        <div class="p-4">
                            <h4 class="font-bold text-lg mb-1" id="preview-event-title">Sunrise Beach Run</h4>
                            <div class="flex items-center text-gray-500 text-sm mb-2">
                                <i class="fas fa-calendar-alt mr-1"></i>
                                <span id="preview-event-date">Jun 15, 7:00 AM</span>
                                <i class="fas fa-map-marker-alt ml-3 mr-1"></i>
                                <span id="preview-event-location">Santa Monica Beach</span>
                            </div>
                            <p class="text-gray-600 text-sm" id="preview-event-description">Join fellow runners for a 5k along the beach at sunrise. All fitness levels welcome!</p>
                        </div>
                    </div>
                    
                    <div class="flex items-center mb-4">
                        <input type="checkbox" id="terms-check" class="mr-2">
                        <label for="terms-check" class="text-sm text-gray-600">I agree to the <a href="#" class="text-red-500 hover:underline">Terms of Service</a> and <a href="#" class="text-red-500 hover:underline">Community Guidelines</a></label>
                    </div>
                    
                    <div class="flex justify-between">
                        <button class="text-gray-600 font-medium py-2 px-6 rounded-full border border-gray-300 hover:bg-gray-50 transition duration-300 prev-step-btn">
                            <i class="fas fa-arrow-left mr-1"></i> Back
                        </button>
                        <button class="gradient-bg text-white font-medium py-2 px-6 rounded-full shadow-md hover:shadow-lg transition duration-300" id="publish-event-btn">
                            <i class="fas fa-check mr-1"></i> Publish Event
                        </button>
                    </div>
                </div>
            </div>
        </div>
    </div>

    <!-- Toast Notification -->
    <div class="toast" id="toast">
        <div class="flex items-center">
            <i class="fas fa-check-circle mr-2"></i>
            <span id="toast-message">Event created successfully!</span>
        </div>
    </div>

    <!-- Loading Overlay -->
    <div class="fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center z-1000 hidden" id="loading-overlay">
        <div class="bg-white p-8 rounded-xl text-center max-w-sm">
            <div class="spinner"></div>
            <h3 class="text-xl font-bold mt-4 mb-2" id="loading-title">Creating your event</h3>
            <p class="text-gray-600" id="loading-message">This may take a few seconds...</p>
        </div>
    </div>

    <script>
        // Flip card animation
        function flipCard(card) {
            card.classList.toggle('flipped');
        }

        // Countdown timer simulation
        function updateCountdown() {
            const countdownElement = document.querySelector('.countdown');
            let time = countdownElement.textContent;
            let [hours, minutes, seconds] = time.split(':').map(Number);
            
            if (seconds > 0) {
                seconds--;
            } else {
                if (minutes > 0) {
                    minutes--;
                    seconds = 59;
                } else {
                    if (hours > 0) {
                        hours--;
                        minutes = 59;
                        seconds = 59;
                    }
                }
            }
            
            // Format the time
            const formattedTime = 
                `${hours.toString().padStart(2, '0')}:${minutes.toString().padStart(2, '0')}:${seconds.toString().padStart(2, '0')}`;
            
            countdownElement.textContent = formattedTime;
            
            // Update progress bar
            const totalSeconds = hours * 3600 + minutes * 60 + seconds;
            const initialTotal = 15 * 60 + 32; // 15 minutes and 32 seconds
            const progressPercent = ((initialTotal - totalSeconds) / initialTotal) * 100;
            document.querySelector('.bg-red-500').style.width = `${progressPercent}%`;
            
            // Stop when time reaches 0
            if (hours === 0 && minutes === 0 && seconds === 0) {
                clearInterval(countdownInterval);
                document.querySelector('.match-reveal').textContent = 'View Your Matches';
            }
        }

        // Start the countdown
        const countdownInterval = setInterval(updateCountdown, 1000);

        // Match reveal button
        document.querySelector('.match-reveal').addEventListener('click', function() {
            createConfetti();
            showToast('✨ Your matches are ready! ✨');
            
            setTimeout(() => {
                alert('You have 3 great connections from the event:\n\n1. Alex (92% match)\n2. Jordan (88% match)\n3. Taylor (85% match)\n\nWould you like to start a group chat?');
            }, 1000);
        });

        // Event drawer functionality
        const eventDrawer = document.getElementById('event-drawer');
        const closeDrawerBtn = document.getElementById('close-drawer-btn');
        
        // Open drawer when event card is clicked
        document.querySelectorAll('.event-card').forEach(card => {
            card.addEventListener('click', function() {
                const eventId = this.getAttribute('data-event-id');
                loadEventDetails(eventId);
                eventDrawer.classList.add('open');
                document.body.style.overflow = 'hidden';
            });
        });
        
        // Close drawer
        closeDrawerBtn.addEventListener('click', function() {
            eventDrawer.classList.remove('open');
            document.body.style.overflow = 'auto';
        });
        
        // Drawer handle to close
        document.querySelector('.drawer-handle').addEventListener('click', function() {
            eventDrawer.classList.remove('open');
            document.body.style.overflow = 'auto';
        });
        
        // Load event details into drawer
        function loadEventDetails(eventId) {
            // In a real app, this would come from an API
            const events = {
                '1': {
                    title: 'Sunrise Run Club',
                    icon: 'fa-running',
                    category: 'Sports',
                    attendees: '12/15',
                    date: 'Jun 15, 7:00 AM',
                    location: 'Santa Monica Beach',
                    description: 'Join fellow runners for a 5k along the beach at sunrise. All fitness levels welcome! We\'ll meet at the lifeguard tower #26 and run along the bike path. Coffee and snacks provided afterwards at a nearby café.'
                },
                '2': {
                    title: 'Vegan Cooking Class',
                    icon: 'fa-utensils',
                    category: 'Food',
                    attendees: '8/12',
                    date: 'Jun 18, 6:30 PM',
                    location: 'Downtown Kitchen Studio',
                    description: 'Learn to cook delicious plant-based meals together with chef Maria Rodriguez. We\'ll be making a 3-course meal including appetizers, main course, and dessert. All ingredients provided, just bring your appetite!'
                },
                '3': {
                    title: 'Book Lovers Meetup',
                    icon: 'fa-book',
                    category: 'Arts',
                    attendees: '15/25',
                    date: 'Jun 22, 4:00 PM',
                    location: 'The Last Bookstore',
                    description: 'Discuss this month\'s selected novel "The Midnight Library" by Matt Haig at the cozy downtown café. Come prepared to share your thoughts and meet fellow book enthusiasts. First drink included with RSVP.'
                }
            };
            
            const event = events[eventId];
            
            document.getElementById('drawer-event-title').textContent = event.title;
            document.getElementById('drawer-event-icon').className = `fas ${event.icon} text-6xl text-white opacity-80`;
            document.getElementById('drawer-event-category').innerHTML = `<i class="fas ${event.icon}"></i> ${event.category}`;
            document.getElementById('drawer-event-attendees').textContent = event.attendees;
            document.getElementById('drawer-event-date').textContent = event.date;
            document.getElementById('drawer-event-location').textContent = event.location;
            document.getElementById('drawer-event-description').textContent = event.description;
            
            // Update RSVP button text based on availability
            const spotsLeft = parseInt(event.attendees.split('/')[1]) - parseInt(event.attendees.split('/')[0]);
            const rsvpBtn = document.getElementById('drawer-rsvp-btn');
            
            if (spotsLeft > 0) {
                rsvpBtn.textContent = `RSVP to Event (${spotsLeft} spots left)`;
                rsvpBtn.classList.remove('bg-gray-400');
                rsvpBtn.classList.add('gradient-bg');
            } else {
                rsvpBtn.textContent = 'Event Full';
                rsvpBtn.classList.remove('gradient-bg');
                rsvpBtn.classList.add('bg-gray-400');
            }
        }
        
        // RSVP to event from drawer
        document.getElementById('drawer-rsvp-btn').addEventListener('click', function() {
            if (!this.classList.contains('bg-gray-400')) {
                showToast('🎉 You\'ve RSVPed to this event!');
                setTimeout(() => {
                    eventDrawer.classList.remove('open');
                    document.body.style.overflow = 'auto';
                }, 1500);
            }
        });
        
        // RSVP to event from card
        document.querySelectorAll('.join-event-btn').forEach(btn => {
            btn.addEventListener('click', function(e) {
                e.stopPropagation(); // Prevent opening the drawer
                showToast('🎉 You\'ve RSVPed to this event!');
            });
        });
        
        // Create event modal
        const createEventModal = document.getElementById('create-event-modal');
        const closeModalBtn = document.getElementById('close-modal-btn');
        const createEventBtn = document.getElementById('create-event-btn');
        const floatingCreateBtn = document.getElementById('floating-create-btn');
        
        // Open modal
        createEventBtn.addEventListener('click', function() {
            createEventModal.style.display = 'block';
            document.body.style.overflow = 'hidden';
        });
        
        floatingCreateBtn.addEventListener('click', function() {
            createEventModal.style.display = 'block';
            document.body.style.overflow = 'hidden';
        });
        
        // Close modal
        closeModalBtn.addEventListener('click', function() {
            createEventModal.style.display = 'none';
            document.body.style.overflow = 'auto';
        });
        
        // Close modal when clicking outside
        window.addEventListener('click', function(e) {
            if (e.target === createEventModal) {
                createEventModal.style.display = 'none';
                document.body.style.overflow = 'auto';
            }
        });
        
        // Modal step navigation
        let currentStep = 1;
        const stepContents = document.querySelectorAll('.step-content');
        
        document.querySelectorAll('.next-step-btn').forEach(btn => {
            btn.addEventListener('click', function() {
                if (validateStep(currentStep)) {
                    stepContents[currentStep - 1].classList.add('hidden');
                    currentStep++;
                    stepContents[currentStep - 1].classList.remove('hidden');
                    updateProgressSteps();
                    updatePreview();
                }
            });
        });
        
        document.querySelectorAll('.prev-step-btn').forEach(btn => {
            btn.addEventListener('click', function() {
                stepContents[currentStep - 1].classList.add('hidden');
                currentStep--;
                stepContents[currentStep - 1].classList.remove('hidden');
                updateProgressSteps();
            });
        });
        
        function validateStep(step) {
            if (step === 1) {
                const title = document.getElementById('event-title').value;
                const category = document.getElementById('event-category').value;
                const description = document.getElementById('event-description').value;
                
                if (!title || !category || !description) {
                    showToast('Please fill in all fields');
                    return false;
                }
            } else if (step === 2) {
                const date = document.getElementById('event-date').value;
                const time = document.getElementById('event-time').value;
                const location = document.getElementById('event-location').value;
                const capacity = document.getElementById('event-capacity').value;
                
                if (!date || !time || !location || !capacity) {
                    showToast('Please fill in all fields');
                    return false;
                }
            }
            
            return true;
        }
        
        function updateProgressSteps() {
            const steps = document.querySelectorAll('.progress-step');
            
            steps.forEach((step, index) => {
                step.classList.remove('active', 'completed');
                
                if (index + 1 < currentStep) {
                    step.classList.add('completed');
                } else if (index + 1 === currentStep) {
                    step.classList.add('active');
                }
            });
        }
        
        function updatePreview() {
            if (currentStep === 4) {
                document.getElementById('preview-event-title').textContent = document.getElementById('event-title').value;
                
                const date = new Date(document.getElementById('event-date').value);
                const time = document.getElementById('event-time').value;
                const options = { month: 'short', day: 'numeric' };
                const formattedDate = date.toLocaleDateString('en-US', options) + ', ' + time;
                
                document.getElementById('preview-event-date').textContent = formattedDate;
                document.getElementById('preview-event-location').textContent = document.getElementById('event-location').value;
                document.getElementById('preview-event-description').textContent = document.getElementById('event-description').value;
            }
        }
        
        // Publish event
        document.getElementById('publish-event-btn').addEventListener('click', function() {
            if (!document.getElementById('terms-check').checked) {
                showToast('Please agree to the terms and conditions');
                return;
            }
            
            // Show loading overlay
            document.getElementById('loading-overlay').classList.remove('hidden');
            document.getElementById('loading-title').textContent = 'Creating your event';
            document.getElementById('loading-message').textContent = 'This may take a few seconds...';
            
            // Simulate API call
            setTimeout(() => {
                document.getElementById('loading-overlay').classList.add('hidden');
                createEventModal.style.display = 'none';
                document.body.style.overflow = 'auto';
                
                createConfetti();
                showToast('🎉 Event created successfully!');
                
                // Reset form
                currentStep = 1;
                stepContents.forEach((content, index) => {
                    content.classList.add('hidden');
                    if (index === 0) content.classList.remove('hidden');
                });
                updateProgressSteps();
                document.getElementById('event-title').value = '';
                document.getElementById('event-category').value = '';
                document.getElementById('event-description').value = '';
                document.getElementById('event-date').value = '';
                document.getElementById('event-time').value = '';
                document.getElementById('event-location').value = '';
                document.getElementById('event-capacity').value = '';
                document.getElementById('terms-check').checked = false;
            }, 2000);
        });
        
        // Toast notification
        function showToast(message) {
            const toast = document.getElementById('toast');
            document.getElementById('toast-message').textContent = message;
            
            toast.classList.add('show');
            
            setTimeout(() => {
                toast.classList.remove('show');
            }, 3000);
        }
        
        // Confetti effect
        function createConfetti() {
            const colors = ['#ff6b6b', '#ff8e8e', '#ffb3b3', '#ffd8d8', '#6b6bff', '#8e8eff'];
            
            for (let i = 0; i < 100; i++) {
                const confetti = document.createElement('div');
                confetti.className = 'confetti';
                confetti.style.backgroundColor = colors[Math.floor(Math.random() * colors.length)];
                confetti.style.left = Math.random() * 100 + 'vw';
                confetti.style.width = Math.random() * 10 + 5 + 'px';
                confetti.style.height = Math.random() * 10 + 5 + 'px';
                confetti.style.animationDuration = Math.random() * 3 + 2 + 's';
                document.body.appendChild(confetti);
                
                setTimeout(() => {
                    confetti.remove();
                }, 3000);
            }
        }
        
        // Search functionality
        const searchInput = document.getElementById('search-input');
        const searchResults = document.getElementById('search-results');
        
        searchInput.addEventListener('focus', function() {
            searchResults.style.display = 'block';
        });
        
        searchInput.addEventListener('blur', function() {
            setTimeout(() => {
                searchResults.style.display = 'none';
            }, 200);
        });
        
        searchInput.addEventListener('input', function() {
            // In a real app, this would call an API with debounce
            if (this.value.length > 0) {
                searchResults.style.display = 'block';
            } else {
                searchResults.style.display = 'none';
            }
        });
        
        // Tab switching
        document.querySelectorAll('.tab').forEach(tab => {
            tab.addEventListener('click', function() {
                document.querySelectorAll('.tab').forEach(t => t.classList.remove('active'));
                this.classList.add('active');
                
                // In a real app, this would filter events
                const tabName = this.getAttribute('data-tab');
                showToast(`Showing ${tabName.replace('-', ' ')} events`);
            });
        });
        
        // Profile button
        document.getElementById('profile-btn').addEventListener('click', function() {
            showToast('Profile page coming soon!');
        });
        
        // Notifications button
        document.getElementById('notifications-btn').addEventListener('click', function() {
            showToast('You have 3 new notifications');
        });
    </script>
<p style="border-radius: 8px; text-align: center; font-size: 12px; color: #fff; margin-top: 16px;position: fixed; left: 8px; bottom: 8px; z-index: 10; background: rgba(0, 0, 0, 0.8); padding: 4px 8px;">Made with <img src="https://enzostvs-deepsite.hf.space/logo.svg" alt="DeepSite Logo" style="width: 16px; height: 16px; vertical-align: middle;display:inline-block;margin-right:3px;filter:brightness(0) invert(1);"><a href="https://enzostvs-deepsite.hf.space" style="color: #fff;text-decoration: underline;" target="_blank" >DeepSite</a> - 🧬 <a href="https://enzostvs-deepsite.hf.space?remix=SameerArz/sparkmeet" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
</html>