/* Base styles */
body {
  font-family: 'Segoe UI', sans-serif;
  background: #f7f7f7;
  color: #222;
  text-align: center;
  padding: 20px;
  transition: background 0.3s, color 0.3s;
  line-height: 1.5;
}

input, select, button {
  padding: 10px;
  margin: 5px;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 1em;
}

.raid-form input, .raid-form select, .raid-form button {
  display: block;
  margin: 10px auto;
  width: 90%;
  max-width: 320px;
}

/* Header */
#site-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  padding: 10px 20px;
  background-color: #ffffff;
  border-bottom: 1px solid #ddd;
  margin-bottom: 20px;
}
#site-logo {
  height: 50px;
  width: auto;
}
#site-title {
  font-size: 1.8rem;
  font-weight: bold;
  margin: 0;
  color: #007bff;
}

body.dark-mode #site-header {
  background-color: #1f1f1f;
  border-bottom: 1px solid #444;
}
body.dark-mode #site-title {
  color: #66b2ff;
}

/* Filters */
.filters {
  margin: 20px auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}
.filters input, .filters select {
  width: 200px;
}

/* Tier Tabs */
.tier-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 15px 0;
}
.tier-tabs button {
  padding: 8px 12px;
  border: none;
  background-color: #eee;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s;
}
.tier-tabs button:hover {
  background-color: #ddd;
}
.tier-button.active {
  background-color: #4CAF50;
  color: white;
  font-weight: bold;
}

/* Raid Card */
#raid-list {
  max-width: 640px;
  margin: 20px auto;
}
.raid-card {
  background: #e0f7fa;
  border-left: 5px solid #0288d1;
  padding: 15px;
  margin: 12px 0;
  border-radius: 12px;
  text-align: left;
  position: relative;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.05);
  animation: fadeIn 0.4s ease-in-out;
}

.raid-card img.boss-icon {
  max-width: 70px;
  float: right;
  border-radius: 10px;
  margin-left: 10px;
}

.friend-code {
  font-family: monospace;
  background: #fff;
  padding: 2px 6px;
  border-radius: 4px;
  color: #222;
  border: 1px solid #ccc;
  transition: background 0.2s, color 0.2s;
}

.friend-code:hover {
  background: #f0f0f0;
}

body.dark-mode .friend-code {
  background: #333;
  color: #fff;
  border: 1px solid #555;
}

body.dark-mode .friend-code:hover {
  background: #444;
}

.raid-card button {
  margin-left: 5px;
  padding: 6px 10px;
  font-size: 0.9em;
  border-radius: 5px;
}

/* Favorite style */
.raid-card.favorite {
  border-left-color: gold !important;
  background-color: #fff8dc;
}
body.dark-mode .raid-card.favorite {
  background-color: #3a2f00;
}

/* Chat */
.chat-form {
  margin-bottom: 15px;
}
.chat-form input {
  width: 200px;
  margin: 5px;
}
#chat-messages {
  max-width: 600px;
  margin: auto;
  text-align: left;
}
.chat-message {
  background: #f1f1f1;
  margin: 5px 0;
  padding: 10px 12px;
  border-radius: 6px;
  border-left: 4px solid #0288d1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
body.dark-mode .chat-message {
  background: #2a2a2a;
  border-left-color: #29b6f6;
}

/* Info button */
#info-button {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 1000;
  padding: 8px 14px;
  font-size: 1.2rem;
  border: none;
  border-radius: 6px;
  background-color: #007bff;
  color: white;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  transition: background-color 0.3s ease;
}
#info-button:hover {
  background-color: #0056b3;
}

/* Dark mode */
body.dark-mode {
  background: #1c1c1c;
  color: #eee;
}
body.dark-mode input,
body.dark-mode select,
body.dark-mode button {
  background: #333;
  color: #eee;
  border: 1px solid #555;
}
body.dark-mode .raid-card {
  background: #2e2e2e;
  border-left-color: #29b6f6;
}
body.dark-mode .tier-tabs button {
  background: #444;
  color: #eee;
}
body.dark-mode .tier-tabs button:hover {
  background: #555;
}
#dark-toggle {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #444;
  color: white;
  border: none;
  padding: 6px 10px;
  border-radius: 6px;
  cursor: pointer;
}
body.dark-mode #dark-toggle {
  background: #ddd;
  color: #222;
}

/* Like button */
.like-button {
  background: none;
  border: none;
  font-size: 1.1rem;
  cursor: pointer;
  color: #888;
  transition: color 0.2s ease, transform 0.2s ease;
  margin-left: 8px;
}
.like-button:hover {
  transform: scale(1.15);
  color: #d33;
}
.like-button.liked {
  color: #e63946;
}
body.dark-mode .like-button {
  color: #aaa;
}
body.dark-mode .like-button:hover {
  color: #ff6f91;
}
body.dark-mode .like-button.liked {
  color: #ff4c71;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Responsive styles */
@media (max-width: 600px) {
  .raid-form input,
  .raid-form select,
  .raid-form button,
  .filters input,
  .filters select,
  .chat-form input,
  .chat-form button {
    width: 95%;
    font-size: 1.05em;
  }

  .tier-tabs {
    flex-direction: column;
    align-items: center;
    gap: 6px;
  }

  .raid-card {
    font-size: 0.95em;
    padding: 12px;
  }

  .raid-card img.boss-icon {
    max-width: 60px;
  }

  #dark-toggle {
    top: 5px;
    right: 5px;
    padding: 4px 8px;
    font-size: 0.9em;
  }

  #site-header {
    flex-direction: column;
    gap: 8px;
  }

  #site-title {
    font-size: 1.5rem;
  }
}
#site-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  background-color: #ffffff;
  border-bottom: 2px solid #ccc;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

#site-logo {
  height: 50px;
  width: auto;
}

#site-title {
  font-size: 1.8rem;
  color: #333;
  font-weight: bold;
  margin: 0;
}

.dark-mode #site-header {
  background-color: #222;
  border-color: #444;
}

.dark-mode #site-title {
  color: #eee;
}

.subtitle {
  text-align: center;
  font-weight: normal;
  color: #555;
  margin-top: 8px;
}

.dark-mode .subtitle {
  color: #ccc;
}