/* Apple.com Style Theme */

@font-face {
  font-family: 'SF Pro Display';
  src: local('SF Pro Display'), local('Helvetica Neue'), local('Helvetica'), local('Arial'), local('sans-serif');
}
@font-face {
  font-family: 'SF Pro Text';
  src: local('SF Pro Text'), local('Helvetica Neue'), local('Helvetica'), local('Arial'), local('sans-serif');
}

:root {
  --apple-black: #000000;
  --apple-light-gray: #f5f5f7;
  --apple-near-black: #1d1d1f;
  
  --apple-blue: #0071e3;
  --apple-link-light: #0066cc;
  --apple-link-dark: #2997ff;
  
  --apple-text-dark: #ffffff;
  --apple-text-light: #1d1d1f;
  --apple-text-secondary-light: rgba(0, 0, 0, 0.8);
  --apple-text-tertiary-light: rgba(0, 0, 0, 0.48);
  
  --apple-card-dark: #272729;
  --apple-card-light: #f5f5f7;
  
  --apple-shadow: rgba(0, 0, 0, 0.22) 3px 5px 30px 0px;
  --apple-focus: #0071e3;
  
  --apple-nav-bg: rgba(0, 0, 0, 0.8);
}

body {
  font-family: 'SF Pro Text', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--apple-light-gray);
  color: var(--apple-text-light);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  margin: 0;
  padding-top: 48px; /* Space for navbar */
  line-height: 1.47;
  letter-spacing: -0.374px;
}

/* Typography */
h1, h2, h3, h4, h5, h6, .display-font {
  font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, sans-serif;
}

.hero-title {
  font-size: 56px;
  font-weight: 600;
  line-height: 1.07;
  letter-spacing: -0.28px;
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: 40px;
  font-weight: 600;
  line-height: 1.10;
  margin-bottom: 1rem;
}

.card-title {
  font-size: 21px;
  font-weight: 700;
  line-height: 1.19;
  letter-spacing: 0.231px;
}

.sub-heading {
  font-size: 21px;
  font-weight: 400;
  line-height: 1.19;
  letter-spacing: 0.231px;
}

.body-text {
  font-size: 17px;
  font-weight: 400;
  line-height: 1.47;
  letter-spacing: -0.374px;
}

.body-emphasis {
  font-size: 17px;
  font-weight: 600;
  line-height: 1.24;
  letter-spacing: -0.374px;
}

/* Sections */
.section-dark {
  background-color: var(--apple-black);
  color: var(--apple-text-dark);
  padding: 80px 20px;
  width: 100%;
}

.section-light {
  background-color: var(--apple-light-gray);
  color: var(--apple-text-light);
  padding: 80px 20px;
  width: 100%;
}

.section-dark .text-muted {
  color: rgba(255, 255, 255, 0.6) !important;
}
.section-light .text-muted {
  color: var(--apple-text-secondary-light) !important;
}

/* Navbar */
.navbar {
  background-color: var(--apple-nav-bg) !important;
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1030;
  height: 48px;
  border: none;
  padding: 0;
}

.navbar .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar-brand {
  font-family: 'SF Pro Text', sans-serif;
  font-size: 14px;
  color: #ffffff !important;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.navbar-nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  height: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-link {
  color: #ffffff !important;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: -0.01em;
  padding: 0 16px !important;
  display: flex;
  align-items: center;
  height: 100%;
  opacity: 0.8;
  transition: opacity 0.2s ease;
}

.nav-link:hover, .nav-link.active {
  opacity: 1;
}

/* Buttons */
.btn-apple-primary {
  background-color: var(--apple-blue);
  color: #ffffff;
  padding: 8px 15px;
  border-radius: 8px;
  border: 1px solid transparent;
  font-size: 17px;
  font-weight: 400;
  text-decoration: none;
  display: inline-block;
  cursor: pointer;
  transition: background-color 0.2s;
}

.btn-apple-primary:hover {
  background-color: #0077ed;
  color: #ffffff;
}

.btn-apple-primary:active {
  background-color: #ededf2;
  color: #1d1d1f;
}

.btn-apple-primary:focus {
  outline: 2px solid var(--apple-focus);
  outline-offset: 2px;
}

.btn-apple-pill {
  background-color: transparent;
  color: var(--apple-link-light);
  padding: 8px 16px;
  border-radius: 980px;
  border: 1px solid var(--apple-link-light);
  font-size: 14px;
  font-weight: 400;
  text-decoration: none;
  display: inline-block;
  cursor: pointer;
  transition: all 0.2s;
}
.section-dark .btn-apple-pill {
  color: var(--apple-text-dark);
  border-color: var(--apple-text-dark);
}

.btn-apple-pill:hover {
  background-color: var(--apple-link-light);
  color: #ffffff;
}
.section-dark .btn-apple-pill:hover {
  background-color: var(--apple-text-dark);
  color: var(--apple-black);
}

/* Links */
.apple-link {
  color: var(--apple-link-light);
  font-size: 14px;
  text-decoration: none;
  font-weight: 400;
  letter-spacing: -0.224px;
}
.section-dark .apple-link {
  color: var(--apple-link-dark);
}
.apple-link:hover {
  text-decoration: underline;
}

/* Cards */
.apple-card {
  background-color: var(--apple-card-light);
  border-radius: 8px;
  border: none;
  box-shadow: var(--apple-shadow);
  padding: 24px;
  margin-bottom: 24px;
}

.section-dark .apple-card {
  background-color: var(--apple-card-dark);
  box-shadow: none;
}

/* Forms */
.apple-input {
  background-color: var(--apple-light-gray);
  border: none;
  border-radius: 11px;
  color: var(--apple-text-light);
  padding: 12px 16px;
  font-size: 17px;
  width: 100%;
  box-sizing: border-box;
  margin-bottom: 16px;
  transition: box-shadow 0.2s ease;
}

.apple-input:focus {
  outline: none;
  box-shadow: 0 0 0 2px var(--apple-focus);
}

/* Tables */
.apple-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.apple-table th {
  font-family: 'SF Pro Text', sans-serif;
  font-size: 12px;
  font-weight: 400;
  color: var(--apple-text-secondary-light);
  padding: 12px 8px;
  border-bottom: 1px solid rgba(0,0,0,0.1);
}

.section-dark .apple-table th {
  color: rgba(255,255,255,0.6);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.apple-table td {
  font-size: 17px;
  padding: 16px 8px;
  border-bottom: 1px solid rgba(0,0,0,0.1);
}

.section-dark .apple-table td {
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.text-success { color: #34c759 !important; }
.text-danger { color: #ff3b30 !important; }
.text-end { text-align: right !important; }

/* Container */
.apple-container {
  max-width: 980px;
  margin: 0 auto;
}

/* Chart Container */
#chartContainer {
  border-radius: 8px;
  overflow: hidden;
  background-color: var(--apple-card-light);
  height: 400px;
}
.section-dark #chartContainer {
  background-color: var(--apple-card-dark);
}

/* Layout Utilities */
.text-center { text-align: center; }
.d-flex { display: flex; }
.justify-content-between { justify-content: space-between; }
.align-items-center { align-items: center; }
.mb-4 { margin-bottom: 24px; }
.mb-3 { margin-bottom: 16px; }
.mt-4 { margin-top: 24px; }
.gap-3 { gap: 16px; }
.fw-bold { font-weight: 600; }
.fw-normal { font-weight: 400; }
.text-decoration-none { text-decoration: none !important; }
.small { font-size: 12px; }
.d-none { display: none !important; }
