/* ✅ Global style.css for Thursday Jams site redesign */

/* Base Styles */
body {
  font-family: 'Segoe UI', sans-serif;
  margin: 0;
  padding: 0;
  padding-bottom: 320px; /* Prevent footer & quote overlap */
  background-color: #faf4ee;
  color: #333;
}

h1, h2, h3 {
  font-family: 'Georgia', serif;
  color: #402a1f;
}

p {
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
}

/* Hero Section */
.hero {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  text-align: center;
  padding: 2rem;
  background-color: #000;
}

.hero-image {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
}

.hero-text {
  position: relative;
  z-index: 1;
  background: none;
  padding: 2rem;
}

.hero-text h1 {
  font-size: 3rem;
  margin: 0;
  color: #f0e9dc;
}

.hero-text p {
  font-size: 1.25rem;
  margin: 0rem 0 0;
  color: #f0e9dc;
}

/* Section Formatting */
.section, .about {
  max-width: 900px;
  margin: auto;
  padding: 0.5rem;
  text-align: left;
}

.section:nth-of-type(even), .projects {
  background-color: #f8f1e4;
}

/* About Us Grid */
.dev-grid {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 1rem;
}

.dev {
  text-align: center;
}

.dev img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid #c9a57f;
  background: #fff;
}

.dev p {
  margin-top: 0.5rem;
  font-weight: bold;
  font-size: 1rem;
  color: #3d2c2c;
  text-align: center;
}

.dev-role {
  font-weight: normal;
  font-size: 0.9rem;
  color: #5a4741;
}

/* Project Grid */
.projects {
  padding: 2rem;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
  margin-top: 1rem;
  padding: 0 0rem;
}

.project {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  transition: transform 0.2s ease;
  text-align: center;
  display: flex;
  flex-direction: column;
  padding-bottom: 1rem;
}

.project:hover {
  transform: scale(1.03);
}

.project img {
  width: 100%;
  height: auto;
  display: block;
}

.project h3 {
  padding: 0.5rem 1rem 0;
  font-size: 1.1rem;
  color: #3d2c2c;
}

.project p {
  padding: 0 1rem;
  font-size: 0.9rem;
  color: #5a4741;
}

/* Footer */
.footer {
  position: fixed;
  bottom: 0;
  width: 100%;
  background-color: #e3d5c4;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  color: #5a4741;
  box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
  z-index: 1000;
}

.footer img.logo {
  height: 40px;
  width: auto;
  margin-bottom: 0;
}

/* Decorative Lists */
.book-list, .icon-list {
  list-style: none;
  padding-left: 0;
}

.book-list li::before {
  content: "📖";
  display: inline-block;
  width: 1.2em;
  margin-left: -1.2em;
}

/* Feature Grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}

.feature {
  background: #fff;
  padding: 1rem;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.stage-card-image {
  max-width: 600px;
  width: 100%;
  height: auto;
  display: block;
  margin: 1rem auto;
  border-radius: 8px;
}

/* Social Icons */
.social-icons {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: flex-start;
  margin-top: 1rem;
}

.social-icons img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.social-icons img:hover {
  transform: scale(1.1);
}

/* ✅ Thursday Quote Bubble — image inside textbox with responsive width */
.thursday-quote-bubble {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 999;

  width: clamp(150px, 15vw, 720px);

  font-size: 0.9rem;
  font-style: italic;
  background-color: #fff8ec;
  border: 2px solid #dabfa1;
  padding: 1rem;
  border-radius: 10px;
  box-shadow: 2px 4px 8px rgba(0, 0, 0, 0.1);

  display: flow-root;
  text-align: left;
}

/* Let text wrap around the image */
.thursday-icon {
  float: left;
  width: 56px;
  height: auto;
  margin: 0 0.75rem 0.25rem 0;
  flex-shrink: 0;
}

/* Quote text */
.thursday-quote-bubble p {
  margin: 0;
  line-height: 1.4;
}

/* Small screens: expand to near full width, smaller icon */
@media (max-width: 540px) {
  .thursday-quote-bubble {
    width: 92vw;
  }
  .thursday-icon {
    width: 44px;
  }
}

/* Ultra-narrow: stack image above text as a fallback */
@media (max-width: 340px) {
  .thursday-icon {
    float: none;
    display: block;
    margin: 0 auto 0.5rem;
  }
}

/* Back Button */
.floating-back-button {
  position: fixed;
  top: 1rem;
  left: 1rem;
  background-color: var(--accent);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  font-weight: bold;
  text-decoration: none;
  z-index: 1000;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  transition: background-color 0.3s;
}

.floating-back-button:hover {
  background-color: var(--highlight);
}

.icon-list {
  list-style: none;
  padding-left: 0;
  margin: 1em 0;
}

.icon-list li {
  margin-bottom: 0.5em;
  font-size: 1.1em;
}

.subtitle {
  font-style: italic;
  font-size: 1.1rem;
  margin-top: 0.5rem;
  color: var(--text-muted);
}
