/* ReaderRadar Shared Stylesheet */
/* Orange -> Pink gradient theme with rounded styling */

@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700&display=swap');

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

body {
  font-family: 'Nunito', sans-serif;
  background: linear-gradient(to bottom right, #ffe5b4, #ffd6e8, #fff3c6);
  min-height: 100vh;
  color: #333;
}

/* Typography */
h1, h2, h3 {
  color: #e85d75;
}

h1 {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

h2 {
  font-size: 1.5rem;
  margin-bottom: 15px;
}

h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

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

/* Layout */
.page-centered {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 2rem;
}

.page-padded {
  padding: 2rem;
}

.container {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 1200px;
  margin: 0 auto;
}

/* Title Section */
.title {
  text-align: center;
  margin-bottom: 20px;
}

.title h1 {
  font-size: 2.5rem;
  margin: 0;
}

.title p {
  color: #555;
  margin-top: 8px;
}

/* Cards */
.card {
  background: white;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(255, 150, 150, 0.2);
  padding: 30px;
  max-width: 500px;
  width: 90%;
  position: relative;
}

.card-flex {
  flex: 1 1 300px;
  max-width: 500px;
  width: 100%;
  overflow: visible;
}

.card-header {
  background: linear-gradient(135deg, #ff9a56 0%, #e85d75 100%);
  color: white;
  padding: 25px 20px;
  position: relative;
  margin: -30px -30px 20px -30px;
}

.card-header h2 {
  color: white;
  margin: 0;
  font-size: 1.5rem;
}

.card-header p {
  color: rgba(255, 255, 255, 0.9);
  margin: 5px 0 0 0;
  font-weight: 300;
}

.card-body {
  padding: 0;
}

/* Decorative Bubbles */
.bubble {
  position: absolute;
  border-radius: 50%;
  opacity: 0.3;
  filter: blur(10px);
  z-index: 0;
}

.bubble1 {
  width: 80px;
  height: 80px;
  background: #ffa07a;
  top: -30px;
  right: -30px;
}

.bubble2 {
  width: 100px;
  height: 100px;
  background: #ffb6c1;
  bottom: -40px;
  left: -40px;
}

/* Forms */
form {
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 1;
}

label {
  font-weight: 600;
  color: #e85d75;
  margin-bottom: 8px;
}

input[type="text"],
input[type="file"],
textarea {
  padding: 12px 16px;
  border: 2px solid #ffd6d6;
  border-radius: 15px;
  font-family: 'Nunito', sans-serif;
  font-size: 1rem;
  background: white;
  margin-bottom: 15px;
  transition: border-color 0.2s;
}

input[type="text"]:focus,
textarea:focus {
  outline: none;
  border-color: #e85d75;
}

textarea {
  min-height: 100px;
  resize: vertical;
  width: 100%;
}

/* Buttons */
button, .btn {
  background: linear-gradient(135deg, #ff9a56 0%, #e85d75 100%);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 25px;
  font-family: 'Nunito', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background 0.3s;
}

button:hover, .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(232, 93, 117, 0.4);
  background: linear-gradient(135deg, #ff8a40 0%, #d94d65 100%);
}

/* Rating Badge */
.rating {
  position: absolute;
  top: 20px;
  right: 20px;
  background: #fff6d3;
  color: #ffb100;
  padding: 6px 12px;
  border-radius: 15px;
  font-weight: bold;
  display: flex;
  align-items: center;
}

/* Highlight Badge */
.highlight-badge {
  display: inline-block;
  background: #ffc107;
  color: #fff;
  font-weight: bold;
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 8px;
  margin-left: 10px;
  vertical-align: middle;
}

/* Image Preview */
#image-preview {
  max-width: 100%;
  width: auto;
  height: auto;
  border-radius: 20px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  display: block;
  margin: 0 auto;
}

#image-preview[src=""] {
  display: none;
}

#upload-status {
  margin-top: 10px;
  font-size: 14px;
  color: #e85d75;
  font-weight: 600;
}

/* Horizontal Rule */
hr {
  border: none;
  height: 2px;
  background: linear-gradient(135deg, #ff9a56 0%, #e85d75 100%);
  margin: 25px 0;
  border-radius: 1px;
}

/* Carousel */
.carousel-container {
  width: 600px;
  max-width: 95%;
  position: relative;
}

.carousel {
  display: flex;
  overflow: hidden;
  scroll-behavior: smooth;
}

.carousel .card {
  min-width: 100%;
  padding: 0;
  transition: transform 0.4s ease;
  overflow: hidden;
}

.carousel .card-header {
  margin: 0;
  padding: 30px 20px;
}

.carousel .card-body {
  padding: 20px;
  position: relative;
  min-height: 240px;
}

.carousel .card-body h3 {
  margin-top: 0;
  font-size: 16px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
}

.carousel .card-body h3::before {
  margin-right: 6px;
}

.carousel .pagination {
  position: absolute;
  bottom: 20px;
  right: 20px;
  font-size: 12px;
  color: #888;
}

/* Navigation Buttons */
.nav-buttons {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
  align-items: center;
}

.nav-buttons button {
  background: white;
  border: 2px solid #ffd6d6;
  color: #e85d75;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  padding: 0;
  cursor: pointer;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-buttons button:hover {
  background: #fff5f0;
  transform: none;
  box-shadow: none;
}

/* Dots */
.dots {
  display: flex;
  gap: 6px;
  align-items: center;
}

.dot {
  width: 10px;
  height: 10px;
  background: #ffd6d6;
  border-radius: 50%;
  transition: background 0.3s;
}

.dot.active {
  background: #e85d75;
}

/* Utility Classes */
.text-center {
  text-align: center;
}

.mb-20 {
  margin-bottom: 20px;
}

.mt-20 {
  margin-top: 20px;
}

/* Responsive */
@media (max-width: 768px) {
  .page-padded {
    padding: 1rem;
  }

  .container {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }

  .card-flex {
    max-width: 100%;
  }

  #image-preview {
    max-width: 100%;
  }

  .carousel-container {
    width: 100%;
  }

  h1 {
    font-size: 2rem;
  }
}
