/**
 * NextBio Website - Floating Buttons Styles
 * 플로팅 버튼 (모든 페이지 공통)
 */

.floating-btn-wrap {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
    justify-content: flex-start;
    position: fixed;
    right: 60px;
    top: calc(60% + 100px);
    transform: translateY(-50%);
    z-index: 1000;
}

.floating-btn-01,
.floating-btn-02,
.floating-btn-brewzen {
    border-radius: 9999px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
    justify-content: center;
    width: 128px;
    height: 128px;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    transition: all 0.3s ease;
    box-sizing: border-box;
}
.floating-btn-01,
.floating-btn-02,
.floating-btn-brewzen {
    background: var(--main, #8dc63f);
}

/* 3번째 버튼: 로고 이미지 (아이콘 대신), 텍스트 위치 조정 */
.floating-btn-brewzen .div2 {
    margin-top: -14px;
}
.floating-btn-brewzen .brewzen-logo {
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    max-width: 72px;
    max-height: 72px;
    object-fit: contain;
    display: block;
}

.floating-btn-01:hover,
.floating-btn-02:hover,
.floating-btn-brewzen:hover {
    background: var(--main, #7ab82e);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(141, 198, 63, 0.3);
}

.floating-btn-01 .union,
.floating-btn-02 .union2 {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    position: relative;
    overflow: visible;
    object-fit: contain;
    display: block;
}

.floating-btn-02 .union2 {
    width: 20px;
    height: 24px;
}

.floating-btn-01 .div2,
.floating-btn-02 .div2,
.floating-btn-brewzen .div2 {
    color: var(--fff, #ffffff);
    text-align: center;
    font-family: var(--p-16-sb-font-family, "SUIT", sans-serif);
    font-size: var(--p-16-sb-font-size, 16px);
    line-height: var(--p-16-sb-line-height, 24px);
    font-weight: var(--p-16-sb-font-weight, 600);
    position: relative;
    white-space: nowrap;
    letter-spacing: -0.3px;
}

.floating-btn-top {
    background: #ffffff;
    border: none;
    border-radius: 12px;
    width: 56px;
    height: 56px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #808284;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.floating-btn-top:hover {
    background: #f5f5f5;
    color: #555555;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.floating-btn-top .arrow {
    width: 24px;
    height: 24px;
    transition: transform 0.3s ease;
    transform: rotate(180deg);
}

.floating-btn-wrap.past-half .floating-btn-top .arrow {
    transform: rotate(0deg);
}

/* 반응형 */
@media (max-width: 1024px) {
    .floating-btn-wrap {
        right: 40px;
    }
    
    .floating-btn-01,
    .floating-btn-02,
    .floating-btn-brewzen {
        width: 100px;
        height: 100px;
        padding: 16px 18px;
        gap: 8px;
    }
    
    .floating-btn-brewzen .brewzen-logo {
        width: 52px;
        height: 52px;
        max-width: 56px;
        max-height: 56px;
    }
    
    .floating-btn-01 .union,
    .floating-btn-02 .union2 {
        width: 20px;
        height: 20px;
    }
    
    .floating-btn-02 .union2 {
        width: 18px;
        height: 20px;
    }
    
    .floating-btn-01 .div2,
    .floating-btn-02 .div2,
    .floating-btn-brewzen .div2 {
        font-size: 12px;
        line-height: 1.2;
    }
    
    .floating-btn-top {
        width: 48px;
        height: 48px;
    }
    
    .floating-btn-top .arrow {
        width: 20px;
        height: 20px;
    }
}

@media (max-width: 768px) {
    .floating-btn-wrap {
        right: 20px;
        bottom: 100px;
        top: auto;
        transform: none;
        gap: 8px;
    }
    
    /* 모바일: 브로슈어 다운로드 버튼 숨김 */
    .floating-btn-02 {
        display: none !important;
    }
    
    .floating-btn-01,
    .floating-btn-02,
    .floating-btn-brewzen {
        width: 80px;
        height: 80px;
        padding: 12px 14px;
        gap: 6px;
    }

    /* 모바일: 브루젠 로고와 텍스트 간 여백 확보 */
    .floating-btn-brewzen {
        gap: 10px;
    }
    .floating-btn-brewzen .div2 {
        margin-top: -4px;
    }
    
    .floating-btn-brewzen .brewzen-logo {
        width: 40px;
        height: 40px;
        max-width: 44px;
        max-height: 44px;
    }
    
    .floating-btn-01 .union,
    .floating-btn-02 .union2 {
        width: 18px;
        height: 18px;
    }
    
    .floating-btn-02 .union2 {
        width: 16px;
        height: 18px;
    }
    
    .floating-btn-01 .div2,
    .floating-btn-02 .div2,
    .floating-btn-brewzen .div2 {
        font-size: 11px;
        line-height: 1.2;
    }
    
    .floating-btn-top {
        width: 44px;
        height: 44px;
    }
    
    .floating-btn-top .arrow {
        width: 18px;
        height: 18px;
    }
}
