/*
****************************************************************************************************
****************************************************************************************************
****************************************************************************************************
🌞 라이트 테마 - main-light.css 공통 시작
header, footer, title, contact
*/

body {
    font-family: 'Pretendard', sans-serif;
    background-color: #f5f5f5;
    color: #222;
    margin: 0;
    padding-top: 60px;
    line-height: 1.7;
}

/* ===== 헤더 ===== */
.binary-header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    color: #4682B4;
    z-index: 9999;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #4682B4;
    text-decoration: none;
    transition: color 0.3s;
}
.site-logo:hover {
    color: #315f7c;
}

/* ===== 네비게이션 ===== */
.nav-links {
    display: flex;
    gap: 1.5rem;
}
.nav-links a {
    color: #333;
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s;
}
.nav-links a:hover {
    color: #4682B4;
}

/* 햄버거 + 테마 버튼 */
.header-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}
.hamburger,
.hamburger::before,
.hamburger::after {
    content: '';
    display: block;
    width: 25px;
    height: 3px;
    background: #4682B4;
    border-radius: 2px;
    transition: all 0.3s ease;
}
.hamburger::before { transform: translateY(-8px); }
.hamburger::after { transform: translateY(5px); }
.nav-toggle.active .hamburger { background: transparent; }
.nav-toggle.active .hamburger::before { transform: rotate(45deg) translate(5px,5px); }
.nav-toggle.active .hamburger::after { transform: rotate(-45deg) translate(5px,-5px); }

.theme-btn {
    background: none;
    border: 1px solid #4682B4;
    color: #4682B4;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    padding: 6px 12px;
    border-radius: 6px;
    transition: background-color 0.3s, color 0.3s;
}
.theme-btn:hover {
    background-color: #4682B4;
    color: #fff;
}

/* ===== 페이지 제목 ===== */
.page-title {
    text-align: center;
    padding: 2.5rem 1rem 2rem;
    background: linear-gradient(135deg, #ffffff, #f0f4f8);
    border-bottom: 1px solid #4682B4;
    margin-bottom: 1rem;
    animation: fadeInDown 0.5s ease-in-out;
}
.page-title h1 {
    font-size: 2.2rem;
    margin: 0;
    color: #4682B4;
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 0.5px;
}
.page-title p {
    font-size: 1.1rem;
    color: #333;
    font-weight: 400;
    margin-top: 0.5rem;
}

/* ===== 페이지 공통 영역 ===== */
.page-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 1rem;
    color: #333;
}
.page-content h1 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: #222;
}
.page-content p {
    font-size: 1rem;
    margin-bottom: 1rem;
}
.contact-email {
    color: #4682B4;
    text-decoration: none;
}
.contact-email:hover {
    color: #315f7c;
}

/* ===== 푸터 ===== */
.site-footer {
    background-color: #f2f2f2;
    color: #666;
    text-align: center;
    font-size: 0.9rem;
    padding: 1.5rem 1rem;
    border-top: 1px solid #ddd;
    margin-top: 4rem;
}
.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}
.footer-right a,
.footer-email,
.contact-email {
    color: #4682B4;
    text-decoration: none;
    margin: 0 0.5rem;
    transition: color 0.2s;
}
.footer-right a:hover,
.footer-email:hover,
.contact-email:hover {
    color: #315f7c;
}


.icon-container {
    margin-top: 20px;
    display: flex;
    gap: 12px;
    justify-content: center;
}

.link-icon {
    width: 42px;
    height: 42px;
    display: inline-block;
    background-size: cover;
    border-radius: 50%;
    transition: transform 0.3s, opacity 0.3s;
    opacity: 0.9;
}

.link-icon:hover {
    transform: scale(1.1);
    opacity: 1;
}

.link-icon.twitter { background-image: url(../img/icon-twitter.png); }
.link-icon.facebook { background-image: url(../img/icon-facebook.png); }
.link-icon.kakao { background-image: url(../img/icon-kakao.png); }

/* ===== 방명록 ===== */
.guestbook {
    max-width: 800px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    padding: 2rem 1rem;
    margin: 0 auto;
}

.guestbook h2 {
    text-align: center;
    color: #4682B4;
    margin-bottom: 1rem;
}

.guestbook-form {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-bottom: 2rem;
}

.guestbook-form input,
.guestbook-form textarea {
    font-size: 1rem;
    padding: 0.6rem 0.8rem;
    border: 1px solid #ccc;
    border-radius: 6px;
    resize: vertical;
}

.guestbook-form textarea {
    height: 100px;
}

.guestbook-submit {
    background-color: #4682B4;
    color: #fff;
    padding: 0.6rem;
    font-weight: bold;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s;
}
.guestbook-submit:hover {
    background-color: #315f7c;
}

/* ===== 댓글 목록 ===== */
.guestbook-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.guestbook-item {
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    position: relative;
}

.guestbook-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.guestbook-name {
    color: #4682B4;
    font-weight: 600;
}

.guestbook-date {
    font-size: 0.85rem;
    color: #999;
}

.guestbook-content {
    margin: 0.5rem 0;
    color: #333;
    white-space: pre-wrap;
    line-height: 1.5;
}

.guestbook-delete {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    background-color: transparent;
    border: 1px solid #ccc;
    color: #999;
    padding: 0.3rem 0.6rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.3s;
}
.guestbook-delete:hover {
    background-color: #ffdddd;
    border-color: #ff9999;
    color: #c00;
}

