/* ========================================
   Pro Clinic - Premium Mobile-First Styles
   ======================================== */

/* CSS Variables */
:root {
    --primary: #FFD700;
    --primary-dark: #D4AF37;
    --primary-light: #FFF8DC;
    --accent: #B8860B;
    --accent-light: #FFE4B5;
    --bg-dark: #000000;
    --bg-card: #0d0d0d;
    --bg-card-hover: #171717;
    --surface: #0a0a0a;
    --text-primary: #FFFFFF;
    --text-secondary: #CCCCCC;
    --text-muted: #888888;
    --gradient-main: linear-gradient(135deg, #FFD700 0%, #D4AF37 100%);
    --gradient-header: radial-gradient(circle at top center, #111111 0%, #000000 100%);
    --gradient-card: linear-gradient(145deg, rgba(20,20,20,0.9) 0%, rgba(5,5,5,0.95) 100%);
    --shadow-card: 0 10px 40px -10px rgba(0,0,0,0.8);
    --shadow-glow: 0 0 30px rgba(255, 215, 0, 0.4);
    --radius: 16px;
    --radius-sm: 10px;
    --transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    --font: 'Cairo', sans-serif;
}

/* Reset */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font);
    background: #000000;
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

#app {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    min-height: 100vh;
    background: var(--bg-dark);
}

/* ========================================
   Header
   ======================================== */
.header {
    position: relative;
    background: var(--gradient-header);
    padding: 40px 20px 60px;
    overflow: hidden;
}

.header-bg-pattern {
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(255, 215, 0,0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(212, 175, 55,0.08) 0%, transparent 50%);
}

.header-content {
    position: relative;
    z-index: 2;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 14px;
}

.logo-icon {
    width: 56px;
    height: 56px;
    flex-shrink: 0;
    animation: logoPulse 3s ease-in-out infinite;
}

@keyframes logoPulse {
    0%, 100% { transform: scale(1); filter: drop-shadow(0 0 8px rgba(255, 215, 0,0.3)); }
    50% { transform: scale(1.05); filter: drop-shadow(0 0 16px rgba(255, 215, 0,0.5)); }
}

.logo-text h1 {
    font-size: 28px;
    font-weight: 800;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
}

.tagline {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 2px;
    font-weight: 600;
}

/* Floating Circles */
.header-decoration {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.floating-circle {
    position: absolute;
    border-radius: 50%;
    opacity: 0.06;
}

.c1 {
    width: 120px;
    height: 120px;
    background: var(--primary);
    top: -20px;
    left: -30px;
    animation: float1 6s ease-in-out infinite;
}

.c2 {
    width: 80px;
    height: 80px;
    background: var(--accent);
    bottom: 20px;
    right: -20px;
    animation: float2 8s ease-in-out infinite;
}

.c3 {
    width: 50px;
    height: 50px;
    background: var(--primary-light);
    top: 50%;
    left: 60%;
    animation: float3 7s ease-in-out infinite;
}

@keyframes float1 {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(15px, 20px); }
}
@keyframes float2 {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-10px, -15px); }
}
@keyframes float3 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-20px, 10px) scale(1.2); }
}

/* Header Wave */
.header-wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    line-height: 0;
}

.header-wave svg {
    width: 100%;
    height: 40px;
}

/* ========================================
   Promo Banner
   ======================================== */
.promo-banner {
    margin: 20px 16px 0;
    padding: 14px 18px;
    background: linear-gradient(135deg, rgba(255,107,53,0.15) 0%, rgba(255,53,53,0.1) 100%);
    border: 1px solid rgba(255,107,53,0.25);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    gap: 10px;
    animation: bannerGlow 2s ease-in-out infinite alternate;
}

@keyframes bannerGlow {
    0% { box-shadow: 0 0 10px rgba(255,107,53,0.05); }
    100% { box-shadow: 0 0 20px rgba(255,107,53,0.12); }
}

.promo-icon {
    font-size: 22px;
    animation: fireAnim 1s ease-in-out infinite alternate;
}

@keyframes fireAnim {
    0% { transform: scale(1) rotate(-5deg); }
    100% { transform: scale(1.15) rotate(5deg); }
}

.promo-banner p {
    font-size: 13px;
    font-weight: 600;
    color: #ffb088;
    line-height: 1.5;
}

