/* ==========================================================================
   Kuwait Society of Dermatologists - Stylesheet (Minimalist Light Theme)
   Theme: Luxury Alabaster, Soft Sky Blue & Skin-Tone Accents
   ========================================================================== */

/* Cascade Layers Definition */
@layer reset, base, theme, layout, components, utilities;

@layer reset {
  *, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
  }

  html {
    font-size: 16px;
    height: 100%;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
  }

  body {
    min-height: 100%;
    text-rendering: optimizeSpeed;
    line-height: 1.6;
    overflow-x: hidden;
  }

  img, picture, svg {
    display: block;
    max-width: 100%;
    height: auto;
  }

  a {
    color: inherit;
    text-decoration: none;
  }
}

@layer base {
  :root {
    /* Color Palette - Light & Airy */
    --color-bg-light-1: #FAF9F6;  /* Alabaster */
    --color-bg-light-2: #F0F4F8;  /* Soft Ice Blue */
    --color-glass-bg: rgba(255, 255, 255, 0.65);
    --color-glass-border: rgba(255, 255, 255, 0.7);
    
    --color-primary: #3A86C8;      /* Slate Sky Blue */
    --color-primary-glow: rgba(58, 134, 200, 0.08);
    --color-accent-skin: #F5E3D7;  /* Soft Warm Peach */
    
    /* Follicle & Flag Colors */
    --color-accent-green: #00C49F;
    --color-accent-red: #FF5E7E;
    --color-accent-black: #1E293B;
    
    --color-text-dark: #0F172A;    /* Slate 900 */
    --color-text-medium: #334155;  /* Slate 700 */
    --color-text-muted: #64748B;   /* Slate 500 */

    /* Fonts */
    --font-heading-en: 'Google Sans', 'Product Sans', 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-heading-ar: 'Google Sans', 'Product Sans', sans-serif;
    --font-body: 'Google Sans', 'Product Sans', 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-sub-ar: 'Google Sans', 'Product Sans', sans-serif;

    /* Transitions */
    --transition-smooth: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: all 0.2s ease;
  }

  body {
    background-color: #ffffff;
    color: var(--color-text-dark);
    font-family: var(--font-body);
    min-height: 100vh;
    min-height: 100dvh;
    overflow: hidden;
  }
}



@layer layout {
  .app-container {
    width: 100%;
    max-width: 640px;
    min-height: 100vh;
    min-height: 100dvh;
    margin-inline: auto;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 3.5rem 1.5rem;
  }

  .site-footer {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    text-align: center;
    animation: fadeInUp 1s var(--transition-smooth) 0.5s both;
  }
}

@layer components {
  /* Centered Coming Soon Main Content */
  .coming-soon-content {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-block: auto; /* Vertically center content */
    padding-block: 1rem;
    animation: fadeInUp 1s var(--transition-smooth) 0.1s both;
  }

  /* Premium Logo Frame */
  .logo-wrapper {
    position: relative;
    width: 320px;
    aspect-ratio: 16 / 9;
    margin-block-end: 2rem;
    transition: var(--transition-smooth);
  }

  .logo-wrapper:hover {
    transform: scale(1.02);
  }

  .society-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }

  /* Branding Text styling */
  .branding {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-block-end: 1.75rem;
  }

  .brand-en {
    font-family: var(--font-heading-en);
    font-size: 1.6rem;
    font-weight: 400;
    letter-spacing: 2px;
    color: #475569; /* Slate 600 */
    line-height: 1.25;
    text-transform: uppercase;
  }



  /* Minimal Flag Line Ribbon Divider */
  .divider {
    display: flex;
    width: 90px;
    height: 2px;
    border-radius: 1px;
    overflow: hidden;
    margin-block-end: 2rem;
  }

  .divider span {
    flex: 1;
    height: 100%;
  }

  .line-red {
    background-color: var(--color-accent-red);
  }

  .line-black {
    background-color: var(--color-accent-black);
  }

  .line-green {
    background-color: var(--color-accent-green);
  }

  /* Coming Soon message styles */
  .message-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
  }

  .coming-soon-text {
    font-family: var(--font-heading-en);
    font-size: 2.1rem;
    font-weight: 400;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--color-text-medium);
    line-height: 1.2;
    text-shadow: 0 1px 2px rgba(0,0,0,0.02);
  }

  /* Social Icons */
  .social-links {
    display: flex;
    gap: 1rem;
    margin-block-end: 0.5rem;
  }

  .social-link {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(0, 0, 0, 0.04);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-muted);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
    transition: var(--transition-smooth);
  }

  .social-link:hover {
    color: var(--color-primary);
    background: #ffffff;
    border-color: rgba(58, 134, 200, 0.2);
    transform: translateY(-2px);
    box-shadow: 
      0 8px 16px rgba(58, 134, 200, 0.08),
      0 0 0 1px rgba(58, 134, 200, 0.02);
  }

  .social-link svg {
    transition: transform 0.3s ease;
  }

  .social-link:hover svg {
    transform: scale(1.08);
  }

  .copyright {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    letter-spacing: 0.3px;
  }

  .powered-by {
    font-size: 0.7rem;
    color: var(--color-text-muted);
    opacity: 0.85;
    letter-spacing: 0.4px;
    margin-block-start: 0.25rem;
    font-weight: 500;
  }
}

@layer utilities {
  /* Keyframe Animations */
  @keyframes fadeInUp {
    from {
      opacity: 0;
      transform: translateY(15px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  @keyframes rotateDashed {
    from {
      transform: rotate(0deg);
    }
    to {
      transform: rotate(360deg);
    }
  }
}

/* ==========================================================================
   Responsive Media Queries
   ========================================================================== */

@media (max-width: 550px) {
  body {
    padding: 1.5rem 1rem;
  }

  .coming-soon-content {
    padding-block: 0.5rem;
  }

  .logo-wrapper {
    width: 240px;
    margin-block-end: 1.5rem;
  }

  .brand-en {
    font-size: 1.2rem;
    letter-spacing: 1.5px;
  }

  .divider {
    margin-block-end: 1.5rem;
  }

  .coming-soon-text {
    font-size: 1.6rem;
    letter-spacing: 2px;
  }
}

@media (max-height: 620px) {
  body {
    overflow-y: auto;
  }
  .app-container {
    min-height: auto;
    padding-block: 2.5rem 1.5rem;
  }
  .coming-soon-content {
    margin-block: 2rem;
  }
}