.guestbook-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
}

.guestbook-pagination button {
    padding: 0.4rem 1rem;
    font-size: 0.95rem;
    border: 1px solid #ccc;
    border-radius: 6px;
    background-color: #f0f0f0;
    cursor: pointer;
}

.guestbook-pagination button:disabled {
    background-color: #e0e0e0;
    cursor: not-allowed;
}

/* ===== 반응형 ===== */
@media (max-width: 768px) {
    .nav-toggle { display: block; }
    .nav-links {
        position: absolute;
        top: 100%;
        left: 0; right: 0;
        background: rgba(255, 255, 255, 0.97);
        flex-direction: column;
        align-items: center;
        padding: 1rem 0;
        gap: 1rem;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }
    .nav-links.open {
        max-height: 500px;
        opacity: 1;
        visibility: visible;
    }
    .nav-links a {
        font-size: 1.1rem;
        padding: 0.5rem 0;
    }
    .theme-btn {
        font-size: 0.95rem;
        padding: 5px 10px;
    }
    .site-footer {
        font-size: 0.85rem;
        padding: 1rem 0.5rem;
    }
    .page-content {
        padding: 1rem 0.5rem;
    }
    .page-content h1 {
        font-size: 1.5rem;
    }
    .page-content p {
        font-size: 0.95rem;
    }

    .guestbook {
        padding: 1rem;
    }

    .guestbook-form input,
    .guestbook-form textarea {
        font-size: 0.95rem;
    }

    .guestbook-submit {
        font-size: 0.95rem;
    }

    .guestbook-delete {
        font-size: 0.75rem;
        padding: 0.25rem 0.5rem;
    }

    .guestbook-pagination {
        gap: 0.5rem;
    }

    .guestbook-pagination button {
        padding: 0.3rem 0.8rem;
        font-size: 0.85rem;
    }
}

/* ===== 애니메이션 ===== */
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

/*
****************************************************************************************************
****************************************************************************************************
****************************************************************************************************
🌞 라이트 테마 - main-light.css 공통 끝
*/






.category-container {
    display: grid;
    grid-template-columns: repeat(5, 1fr); /* PC에서 5개만 한 줄에 */
    gap: 0.75rem;
    padding: 2rem;
    max-width: 1000px;
    margin: auto;
}

.category {
    background: white;
    border-radius: 1rem;
    text-align: center;
    padding: 0.75rem;
    box-shadow: 0 6px 12px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.category:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 15px rgba(0,0,0,0.2);
}

.category img {
    max-width: 100%;
    height: 100px;
    object-fit: cover;
    border-radius: 0.5rem;
    transition: transform 0.3s ease;
}

.category:hover img {
    transform: scale(1.1);
}

.category p {
    margin-top: 0.5rem;
    font-weight: bold;
    color: #ff6b6b;
    text-transform: uppercase;
    letter-spacing: 0.1rem;
}

/* ========== 랜덤 뽑기 4종 박스 (카드형) ========== */
.food-bottom-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    padding: 30px 0;
}

.food-random-box {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    padding: 20px;
    width: 220px;
    max-width: 90%;
    text-align: center;
    box-sizing: border-box;
    transition: transform 0.3s, box-shadow 0.3s;
}

.food-random-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.08);
}

.food-random-box button {
    background: #ff6b6b;
    color: white;
    border: none;
    padding: 0.6rem 1rem;
    border-radius: 2rem;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s, transform 0.3s;
    margin-bottom: 0.5rem;
}

.food-random-box button:hover {
    background: #e25555;
    transform: translateY(-2px);
}

/* 뽑기 결과 */
.random-user-food-result p {
    min-width: 120px;
    text-align: center;
    background: #fff6f0;
    color: #d33;
    padding: 0.8rem 1.2rem;
    border-radius: 1.5rem;
    font-size: 1rem;
    font-weight: bold;
    display: inline-block;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    animation: popUp 0.4s ease;
}

/* ========== 하단 폼 ========== */
.food-bottom-box {
    background: white;
    padding: 1.5rem;
    border-radius: 1rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    width: 300px;
    box-sizing: border-box;
}

.food-form label {
    display: block;
    margin: 0.5rem 0 0.25rem;
    font-weight: bold;
}

.food-form input,
.food-form select {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 0.5rem;
    margin-bottom: 0.75rem;
    transition: border-color 0.3s;
}

.food-form input:focus,
.food-form select:focus {
    border-color: #ff6b6b;
    outline: none;
}

.food-form .button-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.food-form .button-container button {
    background: #ff6b6b;
    color: white;
    border: none;
    padding: 0.5rem 0.8rem;
    border-radius: 1.5rem;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s, transform 0.3s;
}

.food-form .button-container button:hover {
    background: #e25555;
    transform: translateY(-2px);
}

.link-icon.twitter { background-image: url(../img/icon-twitter.png); }
.link-icon.facebook { background-image: url(../img/icon-facebook.png); }
.link-icon.kakao { background-image: url(../img/icon-kakao.png); }

/* ========== 반응형 ========== */

@media (max-width: 768px) {
    .category-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .food-bottom-container {
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
    }

    .food-bottom-box {
        width: 90%;
    }

    .food-random-box {
        width: 90%;
    }
}