@charset "UTF-8";

/* ========================================
   Layout Styles
   ======================================== */

/* ========================================
   Header Styles
   ======================================== */
.site-header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(238, 238, 238, 0.8);
  padding: 15px 0;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-link {
  display: inline-block;
  text-decoration: none;
}

.logo-img {
  width: 200px;
  height: auto;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 25px;
}

.nav-loading {
  color: #999;
  font-size: 12px;
  padding: 10px;
}

/* ========================================
   Navigation Styles
   ======================================== */
.nav-dropdown {
  position: relative;
  display: inline-block;
}

.header-nav .nav-item {
  text-decoration: none;
  color: #333;
  font-weight: 700;
  transition: all 0.3s ease;
  padding: 8px 12px;
  border-radius: 6px;
  display: block;
  position: relative;
}

.header-nav .nav-item:hover {
  color: #5e42ec;
  background: rgba(94, 66, 236, 0.05);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  border: 1px solid rgba(0, 0, 0, 0.08);
  min-width: 180px;
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(-10px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1001;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.dropdown-menu::before {
  content: '';
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 12px;
  height: 12px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-bottom: none;
  border-right: none;
  transform: translateX(-50%) rotate(45deg);
}

.nav-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.dropdown-item {
  display: block;
  padding: 12px 20px;
  color: #555;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s ease;
  border-radius: 0;
}

.dropdown-item:hover {
  background: rgba(94, 66, 236, 0.08);
  color: #5e42ec;
  padding-left: 24px;
}

.dropdown-item:only-child {
  border-radius: 8px;
}

/* ========================================
   Admin Menu Styles
   ======================================== */
.admin-menu-item {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
  color: white !important;
  border-radius: 6px !important;
  padding: 8px 16px !important;
  margin: 0 5px !important;
  transition: all 0.3s ease !important;
}

.admin-menu-item:hover {
  background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%) !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 8px rgba(102, 126, 234, 0.3) !important;
  color: white !important;
}

.admin-dropdown-menu {
  border: 2px solid #667eea !important;
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.2) !important;
}

.admin-dropdown-menu .dropdown-item {
  border-left: 3px solid #667eea !important;
  background: linear-gradient(90deg, rgba(102, 126, 234, 0.05) 0%, transparent 100%) !important;
}

.admin-dropdown-menu .dropdown-item:hover {
  background: linear-gradient(
    90deg,
    rgba(102, 126, 234, 0.1) 0%,
    rgba(102, 126, 234, 0.05) 100%
  ) !important;
  border-left-color: #764ba2 !important;
}

/* ========================================
   Fixed Side Buttons
   ======================================== */
.fixed-side-buttons {
  position: fixed;
  right: 20px;
  bottom: 50px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 150;
  align-items: center;
}

.side-btn {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 12px;
  padding: 15px;
  font-size: 12px;
  font-weight: 600;
  color: #333;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 120px;
  text-align: center;
}

.side-btn:hover {
  background: #f8f9fa;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.side-btn span {
  width: 28px;
}

.side-btn span img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* ========================================
   Main Content Layout
   ======================================== */
.main-content {
  padding: 50px 0 0px 0;
}

.main-container {
  position: relative;
}

/* ========================================
   Top Section Layout
   ======================================== */
.top-section {
  display: flex;
  gap: 30px;
  margin-bottom: 50px;
}

/* ========================================
   Event Banner Layout
   ======================================== */
.event-banner {
  flex: 1;
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  display: flex;
  height: 500px;
}

.hero-left {
  flex: 0 0 60%;
  background: #333;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 30px;
  overflow: hidden;
}

.hero-right {
  flex: 0 0 40%;
  background: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 30px;
  gap: 10px;
}

.hero-main-content {
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  position: relative;
}

.main-center-img {
  max-width: 400px;
  width: 100%;
  height: auto;
  z-index: 10;
  position: relative;
}

/* ========================================
   Decorative Elements Layout
   ======================================== */
.deco-elements-left,
.deco-elements-right {
  position: absolute;
  top: 0;
  width: 60%;
  height: 100%;
  pointer-events: none;
  z-index: 5;
}

.deco-elements-left {
  left: 0;
}

