/* ==== VERAKORE INVEST CSS FRAMEWORK ==== */
/* Consolidated CSS framework loading */

/* Foundation Layer */
@import url('./foundation/reset.css');
@import url('./foundation/tokens.css');
@import url('./foundation/base.css');
@import url('./foundation/frame.css');

/* Component Layer */
/* Header Components */
@import url('./components/header/header.css');
@import url('./components/header/buttons.css');
@import url('./components/header/navigation.css');

/* Body Components */
@import url('./components/body/layout.css');
@import url('./components/body/typography.css');
@import url('./components/body/gradient-dividers.css');
@import url('./components/body/editorial-overrides.css');
@import url('./components/body/global-editorial-overrides.css');
@import url('./components/body/cards.css');

/* Icon System */
@import url('./components/icons.css');

/* Footer Components */
@import url('./components/footer/footer.css');

/* Utilities Layer */
/* Note: Utilities are included in base.css for now */

/* ========================================
   AI INFRASTRUCTURE SECTION REFINEMENTS
   ======================================== */

/* Section Dividers - Orange to Black Gradient */
.section-divider {
  height: 1px;
  background: linear-gradient(to right, #ff6b35, #000000);
  opacity: 0.6;
  margin: 3rem 0;
  width: 100%;
}

/* Refined Section Styling */
.refined-section {
  padding: 2rem 0;
  background: #ffffff;
}

.refined-section h2 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: #000000;
  line-height: 1.2;
}

.refined-section h3 {
  font-size: clamp(1.25rem, 3vw, 1.5rem);
  font-weight: 600;
  margin: 2rem 0 1rem 0;
  color: #000000;
  line-height: 1.3;
}

/* Infrastructure Diagram */
.infrastructure-diagram {
  text-align: center;
  margin: 2rem 0;
  padding: 1.5rem;
  background: #fafafa;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.infrastructure-diagram img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
}

/* Infrastructure Breakdown Grid */
.infrastructure-breakdown {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.breakdown-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem;
  background: #ffffff;
  border: 1px solid #e6e6e6;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.breakdown-item:hover {
  border-color: #ff6b35;
  box-shadow: 0 2px 8px rgba(255, 107, 53, 0.1);
}

.breakdown-icon {
  font-size: 1.5rem;
  line-height: 1;
  flex-shrink: 0;
}

.breakdown-content {
  flex: 1;
}

.breakdown-title {
  font-weight: 600;
  font-size: 1rem;
  color: #000000;
  margin-bottom: 0.25rem;
}

.breakdown-desc {
  font-size: 0.875rem;
  color: #666666;
  line-height: 1.4;
}

/* Content Groupings for Better Hierarchy */
.performance-content,
.signals-content,
.strategy-content {
  margin: 1rem 0;
}

.performance-content p,
.signals-content p,
.strategy-content p {
  margin-bottom: 1rem;
  line-height: 1.6;
  color: #000000;
}

.performance-content p:last-child,
.signals-content p:last-child,
.strategy-content p:last-child {
  margin-bottom: 0;
}

/* Key Trends Section Padding */
.key-trends-section {
  margin-top: 3rem;
  padding: 1rem 0;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .infrastructure-breakdown {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .breakdown-item {
    padding: 0.75rem;
  }
  
  .infrastructure-diagram {
    padding: 1rem;
  }
  
  .section-divider {
    margin: 2rem 0;
  }
  
  .key-trends-section {
    margin-top: 2rem;
  }
}

/* ========================================
   STANDARDIZED SECTOR BOXES
   ======================================== */

/* Unified Sector Box Layout */
.sector {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto 2rem auto;
  background: #ffffff;
  border: 1px solid #e6e6e6;
  border-radius: 0;
  box-shadow: none;
  overflow: hidden;
}

/* Sector Header - Consistent Styling */
.sector-header {
  background: #ffffff;
  color: #000000;
  padding: 1.5rem 2rem;
  font-size: 1.25rem;
  font-weight: 600;
  border-bottom: 1px solid #e6e6e6;
  text-align: left;
  line-height: 1.3;
}

/* Sector Content - Uniform Padding */
.sector-content {
  padding: 2rem;
  background: #ffffff;
}

/* Table Container - Consistent Spacing */
.table-container {
  margin: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* Table Styling - Clean and Minimal */
table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  font-size: 0.9rem;
  margin: 0;
}

/* Table Headers */
th {
  background: #f8f9fa;
  color: #000000;
  padding: 1rem 0.75rem;
  text-align: left;
  font-weight: 600;
  border-bottom: 2px solid #e6e6e6;
  font-size: 0.85rem;
}

/* Table Cells */
td {
  padding: 1rem 0.75rem;
  border-bottom: 1px solid #f0f0f0;
  color: #000000;
  vertical-align: middle;
}

/* Remove any existing box shadows and borders */
.sector,
.sector-header,
.sector-content {
  box-shadow: none !important;
}

/* Responsive Grid Layout */
@media (min-width: 768px) {
  .sector {
    margin-bottom: 2.5rem;
  }
  
  .sector-header {
    padding: 1.75rem 2rem;
    font-size: 1.375rem;
  }
  
  .sector-content {
    padding: 2.5rem;
  }
  
  th, td {
    padding: 1.25rem 1rem;
  }
  
  th {
    font-size: 0.9rem;
  }
}

@media (min-width: 1200px) {
  .sector {
    max-width: 1400px;
  }
  
  .sector-header {
    padding: 2rem 2.5rem;
    font-size: 1.5rem;
  }
  
  .sector-content {
    padding: 3rem;
  }
}

/* ========================================
   NEWS HEADLINES & LINKS STYLING
   ======================================== */

/* Headlines Section */
.headlines {
  margin: 2rem 0;
  padding: 1.5rem 0;
}

.headlines h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #000000;
  margin-bottom: 1rem;
  border-bottom: 2px solid #e6e6e6;
  padding-bottom: 0.5rem;
}

