/*
****************************************************************************************************
****************************************************************************************************
****************************************************************************************************
🌞 라이트 테마 - 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 공통 끝
*/







h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #111827;
    text-align: center;
}

.vote-list-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 2rem 0;
}

.tab-buttons-wrapper {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    animation: fadeSlide 0.7s ease-in-out;
}

.tab-buttons {
    display: flex;
    gap: 0.5rem;
}

.tab-button {
    padding: 0.6rem 1.2rem;
    border: none;
    background-color: #e5e7eb;
    color: #111827;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.tab-button.active,
.tab-button:hover {
    background-color: #3b82f6;
    color: white;
    transform: scale(1.05);
}

.create-vote-form {
    margin-top: 0.5rem;
}

.create-vote-button {
    background-color: #10b981;
    color: white;
    padding: 0.6rem 1.2rem;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s ease;
}

.create-vote-button:hover {
    background-color: #059669;
    transform: scale(1.05);
}

.tab {
    display: none;
}

.tab.active {
    display: block;
}

.vote-options {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(48%, 1fr));
    gap: 1.2rem;
    animation: fadeIn 1s ease;
}

.vote-item {
    background: white;
    border-radius: 12px;
    padding: 1.2rem;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.vote-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.1);
}

.vote-info h3 {
    font-size: 1.2rem;
    margin: 0 0 0.5rem 0;
    color: #1f2937;
}

.vote-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.vote-actions form {
    display: inline;
}

.vote-button,
.result-button {
    padding: 0.5rem 1rem;
    background-color: #3b82f6;
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s ease;
}

.result-button {
    background-color: #6366f1;
}

.vote-button:hover {
    background-color: #2563eb;
    transform: scale(1.05);
}

.result-button:hover {
    background-color: #4f46e5;
    transform: scale(1.05);
}

.vote-item.empty {
    display: none;
}

/*페이징*/
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 2rem;
    gap: 1rem;
}

.pagination-button {
    padding: 0.6rem 1.2rem;
    background-color: #4682B4;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s, transform 0.2s;
}

.pagination-button:hover {
    background-color: #315f7c;
    transform: scale(1.05);
}

.pagination-button.disabled {
    background-color: #ccc;
    color: #888;
    cursor: not-allowed;
    transform: none;
}

.pagination-info {
    font-size: 1rem;
    color: #333;
}

.home-button {
    display: inline-block;
    background-color: #38b2ac;
    color: #fff;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    font-weight: bold;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.home-button:hover {
    background-color: #319795;
    transform: scale(1.05);
}

/* 애니메이션 효과 */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeSlide {
    0% { opacity: 0; transform: translateY(-15px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* ===== 투표/모임 생성용 폼 영역 ===== */

.vote-container {
    max-width: 700px;
    margin: 2rem auto;
    padding: 2rem;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    animation: fadeIn 0.7s ease;
}

.vote-form {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.form-label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.4rem;
    color: #1f2937;
}

.vote-input,
.vote-form input[type="text"],
.vote-form input[type="password"],
.vote-form input[type="datetime-local"],
.vote-form input[type="number"] {
    width: 100%;
    padding: 0.6rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 1rem;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

.vote-input:focus {
    border-color: #3b82f6;
    outline: none;
}

.form-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.vote-form button {
    padding: 0.6rem 1.2rem;
    background-color: #3b82f6;
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.vote-form button:hover {
    background-color: #2563eb;
    transform: translateY(-1px);
}

/* 선택지 추가 영역 조정 */
#optionList li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

#optionList input {
    flex: 1;
}

/* ===== editVote, editMeet 대응용 확장 ===== */

.vote-form .form-control {
    width: 100%;
    padding: 0.6rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 1rem;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

.vote-form .form-control:focus {
    border-color: #3b82f6;
    outline: none;
}

.vote-form button[type="submit"] {
    background-color: #10b981;
}

.vote-form button[type="submit"]:hover {
    background-color: #059669;
}

/* ===== 투표 참여 화면 (vote.html) ===== */
.vote-options-li {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.6rem;
    background-color: #fff;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    margin-bottom: 0.6rem;
    transition: background-color 0.2s;
}

.vote-options-li:hover {
    background-color: #f3f4f6;
}

.vote-options-li input[type="checkbox"],
.vote-options-li input[type="radio"] {
    accent-color: #3b82f6;
    transform: scale(1.2);
}

/* 중복 투표 설명 텍스트 */
.vote-container p {
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

/* ===== 결과 보기 화면 (voteResults.html) ===== */
.table-responsive {
    max-width: 800px;
    margin: 2rem auto;
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    animation: fadeIn 0.7s ease;
}

.styled-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 1rem;
    text-align: left;
}

.styled-table thead {
    background-color: #f3f4f6;
    font-weight: 700;
}

.styled-table th,
.styled-table td {
    padding: 0.8rem 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.styled-table tbody tr:hover {
    background-color: #f9fafb;
}


/* 반응형 */
@media (max-width: 768px) {
    .vote-options {
        grid-template-columns: 1fr;
    }

    .tab-buttons-wrapper {
        flex-direction: column;
        align-items: stretch;
    }

    .vote-actions {
        flex-direction: column;
        align-items: center;
    }

    .vote-actions form {
        width: 100%;
    }

    .vote-button,
    .result-button {
        width: 100%;
        font-size: 1.1rem;
        padding: 0.9rem;
        border-radius: 10px;
        text-align: center;
    }

    .create-vote-button,
    .tab-button {
        width: 100%;
    }
}