/* Custom styles for BookHub */

/* Book card animations */
.book-card {
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.book-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* Flash message animations */
.flash-message {
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Loading spinner */
.loading-spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3B82F6;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Book cover image styles */
.book-cover {
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.book-cover:hover {
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
}

/* Search input focus styles */
.search-input:focus {
    border-color: #3B82F6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Modern button style inspired by GitHub */
.button-4 {
  appearance: none;
  background-color: #FAFBFC;
  border: 1px solid rgba(27, 31, 35, 0.15);
  border-radius: 6px;
  box-shadow: rgba(27, 31, 35, 0.04) 0 1px 0, rgba(255, 255, 255, 0.25) 0 1px 0 inset;
  box-sizing: border-box;
  color: #24292E;
  cursor: pointer;
  display: inline-block;
  font-family: -apple-system, system-ui, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
  font-size: 16px;
  font-weight: 600;
  line-height: 20px;
  list-style: none;
  padding: 10px 22px;
  position: relative;
  transition: background-color 0.2s cubic-bezier(0.3, 0, 0.5, 1);
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  vertical-align: middle;
  white-space: nowrap;
  word-wrap: break-word;
}
.button-4:hover {
  background-color: #F3F4F6;
  text-decoration: none;
  transition-duration: 0.1s;
}
.button-4:disabled {
  background-color: #FAFBFC;
  border-color: rgba(27, 31, 35, 0.15);
  color: #959DA5;
  cursor: default;
}
.button-4:active {
  background-color: #EDEFF2;
  box-shadow: rgba(225, 228, 232, 0.2) 0 1px 0 inset;
  transition: none 0s;
}
.button-4:focus {
  outline: 1px transparent;
}
.button-4:before {
  display: none;
}
.button-4:-webkit-details-marker {
  display: none;
}

.button-4-primary {
  background-color: #57B9FF;
  color: #fff;
  border: 1px solid #57B9FF;
  font-weight: 600;
  transition: background 0.2s, color 0.2s;
}
.button-4-primary:hover,
.button-4-primary:focus {
  background-color: #77B1D4;
  border-color: #77B1D4;
  color: #fff;
}
.button-4-primary:active {
  background-color: #517891;
  border-color: #517891;
}

/* Logo styles */
.logo {
    height: 32px;
    width: auto;
}

.logo-large {
    height: 40px;
    width: auto;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .logo-large {
        height: 32px;
    }
}

.modal {
    position: fixed;
    inset: 0;
    background: rgba(30, 41, 59, 0.5); /* semi-transparent dark overlay */
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: #fff;
    border-radius: 0.75rem;
    box-shadow: 0 10px 32px 0 rgba(30, 41, 59, 0.18);
    border: 1.5px solid var(--color-blue-100);
    padding: 2rem 2.5rem;
    min-width: 340px;
    max-width: 95vw;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-content input[type="text"],
.modal-content input[type="password"] {
    background: #fff;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    padding: 0.5rem 0.75rem;
    width: 100%;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.btn-primary {
  background-color: #2563eb !important; /* Tailwind blue-600 */
  color: #fff !important;
}

/* Search bar and advanced search (reference style) */
.search-bar-form {
    display: flex;
    justify-content: flex-end;
    width: 100%;
    max-width: 370px;
}
.search-bar-input {
    width: 100%;
    max-width: 350px;
    padding: 6px 16px;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    font-size: 0.98rem;
    font-family: 'Segoe UI', 'Arial', sans-serif;
    font-weight: 300;
    letter-spacing: 0.04em;
    background: #fff;
    color: #222;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    outline: none;
    transition: border 0.2s, box-shadow 0.2s;
}
.search-bar-input:focus {
    border: 1.5px solid #ebcb45;
    box-shadow: 0 2px 12px rgba(235,203,69,0.10);
}
.search-bar-input::placeholder {
    color: #b0b0b0;
    font-size: 0.93em;
    font-weight: 300;
    letter-spacing: 0.01em;
    text-transform: none;
    white-space: normal;
}
.advanced-search-link {
    margin-top: 6px;
    color: #ebcb45;
    font-size: 0.98em;
    font-weight: 300;
    text-align: right;
    display: block;
    text-decoration: none;
    transition: color 0.15s;
    margin-bottom: 0.5rem;
}
.advanced-search-link:hover {
    color: #ffe066;
    text-decoration: underline;
}

/* Logo styling for reference look */
.logo-main {
    height: 49px;
    width: auto;
    display: block;
    margin: 0;
    padding: 0;
    object-fit: contain;
}

/* Ensure logo is always left-aligned and vertically centered in top bar */
.w-full.bg-black .logo-main {
    margin-left: 0;
    margin-right: 0;
    align-self: center;
}

/* Remove BookHub text next to logo everywhere in the top bar */

/* Wishlist Button Styles */
.button-secondary {
  appearance: none;
  background-color: #F8F9FA;
  border: 1px solid rgba(27, 31, 35, 0.15);
  border-radius: 6px;
  box-shadow: rgba(27, 31, 35, 0.04) 0 1px 0, rgba(255, 255, 255, 0.25) 0 1px 0 inset;
  box-sizing: border-box;
  color: #24292E;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: -apple-system, system-ui, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
  font-size: 16px;
  font-weight: 600;
  line-height: 20px;
  padding: 10px 22px;
  position: relative;
  transition: all 0.2s cubic-bezier(0.3, 0, 0.5, 1);
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  vertical-align: middle;
  white-space: nowrap;
  word-wrap: break-word;
}

.button-secondary:hover {
  background-color: #F3F4F6;
  border-color: rgba(27, 31, 35, 0.25);
  text-decoration: none;
  transition-duration: 0.1s;
}

.button-secondary:disabled {
  background-color: #FAFBFC;
  border-color: rgba(27, 31, 35, 0.15);
  color: #959DA5;
  cursor: default;
}

.button-secondary:active {
  background-color: #EDEFF2;
  box-shadow: rgba(225, 228, 232, 0.2) 0 1px 0 inset;
  transition: none 0s;
}

.button-danger {
  appearance: none;
  background-color: #dc3545;
  border: 1px solid #dc3545;
  border-radius: 6px;
  box-shadow: rgba(220, 53, 69, 0.1) 0 1px 0;
  box-sizing: border-box;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: -apple-system, system-ui, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
  font-size: 16px;
  font-weight: 600;
  line-height: 20px;
  padding: 10px 22px;
  position: relative;
  transition: all 0.2s cubic-bezier(0.3, 0, 0.5, 1);
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  vertical-align: middle;
  white-space: nowrap;
  word-wrap: break-word;
}

.button-danger:hover {
  background-color: #c82333;
  border-color: #c82333;
  text-decoration: none;
  transition-duration: 0.1s;
}

.button-danger:disabled {
  background-color: #6c757d;
  border-color: #6c757d;
  cursor: default;
}

.button-danger:active {
  background-color: #bd2130;
  border-color: #bd2130;
  transition: none 0s;
} 