.promo-banner .highlight {
    color: #ff6b35;
    font-weight: 800;
    font-size: 15px;
}

/* ========================================
   Services Section
   ======================================== */
.services-section {
    padding: 24px 16px 30px;
}

.section-title {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -6px;
    right: 0;
    width: 40px;
    height: 3px;
    background: var(--gradient-main);
    border-radius: 2px;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

/* Service Card */
.service-card {
    position: relative;
    background: var(--gradient-card);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: var(--radius);
    padding: 20px 14px 16px;
    cursor: pointer;
    transition: var(--transition);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-height: 210px;
    opacity: 0;
    transform: translateY(50px) scale(0.9);
    animation: cardAppear 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: var(--shadow-card);
}

.service-card:nth-child(1) { animation-delay: 0.1s; }
.service-card:nth-child(2) { animation-delay: 0.2s; }
.service-card:nth-child(3) { animation-delay: 0.3s; }
.service-card:nth-child(4) { animation-delay: 0.4s; }
.service-card:nth-child(5) { animation-delay: 0.5s; }
.service-card:nth-child(6) { animation-delay: 0.6s; }

@keyframes cardAppear {
    0% { opacity: 0; transform: translateY(50px) scale(0.9); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-main);
    opacity: 0;
    transition: opacity 0.3s;
}

.service-card:active {
    transform: scale(0.97);
}

.service-card:active::before,
.service-card:hover::before {
    opacity: 1;
}

.service-card:hover {
    border-color: rgba(255, 215, 0,0.2);
    box-shadow: var(--shadow-glow);
    transform: translateY(-2px);
}

/* Card Glow Effect */
.card-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(255, 215, 0,0.04) 0%, transparent 70%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s;
}

.service-card:hover .card-glow {
    opacity: 1;
}

/* Service Icon */
.service-icon {
    font-size: 36px;
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
}

/* Service Name */
.service-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
    line-height: 1.4;
    position: relative;
    z-index: 1;
}

/* Price Container */
.price-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    margin-top: auto;
    position: relative;
    z-index: 1;
}

.old-price {
    font-size: 12px;
    color: var(--text-muted);
    text-decoration: line-through;
    font-weight: 600;
}

.current-price {
    font-size: 18px;
    font-weight: 800;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.price-unit {
    font-size: 11px;
    color: var(--text-secondary);
    font-weight: 600;
}

/* Discount Badge */
.discount-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: linear-gradient(135deg, #ff6b35, #ff3838);
    color: white;
    font-size: 10px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 20px;
    z-index: 2;
    animation: badgePop 0.5s ease-out;
}

@keyframes badgePop {
    0% { transform: scale(0); }
    60% { transform: scale(1.15); }
    100% { transform: scale(1); }
}

/* Coming Soon Card */
.service-card.coming-soon {
    opacity: 0;
    animation: cardAppear 0.5s ease-out forwards;
}

.service-card.coming-soon .service-icon {
    opacity: 0.5;
}

.coming-soon-badge {
    background: linear-gradient(135deg, rgba(184, 134, 11,0.3), rgba(184, 134, 11,0.1));
    border: 1px solid rgba(184, 134, 11,0.4);
    color: var(--accent-light);
    font-size: 12px;
    font-weight: 700;
    padding: 6px 16px;
    border-radius: 20px;
    margin-top: auto;
}

/* ========================================
   WhatsApp Floating Button
   ======================================== */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    width: 56px;
    height: 56px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37,211,102,0.4);
    transition: var(--transition);
    animation: whatsappBounce 2s ease-in-out infinite;
    text-decoration: none;
}

@keyframes whatsappBounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-6px); }
}

.whatsapp-float:active {
    transform: translateX(-50%) scale(0.92);
}

/* ========================================
   Footer
   ======================================== */
