/* ========================================
   기본 설정
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden;
}



/* ========================================
   헤더 카카오톡 버튼
   ======================================== */
.header-kakao-btn {
    position: absolute;
    right: 30px;
    top: 150px;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background-color: #FEE500;
    color: #3C1E1E;
    border-radius: 20px;
    text-decoration: none;
    font-size: 14px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.header-kakao-btn:hover {
    background-color: #FDD835;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: scale(1.05);
}

.header-kakao-btn svg {
    width: 20px;
    height: 20px;
}


/* ========================================
   네비게이션 메뉴
   ======================================== */
.메뉴2 {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    margin-top: 10px;
}

.boxtext {
    display: flex;
    justify-content: center;
    gap: clamp(15px, 3vw, 40px);
    margin-top: 10px;
    font-size: clamp(14px, 1.8vw, 16px);
    font-weight: bold;
    color: #333;
    flex-wrap: wrap;
    padding: 0 10px;
}

.boxtext a {
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
}

.boxtext a:hover {
    color: #666;
    transform: translateY(-2px);
}

.boxtext a:visited {
    color: #333;
}

.line {
    width: 100vw;
    height: 2px;
    background-color: black;
}

.top-line {
    opacity: 0.1;
}

.bottom-line {
    margin-top: 10px;
    opacity: 0.05;
}


/* ========================================
   견적문의 섹션
   ======================================== */
.contact-section {
    max-width: 1200px;
    margin: 80px auto;
    padding: 0 20px;
}

.contact-line {
    width: 2px;
    height: 50px;
    background-color: #333;
    margin: 0 auto 20px;
}

.contact-title {
    font-size: 2.5rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
    text-align: center;
}

.contact-subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 60px;
}


/* ========================================
   게시판 테이블
   ======================================== */
.board-container {
    width: 100%;
}

.board-table {
    width: 100%;
    border-collapse: collapse;
    border-top: 2px solid #333;
    margin-bottom: 20px;
}

.board-table th {
    padding: 15px;
    background-color: #f8f8f8;
    border-bottom: 1px solid #ddd;
    text-align: center;
}

.board-table td {
    padding: 15px;
    text-align: center;
    border-bottom: 1px solid #eee;
}

.board-table tbody tr:hover {
    background-color: #f9f9f9;
    cursor: pointer;
}


/* ========================================
   버튼 스타일
   ======================================== */
.board-footer {
    text-align: right;
    margin-bottom: 20px;
}

.write-btn {
    padding: 10px 30px;
    background-color: #333;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
}

.write-btn:hover {
    background-color: #555;
}

.admin-btn {
    padding: 10px 30px;
    background-color: #dc3545;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-left: 10px;
}

.admin-btn:hover {
    background-color: #c82333;
}

.delete-btn {
    padding: 5px 15px;
    background-color: #dc3545;
    color: white;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    font-size: 12px;
}

.delete-btn:hover {
    background-color: #c82333;
}


/* ========================================
   페이지네이션
   ======================================== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin: 40px auto;
    padding: 20px 0;
    flex-wrap: wrap;
    max-width: 600px;
}

.page-btn {
    padding: 10px 16px;
    min-width: 45px;
    height: 45px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    color: #495057;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-btn:hover {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-color: #adb5bd;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.page-btn.active {
    background: linear-gradient(135deg, #495057 0%, #343a40 100%);
    color: white;
    border-color: #343a40;
    box-shadow: 0 4px 12px rgba(52, 58, 64, 0.3);
    transform: translateY(-1px);
}

.page-btn.active:hover {
    background: linear-gradient(135deg, #343a40 0%, #212529 100%);
    transform: translateY(-2px);
}

.page-dots {
    padding: 0 10px;
    color: #adb5bd;
    font-size: 18px;
    font-weight: bold;
}


/* ========================================
   검색 영역
   ======================================== */
