


/* ===================================
   Body
   =================================== */
body,
body::before,
body::after,
body *,
body *::before,
body *::after {
  box-sizing: border-box;
}


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

html {
  scroll-behavior: smooth;
}

/*font가 맨 앞 폰트부터 사용하고, 없으면 후순위 폰트들을 사용함.*/

body {
  font: inherit;
  font-family: Pretendard, -apple-system, BlinkMacSystemFont, system-ui, Roboto,
    "Helvetica Neue", "Segoe UI", "Apple SD Gothic Neo", "Noto Sans KR",
    "Malgun Gothic", "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol",
    sans-serif;
  background-color: var(--main-background-color);
    font-display: swap; /* 24.9.24 추가 */
  }

/* Pretendard font-face rules for used weights (400, 600, 800) with font-display: swap; */
@font-face {
  font-family: 'Pretendard';
  font-weight: 400;
  font-style: normal;
  src: url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.6/packages/pretendard/dist/web/static/woff2/Pretendard-Regular.woff2') format('woff2');
  font-display: swap;
}

@font-face {
  font-family: 'Pretendard';
  font-weight: 600;
  font-style: normal;
  src: url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.6/packages/pretendard/dist/web/static/woff2/Pretendard-SemiBold.woff2') format('woff2');
  font-display: swap;
}

@font-face {
  font-family: 'Pretendard';
  font-weight: 800;
  font-style: normal;
  src: url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.6/packages/pretendard/dist/web/static/woff2/Pretendard-ExtraBold.woff2') format('woff2');
  font-display: swap;
}
  
@font-face {
    font-family: "Font Awesome 6 Brands";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/webfonts/fa-brands-400.woff2") format("woff2");
}

@font-face {
    font-family: "Font Awesome 6 Free";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/webfonts/fa-regular-400.woff2") format("woff2");
}

@font-face {
    font-family: "Font Awesome 6 Free";
    font-style: normal;
    font-weight: 900;
    font-display: swap;
    src: url("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/webfonts/fa-solid-900.woff2") format("woff2");
}
  
  
  /* 유연한 미디어 */
   img {
    max-width: 100%;
    max-height: 100%;
  }

video {
  width: 100%;
  height: auto;
}



/* Accessibility Styles */
.a11yHidden,legend {
    overflow: hidden;
    position: absolute !important;
    clip: rect(0, 0, 0, 0);
    clip-path: inset(50%);
    width: 1px;
    height: 1px;
    margin: -1px;
}


.button-default{
    cursor: pointer;
    border-radius: 0.25rem;
    padding: var(--spacing-sm) var(--spacing-base);
    margin: var(--spacing-xs) var(--spacing-xs);
    white-space: nowrap;
    font-size: var(--text-sm);
    background : var(--secondary-color);
    color: var(--white);
    border: 0;
    transition: background-color 0.3s ease-in-out;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.4), 0 3px 5px rgba(0, 0, 0, 0.2);/* 3D 그림자 효과 추가 */
}

.button-default.primary-button{
    background : var(--primary-button-blue-color);
}

.button-default.secondary-button{
    background : var(--secondary-button-grey-color);
}


.button-default.disabled{
    background-color: var(--disabled-color);
    color : #fff;
    cursor : not-allowed;
    box-shadow : none;
}

.button-default[disabled]{
    cursor : not-allowed;
}

/* 클릭 시 눌리는 듯한 효과 */
.button-default:active {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.4), 0 3px 5px rgba(0, 0, 0, 0.2);
    transform: translateY(2px); /* 눌리는 듯한 움직임 */
}

.button-default:not(.disabled):hover{
    background : var(--secondary-hover-color); /*var(--text-hover-pink-color)*/
    transition: background-color 0.3s ease-in-out;
}

.button-default.primary-button:not(.disabled):hover{
    background : var(--primary-button-blue-hover-color);
}

.button-default.secondary-button:not(.disabled):hover{
    background : var(--secondary-button-grey-hover-color);
}

/*select tag input 박스의 기본 스타일*/
.select-input{
    background : white;
    display : inline-block;
    cursor: pointer;
    padding: var(--spacing-2xs) var(--spacing-xl) var(--spacing-2xs) var(--spacing-sm);   /*박스와 박스내 문구 간격*/
    vertical-align: middle;
    border-radius: 0;
    border: thin solid var(--main-item-border-color);
}

.dropdown-select {
    height : 42px;
}


/* 페이징 컨테이너 스타일 */
.pagination {
    display: flex;
    flex-wrap : wrap;  /* 화면 크기가 작아져서 좌우로 넘칠 때, 그냥 두줄로 표현 */
    justify-content: center;
    align-items: center;
    margin-top: var(--spacing-3xl);
    margin-bottom: var(--spacing-3xl);
    font-size : var(--text-sm);
}

/* 페이징 아이템 스타일 */
.pagination-item {
    list-style: none;
    margin: 0 5px;
    display: inline-block;
    text-align: center;
    min-width : 1rem;
}

