/* Base reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  font-family: sans-serif;
  font-size: 16px;
}

/* Light theme */
body {
  background-color: #f4f4f4;
  color: #222;
  padding: 40px;
}

a {
  color: #0055aa;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Responsive gallery grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 15px;
}

.image-card {
  position: relative;
  border: 1px solid #ccc;
  border-radius: 8px;
  overflow: hidden;
  background-color: #fff;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  padding: 10px;
}

.image-card img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 6px;
}

.image-card p {
  margin-top: 5px;
  word-break: break-word;
}

/* Verified badge */
.badge-verified {
  position: absolute;
  right: 10px;
  top: 10px;
  background: #28a745;
  color: white;
  font-weight: bold;
  border-radius: 50%;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  box-shadow: 0 1px 2px rgba(0,0,0,.25);
}

/* Message link style */
.message-link {
  font-size: 0.9em;
}

/* Dark mode */
@media (prefers-color-scheme: dark) {
  body {
    background-color: #121212;
    color: #e0e0e0;
  }

  a { color: #7bb8ff; }

  .image-card {
    background-color: #1e1e1e;
    border: 1px solid #333;
  }

  .badge-verified {
    background: #2baf60;
  }
}


form button {
  margin-right: 10px;
  padding: 8px 12px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

form button[name="refuse"] {
  background: #dc3545 !important;
  color: white !important;
}

/* Add to end of your style.css */

/* Role icons - 24x24 fixed size */
.role-icon {
  width: 12px !important;
  height: 12px !important;
  vertical-align: middle;
  display: inline-block;
  image-rendering: pixelated;
  image-rendering: -moz-crisp-edges;
  image-rendering: crisp-edges;
}

/* Exclude ALL badges/icons from image-card resize */
.image-card .user-badge,
.image-card .profile-badge,
.image-card .role-icon {
  width: auto !important;
  height: auto !important;
  max-width: none !important;
  display: inline-block !important;
}



.user-badge {
  vertical-align: middle;
  margin-left: -1px;
  display: inline-block;
  /* NO width/height - RAW NATURAL SIZE */
  image-rendering: pixelated;
  image-rendering: -moz-crisp-edges;
  image-rendering: crisp-edges;
}

.profile-badge {
  /* NO width/height - RAW NATURAL SIZE */
  float: right;
  margin-left: -1px;
  image-rendering: pixelated;
  image-rendering: -moz-crisp-edges;
  image-rendering: crisp-edges;
}


/* Top-right login status */
body {
  position: relative;
}
