:root {
  color-scheme: light only;
}

/* Force light mode */
html {
  background-color: #ffffff !important;
  color: #000000 !important;
}

body {
  background-color: #ffffff !important;
  color: #000000 !important;
  forced-color-adjust: none !important;
}

/* General Styles */
body {
  margin: 0;
  font-family: 'Poppins', Arial, sans-serif;
  line-height: 1.6;
  background: url('images/Bright Background.png') no-repeat center center fixed;
  background-size: cover;
  color: #333;
}

.container {
  max-width: 1200px;
  margin: auto;
  overflow: hidden;
  padding: 0 2rem;
}

/* Header */
header {
  padding: 1rem 0;
  text-align: center;
  border-bottom: 1px solid #ddd;
}

header .logo {
  max-width: 150px;
  border-radius: 10px;
}

nav {
  margin-top: 1rem;
}

nav a {
  color: #000;
  margin: 0 1rem;
  text-decoration: none;
}

/* Hero Section */
.hero {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem 0;
  border-bottom: 1px solid #ddd;
}

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

.hero p {
  font-size: 1.2rem;
  max-width: 700px;
}

/* Download Section within Hero */
.download-section {
  margin-top: 1rem;
  text-align: center;
}

.download-buttons a {
  display: inline-block;
  margin: 0 0.5rem;
}

.download-buttons img {
  width: 150px;
  height: auto;
}

.download-buttons .apple,
.download-buttons .google {
  width: 150px;
}