.deco-elements-right {
  right: 0;
}

.deco {
  position: absolute;
  width: auto;
  height: auto;
  max-width: 50px;
  z-index: 1;
}

.deco-left-01 {
  top: 23%;
  left: 22%;
  max-width: 30px;
  animation: gentle-float 3s ease-in-out infinite;
  animation-delay: 0s;
}

.deco-left-02 {
  top: 10%;
  left: 35%;
  max-width: 25px;
  animation: twinkle 3.5s ease-in-out infinite;
  animation-delay: 0.5s;
}

.deco-left-03 {
  top: 40%;
  left: 10%;
  max-width: 20px;
  animation: twinkle 2s ease-in-out infinite;
  animation-delay: 1s;
}

.deco-left-04 {
  top: 5%;
  left: 50%;
  max-width: 35px;
  animation: gentle-float 4s ease-in-out infinite;
  animation-delay: 1.5s;
}

.deco-left-05 {
  bottom: 30%;
  left: 15%;
  max-width: 25px;
  animation: sparkle-rotate 3s ease-in-out infinite;
  animation-delay: 2s;
}

.deco-left-06 {
  bottom: 20%;
  left: 30%;
  max-width: 30px;
  animation: gentle-sway 4.5s ease-in-out infinite;
  animation-delay: 0.8s;
}

.deco-left-07 {
  bottom: 5%;
  left: 45%;
  max-width: 25px;
  animation: coin-spin 3.5s ease-in-out infinite;
  animation-delay: 1.2s;
}

.deco-right-01 {
  top: 8%;
  right: 30%;
  max-width: 35px;
  animation: gentle-float 3.8s ease-in-out infinite;
  animation-delay: 0.3s;
}

.deco-right-02 {
  top: 25%;
  right: 40%;
  max-width: 30px;
  animation: gentle-sway 3.2s ease-in-out infinite;
  animation-delay: 0.8s;
}

.deco-right-03 {
  top: 45%;
  right: 10%;
  max-width: 25px;
  animation: buzz-float 4s ease-in-out infinite;
  animation-delay: 1.8s;
}

.deco-right-04 {
  bottom: 25%;
  right: 35%;
  max-width: 20px;
  animation: twinkle 2.2s ease-in-out infinite;
  animation-delay: 2.5s;
}

.deco-right-05 {
  bottom: 8%;
  right: 15%;
  max-width: 30px;
  animation: gentle-sway 3.5s ease-in-out infinite;
  animation-delay: 1.3s;
}

/* ========================================
   Price Section Layout
   ======================================== */
.price-section {
  display: flex;
  justify-content: center;
  align-items: center;
}

.price-main-img {
  max-width: 330px;
  width: 100%;
  height: auto;
}

/* ========================================
   Login Box Layout
   ======================================== */
.login-box {
  flex: 0 0 300px;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  padding: 30px;
  height: 500px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* ========================================
   Bottom Section Layout
   ======================================== */
.bottom-section {
  padding: 40px 0;
}

.bottom-boxes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

/* ========================================
   Footer Layout
   ======================================== */
.site-footer {
  background: #fff;
  padding: 40px 0;
  border-top: 1px solid #eee;
}

.site-footer .container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 30px;
}

.footer-left .logo-link {
  display: inline-block;
  margin-bottom: 15px;
}

.footer-logo {
  margin-bottom: 10px;
}

.footer-left p {
  font-size: 14px;
  color: #666;
  margin-bottom: 5px;
  line-height: 1.5;
}

.footer-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 15px;
}

.footer-links {
  list-style: none;
  display: flex;
  gap: 20px;
  margin-bottom: 10px;
}

.footer-links li a {
  text-decoration: none;
  color: #666;
  font-size: 14px;
  font-weight: 500;
}

.footer-links li a:hover {
  color: #333;
}

.spam-cert {
  width: 60px;
  height: auto;
}

/* ========================================
   Login Bar Layout
   ======================================== */
.login-bar {
  padding: 0;
  position: relative;
  z-index: 999;
  color: #fff;
}

.login-bar-content {
  background: #6c5ce0;
  padding: 20px;
  border-radius: 0 0 10px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.1);
  min-height: 110px;
  position: relative;
}

