/* ============================================
   ALL SEA DIVE CLUB - CLEAN PROFESSIONAL UI
   Reusable Component Classes
   ============================================ */

/* Base font family for all components */
body, html {
    font-family: 'Poppins', sans-serif;
}


/* ----------------------------------------
   CARD COMPONENTS
   ---------------------------------------- */

/* Light Card - For light backgrounds */
.card-ui {
    background-color: #ffffff;
    border-radius: 1rem; /* rounded-xl */
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); /* shadow-lg */
    padding: 2rem; /* p-8 */
    border: 1px solid #e2e8f0; /* border-slate-200 */
    transition: all 0.3s ease;
}

.card-ui:hover {
    transform: translateY(-0.5rem); /* hover:-translate-y-2 */
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04); /* hover:shadow-xl */
}

/* Dark Card - For dark backgrounds (slate-900 sections) */
.card-ui-dark {
    background-color: #7ba2e0; /* bg-slate-800 */
    border-radius: 1rem; /* rounded-xl */
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -2px rgba(0, 0, 0, 0.2);
    padding: 1.5rem; /* p-6 */
    border: 1px solid #334155; /* border-slate-700 */
    transition: all 0.3s ease;
}

.card-ui-dark:hover {
    transform: translateY(-0.5rem);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.4), 0 10px 10px -5px rgba(0, 0, 0, 0.3);
}

/* Feature Card - Larger padding for feature sections */
.card-feature {
    background-color: #ffffff;
    border-radius: 1.5rem; /* rounded-3xl */
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15); /* shadow-2xl */
    padding: 3rem; /* p-12 on desktop, p-8 on mobile */
    border: 1px solid #e2e8f0;
}

@media (max-width: 768px) {
    .card-feature {
        padding: 2rem; /* p-8 on mobile */
    }
}

/* Dark Feature Card */
.card-feature-dark {
    background-color: #1e293b;
    border-radius: 1.5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    padding: 3rem;
    border: 1px solid #334155;
}

@media (max-width: 768px) {
    .card-feature-dark {
        padding: 2rem;
    }
}

/* ----------------------------------------
   SECTION LAYOUTS
   ---------------------------------------- */

/* Standard Section - Light background */
.section-ui {
    padding-top: 6rem; /* py-24 */
    padding-bottom: 6rem;
    background-color: #f8fafc; /* bg-slate-50 */
}

/* Dark Section */
.section-ui-dark {
    padding-top: 6rem;
    padding-bottom: 6rem;
    background-color: #0f172a; /* bg-slate-900 */
}

/* Container */
.container-ui {
    width: 100%;
    max-width: 80rem; /* max-w-7xl */
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem; /* px-4 */
    padding-right: 1rem;
}

/* ----------------------------------------
   FORM COMPONENTS
   ---------------------------------------- */

/* Form Container */
.form-ui {
    background-color: #1e293b; /* bg-slate-800 */
    border-radius: 1rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    padding: 2rem;
    border: 1px solid #334155;
}

/* Form Input */
.input-ui {
    width: 100%;
    background-color: #0f172a; /* bg-slate-900 */
    border: 1px solid #475569; /* border-slate-600 */
    border-radius: 0.75rem; /* rounded-xl */
    padding: 0.75rem 1rem; /* p-3 */
    color: #ffffff;
    transition: all 0.3s ease;
}

.input-ui::placeholder {
    color: #64748b; /* placeholder-slate-500 */
}

.input-ui:focus {
    outline: none;
    border-color: #60a5fa; /* focus:border-blue-400 */
    background-color: #1e293b; /* focus:bg-slate-800 */
}

/* Input Error State */
.input-ui-error {
    border-color: #f87171; /* border-red-400 */
}

/* ----------------------------------------
   BUTTONS
   ---------------------------------------- */

