* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: system-ui, -apple-system, sans-serif;
}

body {
    background: #f5f5f5;
}

body.dark-mode {
  background-color: #121212;
  color: #e0e0e0;
}

body.oled-dark {
  background-color: #000000;
  color: #ffffff;
}

.oled-dark .nav-wrapper {
  background-color: #000000;
}

.oled-dark .input-field input[type="search"] {
  background-color: #1a1a1a !important;
  color: #ffffff;
  border-bottom: 1px solid #333 !important;
}

.oled-dark .input-field input[type="search"]::placeholder {
  color: #888888;
}

.oled-dark .input-field .label-icon i,
.oled-dark .input-field .material-icons {
  color: #888888;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

header {
    text-align: center;
    margin-bottom: 30px;
}

h1 {
    color: #333;
    margin-bottom: 20px;
}

.search-container {
    width: 100%;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 20px;
}

.search-container .input-field {
  margin: 0;
}

input {
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ddd;
    border-radius: 4px;
    width: 100%;
    max-width: 400px;
}

.input-field.full-width {
    width: 100%;
    margin: 0;
}

.input-field.full-width input[type="search"] {
    width: 100%;
    background: transparent !important;
    border-bottom: 1px solid #333 !important;
    padding: 10px 15px;
    color: #ffffff;
    font-size: 16px;
}

.input-field input[type="search"] {
  background: #263238 !important;
  color: #eceff1;
}

.input-field input[type="search"]::placeholder {
  color: #b0bec5;
}

.input-field .label-icon {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
}

.input-field .search-icon {
    color: #888888;
}

.input-field .close-icon {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #888888;
    cursor: pointer;
}

.input-field input[type="search"]:focus {
    border-bottom: 2px solid #fff !important;
    box-shadow: none;
}

.input-field .label-icon i,
.input-field .material-icons {
  color: #ffffff;
}

button {
    padding: 10px 20px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

button:hover {
    background: #0056b3;
}

.back-btn {
    margin-bottom: 20px;
}

#results {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

#results .card {
  background-color: #121212 !important;
  border: 1px solid #222222;
}

#results .card-content {
  background-color: #000000;
}

#results .card-action {
  background-color: #1a1a1a;
  border-top: 1px solid #222222;
}

.book-card {
    background: white;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: transform 0.2s;
}

.book-card.dark-card {
  background-color: #1e1e1e !important;
  color: #e0e0e0;
}

.book-card:hover {
    transform: translateY(-5px);
}

.book-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 10px;
}

.book-card h3 {
    font-size: 16px;
    margin-bottom: 10px;
    color: #333;
}

.book-card p {
    font-size: 14px;
    color: #666;
}

#bookDetails {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

#bookDetails img {
    max-width: 300px;
    margin: 0 auto 20px;
    display: block;
    border-radius: 4px;
}

#bookDetails h2 {
    margin-bottom: 15px;
}

#bookDetails p {
    margin-bottom: 10px;
    line-height: 1.6;
}

.book-hero {
  display: flex;
  flex-direction: row;
  gap: 2rem;
  padding: 2rem;
  background-color: #000000;
  margin-bottom: 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.5);
}

.book-hero__image {
  flex: 0 0 300px;
}

.book-hero__image img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.5);
}

.book-hero__content {
  flex: 1;
}

.book-hero__title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: #ffffff;
}

.book-hero__authors {
  font-size: 1.2rem;
  color: #aaaaaa;
  margin-bottom: 1rem;
}

.book-metadata {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1rem;
  padding: 1rem;
}

.metadata-item {
  background-color: #111111;
  padding: 1rem;
  border-radius: 8px;
  border: 1px solid #333333;
}

.metadata-item__label {
  color: #888888;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.metadata-item__value {
  color: #ffffff;
  font-size: 1.1rem;
}

.action-buttons {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.action-buttons a {
  flex: 1;
  text-align: center;
}

.description-section {
  margin-top: 2rem;
  padding: 1.5rem;
  background-color: #111111;
  border-radius: 8px;
  border: 1px solid #333333;
}

.description-section h3 {
  color: #ffffff;
  margin-bottom: 1rem;
}

/* Optional: Add a brand-related style if needed */
.brand-logo {
  font-family: 'Google Sans', sans-serif;
  font-weight: 500;
}

@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    #results {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
    
    .book-card h3 {
        font-size: 14px;
    }
    
    .book-card p {
        font-size: 12px;
    }
    
    .book-hero {
        flex-direction: column;
        padding: 1rem;
    }
}

@media (max-width: 600px) {
    .input-field.full-width input[type="search"] {
        padding: 8px 12px;
        font-size: 14px;
    }
}

/* Accessibility helpers */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
:focus {
  outline: 2px dashed #fff;
  outline-offset: 3px;
}