/* Root Styles and Variables */
:root {
  --font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --bg-color: #F5F5F7;
  --card-bg: rgba(255, 255, 255, 0.75);
  --border-color: rgba(255, 255, 255, 0.85);
  --text-primary: #1D1D1F;
  --text-secondary: #86868B;
  --accent-color: #0071E3;
  --border-radius: 20px;
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Reset and Globals */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-color);
  color: var(--text-primary);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* Navigation Header (Apple Frosted Glass Style) */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 64px;
  background-color: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  z-index: 1000;
}

.nav-container {
  max-width: 1000px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
}

.brand {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-primary);
  text-decoration: none;
  letter-spacing: -0.5px;
}

.nav-links {
  display: flex;
  gap: 12px;
}

.nav-tab {
  background: none;
  border: none;
  font-family: var(--font-family);
  font-size: 14px;
  font-weight: 700;
  color: var(--text-secondary);
  padding: 6px 16px;
  border-radius: 16px;
  cursor: pointer;
  transition: var(--transition);
}

.nav-tab:hover {
  color: var(--text-primary);
  background-color: rgba(0, 0, 0, 0.03);
}

.nav-tab.active {
  color: #FFFFFF;
  background-color: var(--text-primary);
}

/* Main Content Area */
.main-content {
  max-width: 900px;
  margin: 90px auto 40px auto;
  padding: 0 20px;
}

/* Tab panes toggling */
.tab-pane {
  display: none;
  animation: fadeIn 0.4s ease-out;
}

.tab-pane.active {
  display: block;
}

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

/* Header Section */
.header-section {
  margin-bottom: 24px;
}

.date-today {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.page-title {
  font-size: 34px;
  font-weight: 900;
  letter-spacing: -1px;
  margin-top: 4px;
}

/* Kharch App Hero Card (Liquid Glass Effect) */
.hero-card {
  background-color: var(--card-bg);
  border-radius: 28px;
  border: 1.5px solid var(--border-color);
  padding: 32px;
  shadow-color: #000;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.04);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  margin-bottom: 32px;
}

.app-header {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 32px;
}

.app-logo {
  width: 100px;
  height: 100px;
  border-radius: 22px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.06);
}

.app-details {
  flex: 1;
}

.app-title {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.app-subtitle {
  font-size: 15px;
  color: var(--text-secondary);
  font-weight: 500;
  margin-top: 4px;
  margin-bottom: 16px;
}

/* Apple styled GET button */
.btn-get {
  display: inline-block;
  background-color: var(--accent-color);
  color: #FFFFFF;
  text-decoration: none;
  font-size: 15px;
  font-weight: 800;
  padding: 6px 24px;
  border-radius: 16px;
  text-align: center;
  transition: var(--transition);
  box-shadow: 0 4px 12px rgba(0, 113, 227, 0.2);
}

.btn-get:hover {
  background-color: #0077ED;
  transform: scale(1.03);
}

.btn-get:active {
  transform: scale(0.97);
}

/* Info row */
.app-info-row {
  display: flex;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  padding: 16px 0;
  margin-bottom: 32px;
}

.info-block {
  flex: 1;
  text-align: center;
}

.info-label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  color: var(--text-secondary);
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.info-value {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
}

.info-divider {
  width: 1px;
  background-color: rgba(0, 0, 0, 0.05);
}

/* App Description */
.app-description h3 {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 12px;
}

.app-description p {
  font-size: 15px;
  color: #3C3C43;
  line-height: 1.6;
  margin-bottom: 20px;
}

.app-description ul {
  list-style: none;
  margin-bottom: 32px;
}

.app-description li {
  font-size: 14px;
  position: relative;
  padding-left: 20px;
  margin-bottom: 8px;
  color: #3C3C43;
}

.app-description li::before {
  content: "•";
  position: absolute;
  left: 6px;
  color: var(--accent-color);
  font-size: 18px;
  line-height: 14px;
}

/* Mockup Showcase grid */
.mockup-showcase {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 32px;
}

.mockup-card {
  background-color: #FAFAFC;
  border-radius: 20px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
}

.mockup-header {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.mockup-body {
  padding: 20px;
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mockup-glass-card {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  padding: 16px;
  width: 100%;
}

.mockup-card-label {
  font-size: 9px;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
}

.mockup-card-value {
  font-size: 20px;
  font-weight: 800;
  display: block;
  margin-top: 2px;
}

.mockup-divider {
  height: 1px;
  background-color: rgba(0,0,0,0.05);
  margin: 10px 0;
}

.mockup-row {
  display: flex;
  justify-content: space-between;
}

.mockup-sublabel {
  display: block;
  font-size: 8px;
  color: var(--text-secondary);
}

.mockup-subval {
  font-size: 11px;
  font-weight: 700;
}

.chart-donut {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 10px solid var(--accent-color);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.donut-text {
  font-size: 12px;
  font-weight: 800;
}

.donut-sub {
  font-size: 8px;
  color: var(--text-secondary);
}

.mockup-progress-bar {
  width: 100%;
  margin-bottom: 12px;
}

.progress-title {
  font-size: 10px;
  font-weight: 700;
  display: block;
  margin-bottom: 4px;
}

.progress-track {
  height: 6px;
  background-color: #E5E5EA;
  border-radius: 3px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  border-radius: 3px;
}

.progress-fill.warning {
  width: 85%;
  background-color: #FF9500;
}

.progress-fill.normal {
  width: 42%;
  background-color: var(--accent-color);
}

/* 2. JOIN TEAM TAB STYLES */
.join-container {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.disclaimer-card {
  background-color: #FFF9E6;
  border: 1px solid #FFE0B2;
  border-radius: 20px;
  padding: 24px;
}

.disclaimer-header h3 {
  font-size: 16px;
  font-weight: 800;
  color: #FF9500;
  margin-bottom: 8px;
}

.disclaimer-text {
  font-size: 14px;
  color: #5C4314;
  line-height: 1.6;
}

.form-card {
  background-color: var(--card-bg);
  border: 1.5px solid var(--border-color);
  border-radius: 28px;
  padding: 32px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.04);
}

.form-title {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 24px;
  letter-spacing: -0.5px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  height: 44px;
  border: 1px solid #E5E5EA;
  border-radius: 10px;
  padding: 10px 14px;
  font-family: var(--font-family);
  font-size: 14px;
  color: var(--text-primary);
  background-color: #FAFAFC;
  transition: var(--transition);
}

.form-group textarea {
  height: auto;
  resize: vertical;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent-color);
  background-color: #FFFFFF;
  outline: none;
  box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.1);
}

.btn-submit {
  width: 100%;
  height: 48px;
  background-color: var(--text-primary);
  color: #FFFFFF;
  font-family: var(--font-family);
  font-size: 15px;
  font-weight: 700;
  border: none;
  border-radius: 24px;
  cursor: pointer;
  transition: var(--transition);
  margin-top: 10px;
}

.btn-submit:hover {
  background-color: #333333;
}

.btn-submit:active {
  transform: scale(0.98);
}

/* AJAX Message Cards */
.form-message-card {
  display: none;
  margin-top: 20px;
  padding: 16px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  animation: fadeIn 0.3s ease-out;
}

.form-message-card.success {
  display: block;
  background-color: #E8F5E9;
  color: #2E7D32;
  border: 1px solid #C8E6C9;
}

.form-message-card.error {
  display: block;
  background-color: #FFEBEE;
  color: #C62828;
  border: 1px solid #FFCDD2;
}

/* Blinkit Style Footer */
.footer {
  margin-top: 60px;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  padding: 40px 20px;
  background-color: #FFFFFF;
}

.footer-brand-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  opacity: 0.35;
}

.footer-title {
  font-size: 18px;
  font-weight: 900;
  color: var(--text-primary);
  letter-spacing: 2.5px;
  text-transform: uppercase;
}

.footer-tagline {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-secondary);
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
}