/* Primary Button */
.btn-primary {
    display: inline-block;
    background: linear-gradient(to right, #2563eb, #0891b2); /* from-blue-600 to-cyan-600 */
    color: #ffffff;
    font-weight: 700;
    padding: 1rem 2rem; /* py-4 px-8 */
    border-radius: 0.75rem;
    box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.3);
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(to right, #3b82f6, #06b6d4); /* hover:from-blue-500 hover:to-cyan-500 */
    box-shadow: 0 20px 25px -5px rgba(37, 99, 235, 0.4);
    transform: translateY(-2px);
}

/* Secondary Button (Outline) */
.btn-secondary {
    display: inline-block;
    background-color: transparent;
    color: #ffffff;
    font-weight: 700;
    padding: 1rem 2rem;
    border-radius: 0.75rem;
    border: 2px solid #ffffff;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: scale(1.05);
}

/* ----------------------------------------
   ALERTS & MESSAGES
   ---------------------------------------- */

/* Error Alert */
.alert-error {
    background-color: rgba(239, 68, 68, 0.1); /* bg-red-500/10 */
    border: 1px solid rgba(248, 113, 113, 0.5); /* border-red-400/50 */
    color: #fca5a5; /* text-red-300 */
    padding: 1rem;
    border-radius: 0.75rem;
    text-align: center;
    font-weight: 600;
}

/* Success Alert */
.alert-success {
    background-color: rgba(34, 197, 94, 0.1); /* bg-green-500/10 */
    border: 1px solid rgba(74, 222, 128, 0.5); /* border-green-400/50 */
    color: #86efac; /* text-green-300 */
    padding: 1rem;
    border-radius: 0.75rem;
    text-align: center;
    font-weight: 600;
}

/* ----------------------------------------
   NAVIGATION
   ---------------------------------------- */

/* Clean Navigation */
.nav-ui {
    width: 100%;
    background-color: #0f172a; /* bg-slate-900 */
    border-bottom: 1px solid #1e293b; /* border-slate-800 */
    height: 5rem; /* h-20 */
}

/* ----------------------------------------
   TYPOGRAPHY HELPERS
   ---------------------------------------- */

/* Section Title */
.title-section {
    font-size: 2.25rem; /* text-4xl */
    font-weight: 700;
    color: #0f172a; /* text-slate-900 */
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    .title-section {
        font-size: 3rem; /* md:text-5xl */
    }
}

.title-section-dark {
    font-size: 2.25rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    .title-section-dark {
        font-size: 3rem;
    }
}

/* Section Subtitle */
.subtitle-section {
    font-size: 1.125rem; /* text-lg */
    color: #475569; /* text-slate-600 */
}

.subtitle-section-dark {
    font-size: 1.125rem;
    color: #94a3b8; /* text-slate-400 */
}

/* Form Section Title */
.title-form-section {
    font-size: 1.25rem; /* text-xl */
    font-weight: 700;
    color: #93c5fd; /* text-blue-300 */
    border-bottom: 1px solid #334155;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

/* ----------------------------------------
   UTILITY CLASSES
   ---------------------------------------- */

/* Text Gradient (kept for branding) */
.text-gradient {
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    background-image: linear-gradient(to right, #22d3ee, #60a5fa, #2563eb);
}

/* Logo Container */
.logo-container {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 6rem; /* w-24 */
    height: 6rem;
    border-radius: 9999px; /* rounded-full */
    background: linear-gradient(to bottom right, rgba(34, 211, 238, 0.2), rgba(37, 99, 235, 0.2));
    border: 2px solid rgba(34, 211, 238, 0.5);
    box-shadow: 0 10px 15px -3px rgba(6, 182, 212, 0.3);
    padding: 0.5rem;
}

/* Decorative dots */
.dots-decoration {
    display: flex;
    justify-content: center;
    gap: 0.25rem;
    margin-top: 1.5rem;
}

.dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 9999px;
    background-color: rgba(34, 211, 238, 0.6);
    animation: bounce 1s infinite;
}

.dot:nth-child(2) {
    animation-delay: 0.1s;
    background-color: rgba(96, 165, 250, 0.6);
}

.dot:nth-child(3) {
    animation-delay: 0.2s;
    background-color: rgba(34, 211, 238, 0.6);
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-25%); }
}

/* ----------------------------------------
   BACK TO TOP BUTTON
   ---------------------------------------- */

/* Smooth scrolling for the whole page */
html {
    scroll-behavior: smooth;
}

/* Back to Top Button - Centered at top of footer */
.go-top {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    margin: 0 auto -30px auto;
    background: #ff7a00;
    border-radius: 50%;
    color: #ffffff;
    font-size: 28px;
    line-height: 1;
    text-decoration: none;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 100;
    animation: float 3s ease-in-out infinite;
}

/* White upward arrow */
.go-top::before {
    content: "↑";
    display: block;
    color: #ffffff;
    font-size: 28px;
    font-weight: bold;
    line-height: 1;
    transform: translateY(-2px);
}

/* Hover effects - lighter orange and lift */
.go-top:hover {
    background: #ff8c1a;
    transform: translateY(-6px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

/* Floating animation with slight bounce */
@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

/* Pause animation on hover for better interaction */
.go-top:hover {
    animation-play-state: paused;
}

/* ----------------------------------------
   TESTIMONIALS SECTION
   ---------------------------------------- */

/* Testimonials Section - Cyan Background */
.testimonials {
    background-color: #27EEF5 !important;
}

/* Testimonials Section Text Colors - Dark text for visibility on cyan background */
.testimonials h2,
.testimonials h4,
.testimonials p,
.testimonials span {
    color: #0f172a !important;
}

/* ----------------------------------------
   OCEANIC FLOW TESTIMONIAL CARDS
   ---------------------------------------- */

/* Oceanic Card - White with blue accents */
.testimonial-card-oceanic {
    background-color: #ffffff;
    border-radius: 1.5rem; /* rounded-3xl */
    border-bottom: 4px solid #60a5fa; /* border-b-4 border-blue-400 */
    box-shadow: 0 10px 15px -3px rgba(59, 130, 246, 0.05); /* shadow-lg shadow-blue-500/5 */
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.testimonial-card-oceanic:hover {
    transform: translateY(-0.5rem);
    box-shadow: 0 20px 25px -5px rgba(59, 130, 246, 0.1);
}

/* Wave Watermark - Abstract wave in top-right corner */
.wave-watermark {
    position: absolute;
    top: 0;
    right: 0;
    width: 120px;
    height: 120px;
    opacity: 0.05;
    pointer-events: none;
    z-index: 0;
}

/* Bubble Rating Container */
.bubble-rating {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin-top: 0.5rem;
}

/* Individual bubble */
.bubble-rating svg {
    width: 16px;
    height: 16px;
}

/* Testimonial Content Positioning */
.testimonial-content {
    position: relative;
    z-index: 1;
}

/* Testimonial Review Text */
.testimonial-review {
    font-family: 'Inter', sans-serif;
    font-style: italic;
    color: #475569; /* slate-600 */
    line-height: 1.6;
    flex-grow: 1;
}