.buy-coffee {
  margin-top: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.buy-coffee p {
  margin: 0;
  font-size: 1rem;
}

.buy-coffee-logo {
  width: 50px;
  height: auto;
}

/* Examples Section */
.examples {
  padding: 3rem 0;
  margin-bottom: 1rem;
  text-align: center;
  border-bottom: 1px solid #ddd;
}

.examples-row {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.examples-row img {
  max-width: 30%;
  border-radius: 5px;
}

/* Combined About, Franchises, and Features */
.combined-container {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  border-bottom: 1px solid #ddd;
}

.franchises {
  flex: 1 1 30%;
}

.franchises h2 {
  text-align: center;
  margin-bottom: 1rem;
}

.franchise-list {
  list-style: none;
  padding: 0;
  font-size: 1.1rem;
}

.franchise-list li {
  margin: 0.5rem 0;
}

.about-features {
  flex: 1 1 65%;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.about h2,
.features h2 {
  text-align: center;
  margin-bottom: 1rem;
}

.about p {
  margin-bottom: 1rem;
  text-align: justify;
}

/* Features Section */
.features-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  gap: 1rem;
}

.feature {
  flex: 1 1 41%;
  padding: 1rem;
  border: 1px solid #ddd;
  border-radius: 10px;
  background: #ffdbf5;
}

/* Blog Section (Newly Added) */
.blog {
  padding: 3rem 0;
  border-bottom: 1px solid #ddd;
}

.blog h2 {
  text-align: center;
  margin-bottom: 1.5rem;
}

.blog-posts {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-around;
}

.blog-post {
  flex: 1 1 30%;
  background: #fff;
  padding: 1rem;
  border: 1px solid #ddd;
  border-radius: 10px;
}

.blog-post h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.blog-post p {
  font-size: 1rem;
}

/* Footer */
footer {
  text-align: center;
  padding: 1rem 0;
  border-top: 1px solid #ddd;
}

footer a {
  color: #000;
  text-decoration: underline;
}

/* Import Google Font */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&display=swap');

/* Search and Table Styles */
.search-box {
    width: 100%;
    padding: 15px;
    margin: 20px 0;
    font-size: 16px;
    max-width: 800px;
}

.search-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
}

.filters {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.reset-button {
    padding: 10px 20px;
    background: #ff69b4;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.2s;
}

.reset-button:hover {
    background: #ff1493;
}

/* Table Styles */
.search-results {
    width: 98%;
    max-width: 1600px;
    margin: 20px auto;
    padding: 0 5px;
    overflow-x: auto; /* Enable horizontal scrolling if needed */
}

.search-results table {
    width: 100%;
    table-layout: auto;
    border-collapse: collapse;
    font-size: clamp(9px, 1vw, 12px); /* Responsive font size */
}

.search-results th,
.search-results td {
    padding: clamp(2px, 0.5vw, 4px);
    background: rgba(255, 255, 255, 0.5) !important;
    border: 1px solid rgba(222, 226, 230, 0.3);
    max-width: none;
    font-size: inherit; /* Inherit from table */
}

/* Responsive column widths */
.col-song { width: clamp(80px, 15%, 200px); }
.col-artist { width: clamp(80px, 15%, 200px); }
.col-queens { width: clamp(100px, 20%, 250px); }
.col-franchise { width: clamp(70px, 12%, 150px); }
.col-season { width: clamp(40px, 8%, 80px); }
.col-episode { width: clamp(40px, 8%, 80px); }
.col-winner { width: clamp(60px, 10%, 120px); }
.col-loser { width: clamp(60px, 10%, 120px); }
.col-eliminated { width: clamp(30px, 6%, 80px); }
.col-note { width: clamp(20px, 5%, 60px); }

/* Update note column to be more responsive */
td:last-child {
    font-size: clamp(8px, 0.9vw, 11px);
    max-width: clamp(20px, 5%, 120px);
    padding: clamp(2px, 0.4vw, 4px);
}

/* Update header font size */
.search-results th {
    padding: clamp(2px, 0.5vw, 4px);
    font-size: clamp(9px, 1vw, 12px);
    font-weight: 600;
}

/* Sort header icon positioning */
.sort-header::after {
    font-size: clamp(8px, 0.8vw, 10px);
    right: clamp(2px, 0.4vw, 4px);
}

.song-list h1 {
    text-align: center;
    margin-bottom: 0.5rem;
}

.curator-info {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 0.9em;
    color: #666;
}

.curator-info a {
    color: #ff69b4;
    text-decoration: none;
}

.curator-info a:hover {
    text-decoration: underline;
}

.search-results table {
    width: 100%;
    table-layout: auto; /* Changed from fixed to auto for dynamic column widths */
    border-collapse: collapse; /* Changed from separate to collapse */
    border-spacing: 0;
    background: transparent !important;
}

.search-results th,
.search-results td {
    padding: 3px 4px; /* Reduced padding even more */
    vertical-align: top;
    background: rgba(255, 255, 255, 0.5) !important;
    border: 1px solid rgba(222, 226, 230, 0.3); /* Added subtle borders */
    font-size: 12px;
}

/* Compact column widths - must total 100% */
.col-song { min-width: 100px; max-width: 200px; }
.col-artist { min-width: 100px; max-width: 200px; }
.col-queens { min-width: 120px; max-width: 250px; }
.col-franchise { min-width: 90px; max-width: 150px; }
.col-season { min-width: 50px; max-width: 80px; }
.col-episode { min-width: 50px; max-width: 80px; }
.col-winner { min-width: 80px; max-width: 120px; }
.col-loser { min-width: 80px; max-width: 120px; }
.col-eliminated { min-width: 40px; max-width: 80px; }
.col-note { min-width: 30px; max-width: 60px; }

/* Remove any overflow/truncation styles */
.search-results td, 
.search-results th {
    overflow: visible;
}

.empty-state {
    text-align: center;
    padding: 40px;
    color: #333;
    font-size: 1.1em;
    background: rgba(255, 255, 255, 0.5) !important;
}

/* Special handling for Note column to prevent single-letter wrapping */
td:last-child {
    word-break: keep-all; /* Prevent breaking within words */
    white-space: normal;
    font-size: 11px; /* Slightly smaller font for notes */
    line-height: 1.1;
    max-width: 120px; /* Give it a max-width */
    overflow: visible; /* Allow content to show fully */
    text-align: left;
    padding: 4px 3px; /* Even smaller padding for notes */
}

/* Special hover state for notes */
tr:hover td:last-child {
    overflow: visible;
    white-space: normal;
    z-index: 1;
    position: relative;
}

/* Table Headers */
.sort-header {
    cursor: pointer;
    padding-right: 15px !important; /* Reduced from 25px */
    position: relative;
    white-space: nowrap;
    overflow: hidden;
}

.sort-header::after {
    content: '⇅';
    position: absolute;
    right: 4px; /* Reduced from 8px */
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-size: 0.8em;
}

.sort-header:hover {
    background: rgba(248, 249, 250, 0.9) !important;
}

.sort-header.asc::after {
    content: '↑';
}

.sort-header.desc::after {
    content: '↓';
}

/* Make table headers more compact */
.search-results th {
    padding: 3px 4px;
    font-size: 11px;
    font-weight: 600;
}