.footer {
    background: linear-gradient(180deg, var(--bg-dark) 0%, #06061a 100%);
    padding: 30px 20px 100px;
    text-align: center;
}

.footer-logo {
    font-size: 20px;
    font-weight: 800;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
}

.footer-desc {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.6;
    max-width: 260px;
    margin: 0 auto;
}

.footer-divider {
    width: 40px;
    height: 2px;
    background: var(--gradient-main);
    margin: 16px auto;
    border-radius: 1px;
    opacity: 0.5;
}

.footer-copy {
    font-size: 11px;
    color: var(--text-muted);
    opacity: 0.6;
}

/* ========================================
   Detail Page
   ======================================== */
.detail-page {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    min-height: 100vh;
    background: var(--bg-dark);
    z-index: 50;
    animation: slideIn 0.35s ease-out;
}

.detail-page.hidden {
    display: none;
}

@keyframes slideIn {
    from { transform: translateX(-100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

.detail-page.slide-out {
    animation: slideOut 0.3s ease-in forwards;
}

@keyframes slideOut {
    from { transform: translateX(0); opacity: 1; }
    to { transform: translateX(-100%); opacity: 0; }
}

/* Detail Header */
.detail-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: var(--gradient-header);
    position: sticky;
    top: 0;
    z-index: 51;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.back-btn {
    background: rgba(255,255,255,0.1);
    border: none;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.back-btn:active {
    background: rgba(255,255,255,0.2);
    transform: scale(0.92);
}

.detail-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
}

/* Detail Hero */
.detail-hero {
    background: var(--gradient-header);
    padding: 40px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.detail-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 80%, rgba(255, 215, 0,0.08) 0%, transparent 60%);
}

.detail-icon-large {
    font-size: 72px;
    position: relative;
    z-index: 1;
    animation: iconFloat 3s ease-in-out infinite;
    filter: drop-shadow(0 8px 20px rgba(0,0,0,0.4));
}

.detail-icon-large svg {
    width: 72px;
    height: 72px;
}

@keyframes iconFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Detail Body */
.detail-body {
    padding: 20px 16px 40px;
}

/* Price Card */
.detail-price-card {
    background: var(--gradient-card);
    border: 1px solid rgba(255, 215, 0,0.15);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.detail-price-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-main);
}

.detail-old-price {
    font-size: 16px;
    color: var(--text-muted);
    text-decoration: line-through;
    font-weight: 600;
    margin-bottom: 4px;
}

.detail-current-price {
    font-size: 36px;
    font-weight: 900;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.detail-price-unit {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 600;
}

.detail-save {
    display: inline-block;
    margin-top: 10px;
    background: linear-gradient(135deg, rgba(255,107,53,0.15), rgba(255,53,53,0.1));
    border: 1px solid rgba(255,107,53,0.2);
    color: #ff8a5c;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 14px;
    border-radius: 20px;
}

/* Detail Description */
.detail-description {
    background: var(--gradient-card);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 20px;
}

.detail-description h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.detail-description p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* Detail Features */
.detail-features {
    background: var(--gradient-card);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 24px;
}

.detail-features h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 14px;
    color: var(--text-primary);
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,0.04);
}

.feature-item:last-child {
    border-bottom: none;
}

.feature-check {
    width: 22px;
    height: 22px;
    background: linear-gradient(135deg, rgba(255, 215, 0,0.2), rgba(255, 215, 0,0.1));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.feature-check svg {
    width: 12px;
    height: 12px;
}

.feature-text {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 600;
    line-height: 1.5;
}

/* Order Button */
.detail-order-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 16px;
    background: #25D366;
    color: white;
    font-family: var(--font);
    font-size: 16px;
    font-weight: 700;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(37,211,102,0.3);
}

.detail-order-btn:active {
    transform: scale(0.97);
    box-shadow: 0 2px 10px rgba(37,211,102,0.3);
}

/* ========================================
   Utility
   ======================================== */
.hidden {
    display: none !important;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 4px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.1);
    border-radius: 2px;
}

/* ========================================
   Responsive - Larger Phones
   ======================================== */
@media (min-width: 400px) {
    .service-card {
        padding: 22px 16px 18px;
    }
    .service-name {
        font-size: 15px;
    }
    .current-price {
        font-size: 20px;
    }
}

/* Desktop and Tablet Responsive Enhancements */
@media (min-width: 768px) {
    .header {
        padding: 60px 40px 80px;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .logo-container {
        justify-content: center;
        margin-bottom: 10px;
        transform: scale(1.1);
    }
    .promo-banner {
        margin: 30px auto 10px;
        max-width: 600px;
        justify-content: center;
        text-align: center;
    }
    .services-section {
        padding: 40px 40px 60px;
        text-align: center;
    }
    .services-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 20px;
    }
    .section-title {
        font-size: 28px;
        margin-bottom: 40px;
    }
    .detail-body {
        max-width: 800px;
        margin: 0 auto;
        padding-top: 40px;
    }
}
