/* Index-specific mobile-friendly styles */

/* Title and description styling */
.quarto-title-block h1.title {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.quarto-title-block .description {
  font-size: 1rem;
  color: #b8b8b8;
  font-weight: 400;
  line-height: 1.6;
  margin-top: 0.5rem;
}

@media (max-width: 768px) {
  .quarto-title-block h1.title {
    font-size: 1.5rem;
  }
  
  .quarto-title-block .description {
    font-size: 1rem;
  }
}

/* Newsletter button styling */
.newsletter-container {
  margin: 1.5rem 0;
  display: block;
  width: 100%;
}

.subscribe-button {
  background-color: #447099;
  color: white;
  padding: 12px 20px;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  text-align: center;
  display: block;
  width: 300px;
  margin-bottom: 30px;
}

.subscribe-button:hover {
  background-color: #305775;
}

/* Blog listings improvements */
#blog-listings {
  margin-top: 1.5rem;
  width: 100%;
  overflow-x: auto;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .subscribe-button {
    background: none;
    color: #75A8D9;
    padding: 0;
    width: auto;
    margin: 0 0 20px 0;
    text-align: left;
    display: inline;
    text-decoration: underline;
    font-weight: bold;
    border-radius: 0;
    font-size: 1.05em;
  }
  
  .subscribe-button:hover {
    background: none;
    color: #74adf7;
  }
  
  /* Table adjustments for mobile */
  #blog-listings table {
    font-size: 0.9rem;
  }
  
  #blog-listings th, #blog-listings td {
    padding: 0.5rem;
  }
  
  /* Force table to not be like a table on mobile */
  @media (max-width: 480px) {
    #blog-listings table, 
    #blog-listings thead, 
    #blog-listings tbody, 
    #blog-listings th, 
    #blog-listings td, 
    #blog-listings tr {
      display: block;
    }
    
    /* Hide table headers */
    #blog-listings thead tr {
      position: absolute;
      top: -9999px;
      left: -9999px;
    }
    
    #blog-listings tr {
      margin-bottom: 1rem;
      border-bottom: 1px solid #ddd;
    }
    
    #blog-listings td {
      border: none;
      position: relative;
      padding-left: 40%;
      text-align: right;
    }
    
    #blog-listings td:before {
      position: absolute;
      left: 6px;
      width: 35%;
      white-space: nowrap;
      text-align: left;
      font-weight: bold;
    }
    
    /* Label the data for each cell */
    #blog-listings td:nth-of-type(1):before { content: "Date"; }
    #blog-listings td:nth-of-type(2):before { content: "Title"; }
  }
}

/* Filter input styling */
input[type="search"] {
  width: 100%;
  padding: 15px;
  border: none;
  margin-bottom: 1rem;
  color: #888;
  background-color: #e9e9e9;
  font-size: 16px;
}

/* Style the filter container */
.quarto-listing-filter {
  display: flex;
  align-items: center;
}

/* Style the search icon container */
.quarto-listing-filter > div:first-child {
  background-color: #222;
  padding: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Specific dark mode overrides */
.quarto-dark input[type="search"] {
  color: #eee;
  background-color: #444;
  border-color: #666;
}

@media (max-width: 600px) {
  input[type="search"] {
    font-size: 16px; /* Prevents zoom on mobile */
    padding: 12px;
  }
} 