/* Main Page Styles */

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: transparent;
    z-index: 1000;
    transition: all 0.3s ease;
    min-width: 320px;
}

.header.scrolled {
    background: white;
    backdrop-filter: blur(10px);
}

.header.at-top {
    background: transparent;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    min-height: 70px;
}

.logo {
    flex: 0 0 auto;
    min-width: 150px;
    max-width: 250px;
}

.logo h1 {
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    color: white;
    margin: 0;
    transition: var(--transition);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
}

.header.scrolled .logo h1 {
    color: var(--primary-color);
}

.nav-menu {
    display: flex;
    gap: clamp(0.5rem, 1vw, 1rem);
    align-items: center;
    flex: 1 1 auto;
    justify-content: center;
    margin: 0 clamp(0.5rem, 1vw, 1rem);
    min-width: 0;
    overflow: hidden;
}

.nav-menu li {
    list-style: none;
    position: relative;
    flex-shrink: 0;
}

/* 우측 버튼 영역 */
.nav-actions {
    display: flex;
    gap: 0.8rem;
    align-items: center;
    flex: 0 0 auto;
}

.nav-actions .btn-tel {
    padding: 0.4rem 0.8rem;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 5px;
    font-weight: 500;
    font-size: 0.9rem;
    transition: var(--transition);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    white-space: nowrap;
}

.header.scrolled .nav-actions .btn-tel {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.nav-actions .btn-register {
    padding: 0.4rem 1rem;
    background: var(--accent-color);
    color: white;
    border-radius: 5px;
    font-weight: 500;
    font-size: 0.9rem;
    transition: var(--transition);
    text-decoration: none;
    white-space: nowrap;
}

.nav-actions .btn-tel:hover,
.nav-actions .btn-register:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.nav-menu a {
    color: white;
    font-weight: 500;
    font-size: clamp(0.85rem, 1.5vw, 0.95rem);
    transition: var(--transition);
    position: relative;
    padding: 8px clamp(8px, 1vw, 12px);
    display: inline-block;
    white-space: nowrap;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: white;
    transition: width 0.3s ease;
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: calc(100% - 10px);
}

.header.scrolled .nav-menu a::after {
    background: var(--primary-color);
}

.nav-menu a.active {
    font-weight: 600;
}

.header.scrolled .nav-menu a {
    color: var(--text-dark);
}

.nav-menu a:hover {
    opacity: 0.9;
}

.header.scrolled .nav-menu a:hover {
    color: var(--primary-color);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    padding: 5px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: white;
    transition: var(--transition);
}

.header.scrolled .mobile-menu-toggle span {
    background: var(--text-dark);
}

/* Main Content */
#main-content {
    margin-top: 0;
    min-height: 100vh;
}

/* Footer */
.footer {
    background: var(--text-dark);
    color: white;
    padding: 3rem 0;
    margin-top: 5rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-info {
    text-align: center;
}

.footer-info .company {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-info .contact-info {
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.8);
}

.footer-info .copyright {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

/* Floating Buttons */
.floating-buttons {
    position: fixed;
    right: 30px;
    bottom: 30px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 999;
}

.floating-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    background: white;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transform: translateX(100px);
    animation: slideInRight 0.5s ease forwards;
}

/* 각 버튼별 고유 색상 */
.floating-btn.btn-tel {
    background: #00c851;
    color: white;
    border-color: #00c851;
}

.floating-btn.btn-tel:hover {
    background: #00a844;
    border-color: #00a844;
    box-shadow: 0 6px 20px rgba(0, 200, 81, 0.3);
}

.floating-btn.btn-kakao {
    background: #FEE500;
    color: #371D1E;
    border-color: #FEE500;
}

.floating-btn.btn-kakao:hover {
    background: #F7D600;
    border-color: #F7D600;
    box-shadow: 0 6px 20px rgba(254, 229, 0, 0.3);
}

.floating-btn.btn-register {
    background: #FF6B6B;
    color: white;
    border-color: #FF6B6B;
}

.floating-btn.btn-register:hover {
    background: #FF5252;
    border-color: #FF5252;
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.3);
}

.floating-btn:nth-child(1) { animation-delay: 0.1s; }
.floating-btn:nth-child(2) { animation-delay: 0.2s; }
.floating-btn:nth-child(3) { animation-delay: 0.3s; }
.floating-btn:nth-child(4) { animation-delay: 0.4s; }

@keyframes slideInRight {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.floating-btn:hover {
    transform: translateX(-5px) scale(1.05);
}

.floating-btn.scroll-top {
    background: #6c757d;
    border-color: #6c757d;
    color: white;
}

.floating-btn.scroll-top:hover {
    background: #5a6268;
    border-color: #5a6268;
    box-shadow: 0 6px 20px rgba(108, 117, 125, 0.3);
}

/* 하단 스크롤 시에만 표시 */
.floating-btn.scroll-top {
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.floating-btn.scroll-top.show {
    opacity: 1;
    visibility: visible;
    animation: slideInRight 0.5s ease forwards;
}

/* 픏세티 툴팁 */
.floating-btn[data-tooltip]:hover::before {
    content: attr(data-tooltip);
    position: absolute;
    right: calc(100% + 10px);
    top: 50%;
    transform: translateY(-50%);
    background: var(--text-dark);
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    animation: fadeIn 0.3s ease forwards;
}

@keyframes fadeIn {
    to { opacity: 1; }
}