.footer-creator {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-primary);
  margin-top: 6px;
  letter-spacing: 0.5px;
}

.footer-copyright {
  text-align: center;
  font-size: 12px;
  color: var(--text-secondary);
}

/* App Store List Styles */
.app-list-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.app-list-card {
  display: block;
  background-color: var(--card-bg);
  border-radius: 20px;
  border: 1px solid var(--border-color);
  padding: 24px;
  text-decoration: none;
  color: var(--text-primary);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
  transition: var(--transition);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.app-list-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}

.app-list-content {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
}

.app-list-logo {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.app-list-info {
  flex: 1;
}

.app-list-title {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 4px;
}

.app-list-subtitle {
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 500;
}

.btn-get-small {
  background-color: var(--text-primary);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  padding: 6px 16px;
  border-radius: 14px;
}

.app-list-footer {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid rgba(0,0,0,0.05);
  padding-top: 16px;
}

.app-list-tag, .app-list-rating {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-secondary);
}

.back-link {
  display: inline-block;
  font-size: 15px;
  font-weight: 700;
  color: var(--accent-color);
  text-decoration: none;
  margin-bottom: 16px;
  transition: var(--transition);
}

.back-link:hover {
  opacity: 0.8;
  transform: translateX(-4px);
}

/* Developer Profile Styles */
.profile-card {
  background-color: var(--card-bg);
  border-radius: 28px;
  border: 1.5px solid var(--border-color);
  padding: 32px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.04);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  gap: 32px;
  align-items: center;
}

.profile-images {
  position: relative;
  width: 200px;
  height: 200px;
  flex-shrink: 0;
}

.profile-img-main {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 12px 24px rgba(0,0,0,0.1);
  border: 4px solid #fff;
  z-index: 2;
  position: relative;
}

.profile-img-sub {
  position: absolute;
  bottom: -10px;
  right: -10px;
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.15);
  border: 3px solid #fff;
  z-index: 3;
}

.profile-content {
  flex: 1;
}

.profile-name {
  font-size: 28px;
  font-weight: 900;
  letter-spacing: -0.5px;
  color: var(--text-primary);
}

.profile-role {
  font-size: 14px;
  font-weight: 700;
  color: var(--accent-color);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px;
}

.profile-bio p {
  font-size: 15px;
  color: #3C3C43;
  line-height: 1.6;
  margin-bottom: 16px;
}

.profile-links {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.profile-link-btn {
  display: inline-block;
  padding: 10px 24px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: var(--transition);
}

.profile-link-btn.primary {
  background-color: var(--text-primary);
  color: #fff;
}

.profile-link-btn.primary:hover {
  background-color: #333;
}

.profile-link-btn.secondary {
  background-color: rgba(0,0,0,0.05);
  color: var(--text-primary);
}

.profile-link-btn.secondary:hover {
  background-color: rgba(0,0,0,0.1);
}

/* Responsive queries */
@media(max-width: 600px) {
  .navbar {
    height: auto;
    padding: 12px 0;
  }
  .nav-container {
    flex-direction: column;
    gap: 12px;
  }
  .main-content {
    margin-top: 130px;
  }
  .hero-card, .form-card {
    padding: 20px;
  }
  .app-header {
    flex-direction: column;
    text-align: center;
    gap: 16px;
  }
  .app-info-row {
    flex-direction: column;
    gap: 12px;
  }
  .profile-card {
    flex-direction: column;
    text-align: center;
    padding: 24px;
  }
  .profile-links {
    justify-content: center;
  }
}