.search-container {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.search-select, .search-input {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.search-input {
    width: 300px;
}

.search-btn {
    padding: 10px 30px;
    background-color: #555;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.search-btn:hover {
    background-color: #333;
}


/* ========================================
   글쓰기 폼
   ======================================== */
.write-table {
    width: 100%;
    border-collapse: collapse;
    border-top: 2px solid #333;
    margin-bottom: 20px;
}

.write-table th {
    width: 150px;
    padding: 15px;
    background-color: #f8f8f8;
    border-bottom: 1px solid #ddd;
    text-align: left;
}

.write-table td {
    padding: 15px;
    border-bottom: 1px solid #ddd;
}

.write-table input[type="text"],
.write-table input[type="password"],
.write-table textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.write-table textarea {
    min-height: 300px;
    resize: vertical;
    font-family: inherit;
}


/* ========================================
   버튼 그룹
   ======================================== */
.button-group {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 30px;
}

.button-group button {
    padding: 12px 40px;
    font-size: 16px;
    font-weight: bold;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
}

.cancel-btn {
    background-color: #6c757d;
    color: white;
}

.cancel-btn:hover {
    background-color: #5a6268;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.submit-btn {
    background-color: #dc3545;
    color: white;
}

.submit-btn:hover {
    background-color: #c82333;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(220,53,69,0.3);
}

.edit-btn {
    background-color: #007bff;
    color: white;
}

.edit-btn:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,123,255,0.3);
}

.button-group .submit-btn[type="submit"] {
    background-color: #28a745;
}

.button-group .submit-btn[type="submit"]:hover {
    background-color: #218838;
}


/* ========================================
   푸터
   ======================================== */
.footer {
    width: 100%;
    background-color: #f5f5f5;
    border-top: 1px solid #ddd;
    padding: 40px 0;
    margin-top: 60px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 30px;
    border-bottom: 1px solid #ddd;
    margin-bottom: 30px;
}

.footer-contact h3 {
    font-size: 24px;
    margin: 0 0 8px 0;
    font-weight: bold;
}

.footer-contact .phone {
    color: #ff6b6b;
    font-weight: bold;
}

.footer-contact p {
    margin: 0;
    font-size: 14px;
    color: #666;
}

.footer-buttons {
    display: flex;
    gap: 10px;
}

.kakao-btn, .faq-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
}

.kakao-btn {
    background-color: #fee500;
    color: #000;
}

.kakao-btn:hover {
    background-color: #fdd835;
}

.faq-btn {
    background-color: white;
    border: 1px solid #ddd;
    color: #333;
}

.faq-btn:hover {
    background-color: #f8f8f8;
}

.footer-menu {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    padding: 30px 0;
    border-bottom: 1px solid #ddd;
    margin-bottom: 20px;
}

.menu-column {
    flex: 1;
    min-width: 0;
}

.menu-column h4 {
    font-size: 13px;
    font-weight: bold;
    margin: 0 0 15px 0;
    color: #333;
    line-height: 1.4;
}

.menu-column a {
    display: block;
    font-size: 12px;
    color: #666;
    text-decoration: none;
    margin-bottom: 10px;
    transition: color 0.3s;
    line-height: 1.4;
}

.menu-column a:hover {
    color: #000;
}

.footer-info {
    padding-top: 20px;
}

.info-links {
    margin-bottom: 15px;
}

.info-links a {
    color: #333;
    text-decoration: none;
    font-size: 13px;
    font-weight: bold;
    transition: color 0.3s;
}

.info-links a:hover {
    color: #000;
    text-decoration: underline;
}

.footer-info p {
    font-size: 12px;
    color: #666;
    line-height: 1.8;
    margin: 8px 0;
}

.copyright {
    margin-top: 20px !important;
    padding-top: 20px;
    border-top: 1px solid #ddd;
}


/* ========================================
   장바구니 아이콘
   ======================================== */