.headlines ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.headlines li {
  margin-bottom: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid #f0f0f0;
  line-height: 1.5;
  color: #000000;
}

.headlines li:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

/* News Links */
.headlines a {
  color: #666666;
  text-decoration: none;
  font-weight: 500;
  padding: 0.25rem 0.5rem;
  border-radius: 3px;
  transition: all 0.2s ease;
  display: inline-block;
  margin-left: 0.5rem;
}

.headlines a:hover {
  color: #ff6b35;
  text-decoration: underline;
  background-color: transparent;
}

.headlines a:focus {
  outline: 2px solid #ff6b35;
  outline-offset: 2px;
}

/* Responsive News Links */
@media (max-width: 768px) {
  .headlines li {
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
  }
  
  .headlines a {
    display: block;
    margin-left: 0;
    margin-top: 0.5rem;
    text-align: center;
  }
}

/* ========================================
   LOWER SECTION LAYOUT STANDARDIZATION
   ======================================== */

/* Main Lower Section Container */
.lower-section {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  background: #ffffff;
}

/* AI Decision Making Section */
.ai-decision-intro {
  padding: 2rem 0;
  text-align: left;
}

.ai-decision-intro p {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #000000;
  margin: 0;
  max-width: 800px;
}

/* Explanation Grid - Standardized */
.explanation-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
  padding: 0;
}

/* Explanation Cards - Clean Layout */
.explanation-card {
  background: #ffffff;
  border: 1px solid #e6e6e6;
  border-radius: 0;
  padding: 2rem;
  box-shadow: none;
  width: 100%;
}

.explanation-card h4 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #000000;
  margin: 0 0 1.5rem 0;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid #e6e6e6;
}

/* Top Picks Section */
.top-picks {
  margin: 0;
}

.pick-item {
  margin-bottom: 1.5rem;
  padding: 1rem 0;
  border-bottom: 1px solid #f0f0f0;
}

.pick-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.pick-item strong {
  color: #000000;
  font-size: 1.1rem;
  display: block;
  margin-bottom: 0.5rem;
}

.pick-rationale {
  color: #666666;
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 0;
}

/* Risk Alerts */
.risk-alerts {
  margin: 0;
}

.risk-item {
  margin-bottom: 1rem;
  padding: 1rem;
  background: #fff5f5;
  border-left: 4px solid #ff6b35;
  border-radius: 0;
}

.risk-item:last-child {
  margin-bottom: 0;
}

.risk-item strong {
  color: #d73a49;
  display: block;
  margin-bottom: 0.5rem;
}

.risk-item p {
  color: #666666;
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
}

/* Methodology Section */
.methodology-content {
  margin: 0;
}

.methodology-content p {
  color: #000000;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.methodology-content p:last-child {
  margin-bottom: 0;
}

/* Multi-Horizon Analysis */
.horizon-analysis {
  margin: 0;
}

.horizon-item {
  margin-bottom: 1.5rem;
  padding: 1rem 0;
  border-bottom: 1px solid #f0f0f0;
}

.horizon-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.horizon-item h5 {
  color: #000000;
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 0.5rem 0;
}

.horizon-item p {
  color: #666666;
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
}

/* Personalized Investment Profile */
.profile-content {
  margin: 0;
}

.profile-item {
  margin-bottom: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid #f0f0f0;
}

.profile-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.profile-label {
  font-weight: 600;
  color: #000000;
  margin-bottom: 0.25rem;
}

.profile-value {
  color: #666666;
  font-size: 0.9rem;
}

/* Data Quality Analysis */
.quality-content {
  margin: 0;
}

.quality-item {
  margin-bottom: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid #f0f0f0;
}

.quality-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.quality-label {
  font-weight: 600;
  color: #000000;
  margin-bottom: 0.25rem;
}

.quality-value {
  color: #666666;
  font-size: 0.9rem;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .explanation-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin: 1.5rem 0;
  }
  
  .explanation-card {
    padding: 1.5rem;
  }
  
  .ai-decision-intro {
    padding: 1.5rem 0;
  }
  
  .pick-item {
    margin-bottom: 1rem;
  }
}

@media (min-width: 1200px) {
  .lower-section {
    max-width: 1400px;
  }
  
  .explanation-grid {
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2.5rem;
  }
  
  .explanation-card {
    padding: 2.5rem;
  }
}
