/* Guild Activities & Culture Section */
.guild-section {
  min-height: 100vh;
  width: 100vw;
  background-color: #000000;
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 0;
  overflow: hidden;
}

.guild-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(
      ellipse at 30% 40%,
      rgba(139, 69, 19, 0.03) 0%,
      transparent 50%
    ),
    radial-gradient(
      ellipse at 70% 60%,
      rgba(139, 69, 19, 0.03) 0%,
      transparent 50%
    );
  pointer-events: none;
  z-index: 0;
}

.guild-section-content {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  grid-template-rows: auto;
  padding: clamp(1rem, 2vw, 2rem);
  width: 100%;
  max-width: 1400px;
  position: relative;
  z-index: 2;
}

/* Reuse corner ornaments from about section */
.guild-section .corner-ornament {
  position: absolute;
  width: 80px;
  height: 80px;
  opacity: 0.4;
  z-index: 1;
}

.guild-section .corner-ornament::before,
.guild-section .corner-ornament::after {
  content: "";
  position: absolute;
  background: rgba(139, 69, 19, 0.3);
}

.guild-section .top-left {
  top: 2rem;
  left: 2rem;
}

.guild-section .top-left::before {
  width: 60px;
  height: 2px;
  top: 0;
  left: 0;
}

.guild-section .top-left::after {
  width: 2px;
  height: 60px;
  top: 0;
  left: 0;
}

.guild-section .top-right {
  top: 2rem;
  right: 2rem;
}

.guild-section .top-right::before {
  width: 60px;
  height: 2px;
  top: 0;
  right: 0;
}

.guild-section .top-right::after {
  width: 2px;
  height: 60px;
  top: 0;
  right: 0;
}

.guild-section .bottom-left {
  bottom: 2rem;
  left: 2rem;
}

.guild-section .bottom-left::before {
  width: 60px;
  height: 2px;
  bottom: 0;
  left: 0;
}

.guild-section .bottom-left::after {
  width: 2px;
  height: 60px;
  bottom: 0;
  left: 0;
}

.guild-section .bottom-right {
  bottom: 2rem;
  right: 2rem;
}

.guild-section .bottom-right::before {
  width: 60px;
  height: 2px;
  bottom: 0;
  right: 0;
}

.guild-section .bottom-right::after {
  width: 2px;
  height: 60px;
  bottom: 0;
  right: 0;
}

/* Main Content */
.guild-main {
  grid-column: 1 / 8;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 3;
}

/* Header */
.guild-header {
  margin-bottom: 3rem;
  position: relative;
}

.guild-header .section-title {
  font-family: "Cinzel", serif;
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 700;
  color: #f5f5f5;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  margin-bottom: 1rem;
  text-align: center;
  position: relative;
  text-shadow:
    2px 2px 4px rgba(0, 0, 0, 0.8),
    0 0 20px rgba(139, 69, 19, 0.2);
}

.guild-header .title-underline {
  width: 250px;
  height: 3px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(139, 69, 19, 0.6) 20%,
    rgba(139, 69, 19, 0.6) 80%,
    transparent 100%
  );
  margin: 0 auto;
  position: relative;
}

.guild-header .title-underline::before,
.guild-header .title-underline::after {
  content: "";
  position: absolute;
  width: 8px;
  height: 8px;
  background: rgba(139, 69, 19, 0.6);
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
}

.guild-header .title-underline::before {
  left: -4px;
}

.guild-header .title-underline::after {
  right: -4px;
}

