/*
 * modern.css - Premium Health Portal Aesthetics
 * Part of Karadakara Service Improvements
 */

:root {
  --primary: #2e7d32; /* Trustworthy Green */
  --primary-light: #60ad5e;
  --primary-dark: #005005;
  --secondary: #0277bd; /* Deep Blue */
  --accent: #ff8f00; /* Warm Orange */
  --bg-main: #f5f7f8;
  --glass: rgba(255, 255, 255, 0.8);
  --glass-border: rgba(255, 255, 255, 0.3);
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --radius: 12px;
}

body {
  font-family: 'Inter', 'Roboto', 'Noto Sans JP', sans-serif;
  background-color: var(--bg-main);
  color: #333;
  line-height: 1.6;
}

/* Glassmorphism Cards */
.glass-card {
  background: var(--glass);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  color: white;
  padding: 60px 20px;
  border-radius: 0 0 40px 40px;
  text-align: center;
  margin-bottom: 40px;
}

.hero h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  font-weight: 800;
}

.hero p {
  font-size: 1.1rem;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto;
}

/* Modern Button */
.btn-premium {
  display: inline-block;
  padding: 12px 28px;
  background-color: var(--accent);
  color: white;
  text-decoration: none;
  font-weight: bold;
  border-radius: 50px;
  box-shadow: 0 4px 14px 0 rgba(255, 143, 0, 0.39);
  transition: all 0.2s ease;
}

.btn-premium:hover {
  background-color: #ffb300;
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(255, 143, 0, 0.23);
}

/* Utility */
.modern-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin: 20px 0;
}

.ai-hint {
  font-size: 0.85rem;
  color: var(--secondary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Chat Styles */
.chat-messages .message {
  animation: fadeIn 0.4s ease-out;
  margin-bottom: 12px;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.chat-input-area {
  box-shadow: 0 -4px 10px rgba(0,0,0,0.05);
}

.chat-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.1);
}
