/* style.css — DRF Wallet Styles */

body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f9fcfe;
  color: #111;
  text-align: center;
}

h1 {
  font-size: 28px;
  font-weight: bold;
  margin-top: 20px;
}

button {
  background-color: #007bff;
  color: #fff;
  border: none;
  padding: 10px 16px;
  margin: 10px;
  border-radius: 6px;
  font-size: 16px;
  cursor: pointer;
}

button:disabled {
  background-color: #aaa;
}

select {
  font-size: 16px;
  padding: 6px 12px;
  border-radius: 5px;
  border: 1px solid #ccc;
}

#walletInfo {
  display: none;
  margin-top: 15px;
}

.token-balance {
  list-style: none;
  padding-left: 0;
  margin: 10px 0;
}

.token-balance li {
  font-size: 18px;
  margin-bottom: 8px;
}

footer {
  padding: 20px;
  font-size: 14px;
  color: #888;
  margin-bottom: 70px; /* space for nav */
}

/* Bottom Tab Navigation with Icons */
.bottom-nav {
  position: fixed;
  bottom: 0;
  width: 100%;
  background-color: #ffffff;
  border-top: 1px solid #ddd;
  display: flex;
  justify-content: space-around;
  padding: 10px 0;
  z-index: 1000;
}

.tab-item {
  flex: 1;
  text-align: center;
  font-size: 12px;
  color: #007bff;
  text-decoration: none;
  padding: 5px 0;
}

.tab-item:hover {
  background-color: #f0f0f0;
}

.tab-item img {
  width: 24px;
  height: 24px;
  display: block;
  margin: 0 auto 4px;
}

.loader-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.75);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  color: #fff;
  font-family: sans-serif;
}

.loader img {
  width: 40px;
  margin-bottom: 15px;
  animation: rotate 2s linear infinite;
}

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

.shading-logo {
  width: 50px;
  animation: shading 2s linear infinite;
  margin-top: 50px;
}

@keyframes shading {
  0% {
    transform: rotate(0deg);
  }
  50% {
    transform: rotate(180deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* === DRF Social Media Styles === */

.social-wrapper {
  max-width: 600px;
  margin: 0 auto;
  padding: 10px;
  text-align: left;
}

.create-post-box {
  background: #fff;
  padding: 15px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  margin-bottom: 15px;
}

.create-post-box textarea {
  width: 100%;
  resize: vertical;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 15px;
  min-height: 80px;
  margin-bottom: 10px;
}

.create-post-box input[type="file"] {
  margin-top: 8px;
}

.create-post-btn {
  background-color: #28a745;
  font-size: 14px;
  padding: 8px 14px;
}

.post {
  background: #fff;
  border-radius: 10px;
  padding: 12px;
  margin-bottom: 15px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.03);
}

.post-header {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

.post-header img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  margin-right: 10px;
}

.post-text {
  font-size: 15px;
  margin: 10px 0;
}

.post-media img,
.post-media video {
  width: 100%;
  max-height: 400px;
  border-radius: 8px;
  margin-top: 8px;
}

.link-preview {
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 10px;
  margin-top: 8px;
  font-size: 14px;
  background: #f9f9f9;
}

.reactions {
  margin-top: 10px;
}

.reactions button {
  border: none;
  background: transparent;
  cursor: pointer;
  margin-right: 5px;
  font-size: 18px;
}

.comment-box {
  margin-top: 12px;
}

.comment-box input {
  width: 90%;
  padding: 6px 10px;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 14px;
}

.comment-box button {
  background-color: #007bff;
  font-size: 12px;
  padding: 6px 10px;
  margin-left: 5px;
}

.comment {
  margin-left: 15px;
  margin-top: 6px;
  font-size: 14px;
}

.loader {
  text-align: center;
  margin: 20px auto;
  font-size: 14px;
  color: #999;
}

/* Simple spinner */
.spinner {
  width: 24px;
  height: 24px;
  border: 3px solid #ddd;
  border-top-color: #007bff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