/* Tabs Navigation */
.tabs-nav {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.tab-btn {
  background: transparent;
  border: 2px solid rgba(139, 69, 19, 0.3);
  color: #b8b8b8;
  font-family: "Cinzel", serif;
  font-size: clamp(0.9rem, 1.1vw, 1rem);
  font-weight: 600;
  letter-spacing: 0.15em;
  padding: 1rem 2rem;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  text-transform: uppercase;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.tab-btn::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: #c9a876;
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.tab-btn:hover {
  color: #c9a876;
  border-color: rgba(139, 69, 19, 0.5);
}

.tab-btn:hover::before {
  width: 100%;
}

.tab-btn.active {
  background: linear-gradient(
    135deg,
    rgba(139, 69, 19, 0.15) 0%,
    rgba(139, 69, 19, 0.05) 100%
  );
  border-color: rgba(139, 69, 19, 0.6);
  color: #c9a876;
  box-shadow: 0 0 20px rgba(139, 69, 19, 0.1);
}

.tab-btn.active::before {
  width: 100%;
}

.tab-icon {
  font-size: 1.2em;
  opacity: 0.8;
}

/* Tab Content */
.tabs-content {
  position: relative;
  min-height: 400px;
}

.tab-pane {
  display: none;
  animation: fadeIn 0.5s ease;
}

.tab-pane.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Guild Activities Styles */
.timezone-note {
  text-align: center;
  font-family: "Crimson Text", serif;
  font-size: clamp(1rem, 1.2vw, 1.1rem);
  color: #c9a876;
  font-style: italic;
  margin-bottom: 2.5rem;
}

.activities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.activity-card {
  background: linear-gradient(
    135deg,
    rgba(139, 69, 19, 0.05) 0%,
    rgba(0, 0, 0, 0.3) 100%
  );
  border: 2px solid rgba(139, 69, 19, 0.2);
  padding: 1.8rem;
  position: relative;
  transition: all 0.3s ease;
}

.activity-card:hover {
  border-color: rgba(139, 69, 19, 0.4);
  box-shadow: 0 0 30px rgba(139, 69, 19, 0.1);
  transform: translateY(-4px);
}

.activity-header {
  margin-bottom: 1.5rem;
}

.activity-title {
  font-family: "Cinzel", serif;
  font-size: clamp(1.3rem, 1.8vw, 1.6rem);
  font-weight: 700;
  color: #c9a876;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-bottom: 0.8rem;
}

.activity-accent {
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, #c9a876 0%, transparent 100%);
}

.activity-body {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.day-group {
  margin-bottom: 1rem;
}

.day-group:last-child {
  margin-bottom: 0;
}

.day-label {
  font-family: "Crimson Text", serif;
  font-size: clamp(1.05rem, 1.2vw, 1.15rem);
  color: #d4d4d4;
  font-weight: 600;
  margin-bottom: 0.6rem;
  font-style: italic;
}

.activity-item {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  font-family: "Crimson Text", serif;
  padding-left: 0.5rem;
}

.activity-bullet {
  color: rgba(139, 69, 19, 0.6);
  font-size: 1.1em;
  flex-shrink: 0;
  margin-top: 0.2rem;
}

.activity-details {
  flex: 1;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
}

.activity-name {
  font-size: clamp(1rem, 1.2vw, 1.1rem);
  color: #d4d4d4;
  line-height: 1.6;
}

.activity-time {
  font-size: clamp(0.95rem, 1.1vw, 1.05rem);
  color: #c9a876;
  font-weight: 600;
  white-space: nowrap;
}

.activity-note {
  font-family: "Crimson Text", serif;
  font-size: clamp(0.95rem, 1.1vw, 1.05rem);
  color: #b8b8b8;
  font-style: italic;
  margin-top: 0.5rem;
  padding-left: 2rem;
}

.schedule-note {
  background: rgba(139, 69, 19, 0.05);
  border-left: 3px solid rgba(139, 69, 19, 0.4);
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.schedule-note p {
  font-family: "Crimson Text", serif;
  font-size: clamp(1.05rem, 1.3vw, 1.2rem);
  line-height: 1.7;
  color: #d4d4d4;
  margin: 0;
}

.schedule-note strong {
  color: #c9a876;
  font-weight: 600;
}

/* Guild Culture Styles */
.culture-intro {
  margin-bottom: 2.5rem;
}

.culture-lead {
  font-family: "Crimson Text", serif;
  font-size: clamp(1.3rem, 1.7vw, 1.5rem);
  line-height: 1.7;
  color: #e8e8e8;
  text-align: center;
  font-weight: 600;
}

.culture-lead strong {
  color: #c9a876;
  font-weight: 700;
}

.culture-rules {
  margin-bottom: 2.5rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.culture-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.2rem;
  font-family: "Crimson Text", serif;
  font-size: clamp(1.1rem, 1.4vw, 1.25rem);
  line-height: 1.7;
  color: #d4d4d4;
}

.culture-icon {
  color: #c9a876;
  font-size: 1.2em;
  flex-shrink: 0;
  margin-top: 0.3rem;
  opacity: 0.8;
}

.culture-text {
  flex: 1;
}

.culture-warning {
  background: linear-gradient(
    135deg,
    rgba(139, 69, 19, 0.1) 0%,
    rgba(139, 0, 0, 0.05) 100%
  );
  border: 2px solid rgba(139, 69, 19, 0.3);
  border-left: 4px solid rgba(139, 69, 19, 0.6);
  padding: 1.8rem;
  margin: 2.5rem auto;
  max-width: 800px;
}

.culture-warning p {
  font-family: "Crimson Text", serif;
  font-size: clamp(1.15rem, 1.4vw, 1.3rem);
  line-height: 1.7;
  color: #e8e8e8;
  margin: 0;
  text-align: center;
  font-weight: 600;
}

.culture-warning strong {
  color: #c9a876;
  font-weight: 700;
}

.culture-closing {
  max-width: 800px;
  margin: 2.5rem auto;
}

.culture-closing p {
  font-family: "Crimson Text", serif;
  font-size: clamp(1.05rem, 1.3vw, 1.2rem);
  line-height: 1.8;
  color: #d4d4d4;
  text-align: center;
  font-style: italic;
}

/* Divider Line */
.divider-line {
  color: rgba(139, 69, 19, 0.4);
  font-size: clamp(0.6rem, 1vw, 0.8rem);
  letter-spacing: 0.1em;
  text-align: center;
  margin-top: 3rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .guild-section-content {
    padding: 2rem 1.5rem;
  }

  .activities-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .guild-section {
    padding: 3rem 0;
  }

  .guild-header {
    margin-bottom: 2rem;
  }

  .tabs-nav {
    margin-bottom: 2rem;
    gap: 0.8rem;
  }

  .tab-btn {
    padding: 0.8rem 1.5rem;
    font-size: 0.85rem;
  }

  .activity-card {
    padding: 1.5rem;
  }

  .activity-details {
    flex-direction: column;
    gap: 0.3rem;
  }

  .activity-time {
    align-self: flex-start;
  }

  .schedule-note,
  .culture-warning {
    padding: 1.3rem;
  }
}

@media (max-width: 480px) {
  .tabs-nav {
    flex-direction: column;
    width: 100%;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
  }

  .tab-btn {
    width: 100%;
    justify-content: center;
  }

  .activities-grid {
    gap: 1.5rem;
  }

  .activity-card {
    padding: 1.2rem;
  }
}
