/**
 * COSMOS Super App - Main Stylesheet
 * This file contains primary styles for the COSMOS application
 */

:root {
  --primary-color: #008080;
  --primary-light: #00a0a0;
  --primary-dark: #006666;
  --accent-color: #ff9800;
  --text-light: #fff;
  --text-dark: #333;
  --background-gradient: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  --card-background: rgba(255, 255, 255, 0.1);
  --border-radius: 10px;
}

/* Global styles */
body {
  font-family: 'Inter', sans-serif;
  margin: 0;
  padding: 0;
  background: var(--background-gradient);
  color: var(--text-light);
  min-height: 100vh;
  padding-bottom: 70px; /* Make room for bottom nav */
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  box-sizing: border-box;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  margin-top: 0;
  font-weight: 700;
}

h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

h2 {
  font-size: 2rem;
  margin-bottom: 0.8rem;
}

p {
  line-height: 1.6;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: 30px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  outline: none;
}

.btn-primary {
  background-color: white;
  color: var(--primary-dark);
}

.btn-primary:hover {
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: rgba(255, 255, 255, 0.2);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.3);
}

/* Cards */
.card {
  background-color: var(--card-background);
  border-radius: var(--border-radius);
  padding: 20px;
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 20px;
}

/* Navigation */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: white;
  display: flex;
  justify-content: space-around;
  padding: 10px 0;
  z-index: 1000;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: #666;
  font-size: 12px;
}

.nav-item i, .nav-item svg {
  margin-bottom: 4px;
  height: 20px;
  width: 20px;
}

.nav-item.active {
  color: var(--primary-color);
}

.nav-item.dhruv {
  color: var(--accent-color);
  font-weight: 600;
}

/* Stats */
.stat-card {
  text-align: center;
}

.stat-value {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 5px;
}

.stat-label {
  font-size: 0.9rem;
  opacity: 0.8;
}

/* Language selector */
.language-selector {
  position: fixed;
  right: 15px;
  bottom: 70px;
  background-color: white;
  border-radius: 6px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--text-dark);
  cursor: pointer;
  z-index: 1000;
}

.language-dropdown {
  position: absolute;
  background-color: white;
  border-radius: 6px;
  overflow: hidden;
  z-index: 1001;
}

.language-option {
  padding: 10px 15px;
  cursor: pointer;
  transition: background-color 0.2s ease;
  color: var(--text-dark);
}

.language-option:hover {
  background-color: #f5f5f5;
}

/* Categories grid */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 15px;
}

.category-card {
  background-color: white;
  border-radius: 12px;
  padding: 15px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  cursor: pointer;
  transition: transform 0.3s ease;
  color: var(--text-dark);
}

.category-card:hover {
  transform: translateY(-5px);
}

.category-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  font-size: 24px;
}

.category-name {
  font-weight: 600;
  margin-top: 8px;
}

/* Search bar */
.search-bar {
  position: relative;
  margin-bottom: 20px;
}

.search-input {
  width: 100%;
  padding: 12px 45px 12px 15px;
  border-radius: 30px;
  border: none;
  background-color: rgba(255, 255, 255, 0.15);
  color: white;
  outline: none;
}

.search-input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.search-icon {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
}

/* Fix for the yellow offline banner */
/* The most aggressive approach to remove it completely */
[style*="background-color: rgb(255, 204, 0)"],
[style*="background-color: #ffcc00"],
[style*="background-color: yellow"],
[class*="offline"],
[class*="banner"] {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  height: 0 !important;
  width: 0 !important;
  position: absolute !important;
  overflow: hidden !important;
  z-index: -9999 !important;
  pointer-events: none !important;
}

/* Responsive styles */
@media (max-width: 768px) {
  .container {
    padding: 15px;
  }
  
  h1 {
    font-size: 2rem;
  }
  
  .categories-grid {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 1.8rem;
  }
  
  .stat-value {
    font-size: 1.8rem;
  }
  
  .categories-grid {
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  }
}