@import url("./search.css");
@import url("./auth.css");
@import url("./detail.css");


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    list-style: none;
}

header {
    position: sticky;
    top: 0;
    display: flex;
    gap: 12px; /* 요소 간 간격 축소 */
    justify-content: space-between;
    align-items: center;
    width: 100%;
    min-height: 130px; /* 180px -> 130px, 헤더 전체 높이 축소 */
    padding: 8px 16px; /* 패딩 소폭 축소 */
    background: linear-gradient(135deg, #D2691E, #CD853F);
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    flex-wrap: wrap;
}

.logo {
    width: clamp(400px, 24vw, 380px);  /* 기존 340px,28vw,520px -> 상향 */
    height: clamp(96px, 10vw, 130px); /* 기존 96px,10vw,130px -> 상향 */
    flex-shrink: 0;
}

.logo img{
    width: 100%;
    height: 100%;
    object-fit: contain;
}

nav {
    flex: 1;
    min-width: 300px;
}

ul {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

ul li a{
    display: block;
    font-size: 15px; /* 16px -> 15px */
    font-weight: bold;
    color: #FFF8DC;
    padding: 8px 10px;
    text-align: center;
    transition: color 0.3s ease;
    white-space: nowrap;
}

ul li a:hover{
    color: #FFE4B5;
    text-shadow: 0 0 8px rgba(255, 228, 181, 0.8);
}

header .menus {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

header .menus a {
    display: block;
    min-width: 90px;
    height: 42px;          /* 50px -> 42px */
    line-height: 42px;     /* 50px -> 42px */
    padding: 0 14px;       /* 좌우 패딩 축소 */
    text-align: center;
    background: linear-gradient(145deg, #F4A460, #DEB887);
    color: #8B4513;
    font-weight: bold;
    font-size: 15px;       /* 16px -> 15px */
    border-radius: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    white-space: nowrap;
}

header .menus a:hover {
    background: linear-gradient(145deg, #FF8C00, #FFA500);
    color: #FFF8DC;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

main {
    width: 100%;
    padding: 20px;
    background: linear-gradient(to bottom, #FFF8DC, #F5F5DC);
    min-height: calc(100vh - 200px);
}

.About {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    background: #FFFFFF;
    padding: 40px 20px;
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    border-left: 6px solid #D2691E;
}

.About h2 {
    font-size: clamp(30px, 5vw, 50px);
    margin-bottom: 20px;
    color: #8B4513;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.About p {
    font-size: clamp(16px, 2.5vw, 19px);
    color: #654321;
    line-height: 1.6;
}

footer {
    width: 100%;
    height: 60px;
    background: linear-gradient(135deg, #8B4513, #A0522D);
    position: fixed;
    line-height: 60px;
    bottom: 0;
    text-align: center;
    color: #FFF8DC;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    padding: 0 20px;
}

footer h3 {
    font-size: clamp(12px, 2vw, 16px);
}

/* 태블릿 */
@media screen and (max-width: 768px) {
    header {
        flex-direction: column;
        min-height: auto;
        padding: 12px; /* 정돈 */
        position: fixed !important;
        top: 0;
        left: 0;
        right: 0;
        width: 100%;
        z-index: 1000; /* 겹침 문제 방지 */
    }
    
    /* fixed 헤더만큼 본문 여백 확보 */
    main {
        padding: 15px;
        margin-bottom: 60px;
        padding-top: 140px; /* 헤더 높이에 맞춰 조절 */
    }
    
    .logo {
        width: clamp(260px, 40vw, 360px);
        height: clamp(64px, 10vw, 84px);
    }

    ul li a {
        font-size: 14px;
        padding: 8px 10px;
    }

    header .menus a {
        font-size: 14px;
        min-width: 80px;
        height: 40px;       /* 45px -> 40px */
        line-height: 40px;  /* 45px -> 40px */
        padding: 0 12px;
    }
    
    .About {
        padding: 30px 15px;
    }
}

/* 모바일 */
@media screen and (max-width: 480px) {
    header {
        padding: 10px;
        position: fixed !important;
        top: 0;
        left: 0;
        right: 0;
        width: 100%;
        z-index: 1000;
    }
    
    main {
        padding: 10px;
        padding-top: 300px; /* 메뉴 줄바꿈 시 필요하면 조금 더 키워도 됩니다 */
    }
    
    .logo {
        width: clamp(220px, 70vw, 320px);
        height: clamp(60px, 16vw, 80px);
    }

    ul {
        flex-direction: column;
        gap: 5px;
    }

    ul li a {
        font-size: 13px;
        padding: 6px 8px;
    }

    header .menus a {
        width: 100%;
        font-size: 13px;
        height: 38px;
        line-height: 38px;
        padding: 0 10px;
    }
    
    .About {
        padding: 20px 10px;
        border-left: 4px solid #D2691E;
    }
    
    footer {
        height: 50px;
        line-height: 50px;
    }
}