/* 나사 효과 - 4개의 모서리 원 */
.login-bar-content::before,
.login-bar-content::after {
  content: '';
  position: absolute;
  width: 8px;
  height: 8px;
  background: #fff;
  border-radius: 50%;
  border: 1px solid #4a4a4a;
  box-shadow: inset 0 0 2px rgba(0, 0, 0, 0.2), 0 1px 2px rgba(0, 0, 0, 0.1);
  z-index: 10;
}

/* 왼쪽 상단 나사 */
.login-bar-content::before {
  top: 8px;
  left: 8px;
}

/* 오른쪽 상단 나사 */
.login-bar-content::after {
  top: 8px;
  right: 8px;
}

/* 로그인 전 스타일 */
.login-bar-before {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 48px; /* 로그인 후와 동일한 높이 보장 */
  color: #fff;
}

.login-bar-left {
  display: flex;
  align-items: center;
}

.login-welcome {
  font-weight: 700;
}

.login-bar-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.login-bar-form {
  display: flex;
  gap: 8px;
}

.login-bar-input {
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 13px;
  width: 170px;
  background: #fff;
  transition: all 0.3s ease;
}

.login-bar-input:focus {
  outline: none;
  border-color: #5e42ec;
  box-shadow: 0 0 0 2px rgba(94, 66, 236, 0.1);
}

.login-bar-input::placeholder {
  color: #999;
  font-size: 12px;
}

.login-bar-btn {
  background: #3498db;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.login-bar-btn:hover {
  background: #2f85bf;
  transform: translateY(-1px);
}

.signup-bar-btn {
  background: #28a745;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.signup-bar-btn:hover {
  background: #218838;
  transform: translateY(-1px);
}

.login-bar-links {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}

.login-bar-links a {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s ease;
  white-space: nowrap;
}

.login-bar-links a:hover {
  color: #ffc107;
}

.login-bar-links span {
  color: #ccc;
}

/* 로그인 후 스타일 */
.login-bar-after {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 50px; /* 로그인 전과 동일한 높이 보장 */
  gap: 20px;
}

.login-bar-user-info {
  flex: 3.2;
  min-width: 200px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
  gap: 10px;
  border-right: 1px solid #eee;
  padding-right: 20px;
}

.login-bar-balance-info {
  flex: 2.3;
  min-width: 150px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
  gap: 10px;
  border-right: 1px solid #eee;
  padding-right: 20px;
}

.login-bar-user-count {
  flex: 3.5;
  min-width: 180px;
  display: flex;
  flex-direction: column;
  font-size: 14px;
  gap: 5px;
  border-right: 1px solid #eee;
  padding-right: 20px;
}

.login-bar-logout {
  flex: 1;
  min-width: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.user-name-bar,
.balance-display {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.last-login-bar,
.balance-label,
.send-counts-title {
  font-size: 13px;
  color: #fff;
}

.user-name-highlight,
.balance-amount-bar {
  font-weight: 700;
  font-size: 16px;
}

.login-bar-user-action {
  align-self: flex-end;
  display: flex;
  align-items: center;
  gap: 5px;
}

.login-bar-user-action:hover svg,
.login-bar-user-action:hover span {
  transform: translateX(2px);
}

.login-bar-user-action svg {
  transition: all 0.3s ease;
}

.login-bar-user-action span {
  color: #ffc107;
  text-decoration: underline;
  transition: all 0.3s ease;
}

.send-counts {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #e2e2e2;
  border-radius: 4px;
  padding: 8px 10px;
  width: fit-content;
  color: #222;
}

.send-item-inline {
  font-size: 12px;
  white-space: nowrap;
  padding: 4px 8px;
  background: #fff;
  border-radius: 4px;
}

.logout-bar-btn {
  padding: 8px 16px;
  border: 1px solid #f2f2f2;
  border-radius: 6px;
  font-size: 13px;
  color: #f2f2f2;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.logout-bar-btn:hover {
  background: #dc3545;
  color: #fff;
  border: 1px solid #dc3545;
}

/* 전체 너비 이벤트 배너 스타일 */
.event-banner-full {
  width: 100%;
  max-width: none;
}