/* 현재 페이지 스타일 */
.pagination-item.current {
    font-weight: 600;
    background : var(--secondary-color);
    color: white;
    border-radius : 50%;
    padding : var(--spacing-2xs) var(--spacing-xs);
    width: 36px;
    height: 36px;
    line-height: 28px;
    display: flex;
    justify-content: center;
    align-items: center;
}


/* 모달 영역 */
.modal {
  display: none;
  align-items: center;
  justify-content: center;
  position: fixed;
  z-index: 999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
  cursor: pointer;
}

.modal-content {
  width: 50%;
  min-width : 160px;
  max-width : 480px;
  height : 30%;
  background-color: #fff;
  padding: var(--spacing-md);
  overflow-y: auto;
  box-shadow: 0 0 7px 0 rgba(0,0,0,.14);
  border-radius : 6px;


  /* 화면 중앙에 정렬하는 스타일 */
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}


/* 모달이 열릴 때 흐리게 만들 배경 스타일 */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* 투명한 검은 배경 */
    z-index: 100; /* 모달보다 낮은 z-index 값을 지정 */
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: var(--spacing-sm);
  border-bottom: 1px solid #ccc;
}

.modal-body {
  padding-top: var(--spacing-md);
}

.social {
  display: flex;
  justify-content: center;
  align-items: center;
}

.social span {
  margin-right: var(--spacing-md);
}

.social img {
  border-radius: 15%;
  width: 64px;
  height: 64px;
}

/*common.js에서 활용하는*/
.common-modal{
    position: fixed; /*기존에 absolute 였음*/
    top: 50%;
    left : 50%;
    transform : translate(-50%, -50%);
    z-index : 999;
    background : white;
    box-shadow: 0 0 7px 0 rgba(0,0,0,.14);
    border-radius: 6px;
}

.common-modal-close-button{
    background : transparent;
    border : none;
    position : absolute;
    top : 0;
    right : 10px;
    cursor : pointer;
    padding : var(--spacing-sm);
    font-size : var(--text-xl);
    font-weight : 600;
}

/* 드랍다운 메뉴 추가 24.2.12 */

.dropdown{
    position: absolute;
    z-index: 999;
  /*  display: none;*/
    border-radius: 4px;
   /* color: #333;*/
}

.dropdown-relative{
    position: relative;
}

.dropdown .dropdown-menu{
    box-shadow: 0 2px 6px 0 rgba(0,0,0,.2);
    min-width : 160px;
    max-width : 480px;
    list-style: none;
    background: #fff;
    border: 1px solid #ccc;
    overflow: visible;
    padding: 8px 0;
    margin: 0;
    border-radius: 4px;
}


.dropdown .dropdown-menu li label{
    display: block;
    font-size: var(--text-sm);
    /*color: #333;*/
    text-decoration: none;
    padding: 0px 30px 0 20px;
    white-space: nowrap;
    height: 36px;
    line-height: 36px;
}

.dropdown .dropdown-menu li label:hover{
    background-color: #0072bc;
    color: #fff;
    cursor: pointer;
    text-decoration: none;
}


/*label 중에서 for 속성이 없는 것만*/
.dropdown .dropdown-menu li label:not([for]) {
    /*font-family: "Inter",Arial,sans-serif;
    font-style: normal;*/
    font-weight: 600;
    background-color: #f4f4f4;
   /* color: #333;*/
    cursor: default;
}


/* ===================================
   Toast Notification
   =================================== */
#toast-container {
  position: fixed;
  top: 60%; /* 중앙에서 약간 하단 */
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10000;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.toast {
  display: flex;
  align-items: center;
  padding: var(--spacing-base) var(--spacing-xl);
  border-radius: var(--border-radius-sm);
  color: var(--white);
  font-size: 0.95rem;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* Toast Types */
.toast.success {
  background-color: var(--success-color);
}

.toast.error {
  background-color: var(--error-color);
}

.toast.info {
  background-color: var(--info-color);
}


/* 커스텀 라디오 버튼 스타일 */
.custom-radio {
    display: inline-block;
    padding: 8px 16px;
    margin-right: 10px;
    border: 2px solid #ccc;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s, border-color 0.3s;
}

/* 라디오 버튼이 선택된 상태의 스타일 */
input[type="radio"]:checked + .custom-radio {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

/* 호버 시의 스타일 */
 .custom-radio:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color : white;
}


/*드랍다운 메뉴 끝*/



@media (max-width: 767px){

    /* 모바일버젼 페이징 영역 상단과 더 띄움 */
    .pagination {
        margin-top : 60px;
        margin-bottom : 60px;
     }


    /* 모바일 모달창 크기 */
    .modal-content {
        width: calc(100% - 180px);
        min-width : 320px;

    }

    #toast-container {
        top: 50%; /* 모바일에서는 정중앙 */
    }

}