.wishlist-link {
    position: fixed;
    right: 40px;
    top: 40px;
    z-index: 1000;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wishlist-icon {
    font-size: 24px;
    transition: transform 0.3s;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.wishlist-link:hover .wishlist-icon {
    transform: scale(1.10);
}

.wishlist-count {
    position: absolute;
    top: -5px;
    right: -10px;
    background-color: #e74c3c;
    color: white;
    font-size: 13px;
    font-weight: bold;
    padding: 4px 8px;
    border-radius: 50%;
    min-width: 22px;
    height: 22px;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}


/* ========================================
   플로팅 카카오톡 버튼
   ======================================== */
.floating-kakao {
    position: fixed;
    bottom: 150px;
    right: 30px;
    width: 70px;
    height: 70px;
    background-color: #FEE500;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    z-index: 9998;
    cursor: pointer;
}

.floating-kakao:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
    background-color: #FDD835;
}

.floating-kakao-icon {
    width: 40px;
    height: 40px;
    margin-bottom: 2px;
}

.floating-kakao-text {
    font-size: 11px;
    font-weight: bold;
    color: #3C1E1E;
}

.floating-kakao::before {
    content: '💬 궁금한 점이 있으신가요?';
    position: absolute;
    right: 80px;
    background-color: white;
    color: #333;
    padding: 10px 15px;
    border-radius: 20px;
    font-size: 13px;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.floating-kakao:hover::before {
    opacity: 1;
    visibility: visible;
    right: 90px;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(254, 229, 0, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(254, 229, 0, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(254, 229, 0, 0);
    }
}

.floating-kakao.pulse {
    animation: pulse 2s infinite;
}


/* ========================================
   반응형 디자인 - 태블릿
   ======================================== */
@media (max-width: 1024px) {
    .footer-menu {
        flex-wrap: wrap;
        gap: 30px 20px;
    }
    
    .menu-column {
        flex: 0 0 calc(33.333% - 14px);
    }
}


/* ========================================
   반응형 디자인 - 모바일 (심플 버전)
   ======================================== */
@media (max-width: 768px) {
    /* 헤더 */
    .header-kakao-btn {
        right: 15px;
        padding: 6px 12px;
        font-size: 12px;
    }
    
    .header-kakao-btn svg {
        width: 16px;
        height: 16px;
    }
    
    /* 타이틀 */
    .contact-title {
        font-size: 2rem;
    }
    
    .contact-subtitle {
        font-size: 14px;
        margin-bottom: 40px;
    }
    
    /* 컨테이너 */
    .board-container {
        padding: 0;
    }
    
    /* 테이블 숨기기 */
    .board-table {
        border: 0;
    }
    
    .board-table thead {
        display: none;
    }
    
    .board-table tbody {
        display: block;
    }
    
    /* 모바일에서 불필요한 열 숨기기 */
    .board-table td:nth-child(1),  /* 번호 */
    .board-table td:nth-child(3),  /* 작성자 */
    .board-table td:nth-child(5)   /* 조회수 */
    {
        display: none;
    }
    
    /* 각 행을 깔끔한 리스트 아이템으로 */
    .board-table tr {
        display: flex;
        flex-direction: column;
        padding: 15px;
        margin-bottom: 10px;
        border: 1px solid #e0e0e0;
        border-radius: 8px;
        background-color: white;
        box-shadow: 0 1px 3px rgba(0,0,0,0.08);
        transition: all 0.2s;
    }
    
    .board-table tr:hover {
        box-shadow: 0 2px 6px rgba(0,0,0,0.12);
        border-color: #ccc;
    }
    
    /* 제목 스타일 */
    .board-table td:nth-child(2) {
        display: block;
        text-align: left !important;
        font-size: 15px;
        font-weight: 500;
        color: #222;
        padding: 0 0 8px 0;
        border-bottom: none;
        line-height: 1.5;
        word-break: keep-all;
    }
    
    /* 날짜 스타일 */
    .board-table td:nth-child(4) {
        display: block;
        text-align: left !important;
        font-size: 12px;
        color: #999;
        padding: 0;
        border-bottom: none;
    }
    
    /* 관리자 삭제 버튼 (기본 숨김) */
    .board-table td:nth-child(6) {
        display: none;
    }
    
    /* 검색 영역 */
    .search-container {
        flex-wrap: wrap;
        padding: 20px 0;
        gap: 8px;
    }
    
    .search-select {
        width: 70px;
        font-size: 14px;
        padding: 10px 8px;
    }
    
    .search-input {
        flex: 1;
        min-width: 0;
        width: auto;
        font-size: 14px;
        padding: 10px;
    }
    
    .search-btn {
        padding: 10px 20px;
        font-size: 14px;
        white-space: nowrap;
    }
    
    /* 페이지네이션 모바일 */
    .pagination {
        gap: 8px;
        margin: 30px auto;
        padding: 15px 10px;
    }
    
    .page-btn {
        padding: 9px 13px;
        min-width: 40px;
        height: 40px;
        font-size: 14px;
        border-radius: 7px;
    }
    
    .page-dots {
        padding: 0 6px;
        font-size: 16px;
    }
    
    /* 버튼 */
    .write-btn {
        padding: 10px 25px;
        font-size: 14px;
    }
    
    .delete-btn {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    .board-footer {
        padding: 15px 0;
    }
    
    /* 글쓰기 폼 */
    .write-table th {
        width: 100px;
        font-size: 14px;
        padding: 12px;
    }
    
    .write-table td {
        padding: 12px;
    }
    
    .write-table input[type="text"],
    .write-table input[type="password"],
    .write-table textarea {
        padding: 8px;
        font-size: 14px;
    }
    
    .write-table textarea {
        min-height: 200px;
    }
    
    /* 버튼 그룹 */
    .button-group {
        flex-direction: column;
        gap: 8px;
    }
    
    .button-group button {
        width: 100%;
        padding: 10px;
        font-size: 14px;
    }
    
    /* 푸터 */
    .footer-top {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    
    .footer-menu {
        display: none;
    }
    
    .footer-buttons {
        width: 100%;
    }
    
    .kakao-btn, .faq-btn {
        flex: 1;
    }
    
    /* 장바구니 */
    .wishlist-link {
        right: 20px;
        top: 20px;
    }
    
    .wishlist-icon {
        font-size: 30px;
    }
    
    .wishlist-count {
        font-size: 11px;
        padding: 3px 6px;
        min-width: 20px;
        height: 20px;
    }
    
    /* 플로팅 버튼 */
    .floating-kakao {
        width: 60px;
        height: 60px;
        bottom: 90px;
        right: 20px;
    }
    
    .floating-kakao-icon {
        width: 35px;
        height: 35px;
    }
    
    .floating-kakao-text {
        font-size: 10px;
    }
    
    .floating-kakao::before {
        display: none;
    }
}


/* ========================================
   반응형 디자인 - 소형 모바일
   ======================================== */
@media (max-width: 480px) {
    .contact-title {
        font-size: 1.8rem;
    }
    
    .contact-subtitle {
        font-size: 13px;
    }
    
    .board-table tr {
        padding: 12px;
        margin-bottom: 8px;
    }
    
    .board-table td:nth-child(2) {
        font-size: 14px;
        padding-bottom: 6px;
    }
    
    .board-table td:nth-child(4) {
        font-size: 11px;
    }
    
    .search-select {
        width: 65px;
        font-size: 13px;
        padding: 8px 6px;
    }
    
    .search-input {
        font-size: 13px;
        padding: 8px;
    }
    
    .search-btn {
        padding: 8px 16px;
        font-size: 13px;
    }
    
    /* 페이지네이션 소형 모바일 */
    .pagination {
        gap: 6px;
        margin: 25px auto;
        padding: 12px 8px;
    }
    
    .page-btn {
        padding: 7px 10px;
        min-width: 36px;
        height: 36px;
        font-size: 13px;
        border-radius: 6px;
    }
    
    .page-dots {
        padding: 0 4px;
        font-size: 14px;
    }
    
    .write-btn {
        padding: 8px 20px;
        font-size: 13px;
    }
    
    .write-table th {
        width: 85px;
        font-size: 13px;
        padding: 10px 8px;
    }
    
    .write-table td {
        padding: 10px 8px;
    }
    
    .write-table input,
    .write-table textarea {
        font-size: 13px;
        padding: 7px;
    }
    
    .write-table textarea {
        min-height: 180px;
    }
    
    .button-group button {
        padding: 9px;
        font-size: 13px;
    }
    
    .delete-btn {
        padding: 5px 10px;
        font-size: 11px;
    }
}