@charset "UTF-8";

/* ==========================================================================
   SB 툴박스 메인 허브 다크 테마 레이아웃
   ========================================================================== */
.toolbox-container {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    flex: 1;
}

.toolbox-header {
    margin-bottom: 30px;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.08);
    padding-bottom: 18px;
}

.toolbox-header h3 {
    margin: 0;
    font-size: 1.45rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.4px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.toolbox-header p {
    color: #94a3b8;
    font-size: 0.92rem;
    margin: 8px 0 0 0;
    line-height: 1.5;
}

/* 4배열 반응형 그리드 */
.toolbox-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

@media (max-width: 1400px) { .toolbox-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 1024px) { .toolbox-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 650px)  { .toolbox-grid { grid-template-columns: 1fr; } }

/* 다크 도구 카드 */
.tool-card {
    background: #1e293b;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 24px;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    min-height: 230px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.tool-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.45);
    border-color: #6366f1;
}

/* 상단 아이콘 래퍼 */
.tool-icon-wrapper {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: rgba(99, 102, 241, 0.12);
    border: 1px solid rgba(99, 102, 241, 0.25);
    color: #818cf8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin-bottom: 18px;
    transition: all 0.2s ease;
}

.tool-card:hover .tool-icon-wrapper {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    border-color: #6366f1;
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

/* 타이틀 & 설명 */
.tool-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 8px;
    letter-spacing: -0.3px;
}

.tool-desc {
    font-size: 0.88rem;
    color: #94a3b8;
    line-height: 1.55;
    margin-bottom: 20px;
    flex-grow: 1;
}

/* 하단 푸터 (구분선 + 뱃지 + 액션) */
.tool-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px dashed rgba(255, 255, 255, 0.08);
    margin-top: auto;
}

.tool-tag {
    font-size: 0.75rem;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #cbd5e1;
    padding: 4px 10px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.tool-tag.tag-credit {
    background: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.tool-action-icon {
    color: #64748b;
    font-size: 1.25rem;
    transition: all 0.2s ease;
}

.tool-card:hover .tool-action-icon {
    color: #818cf8;
    transform: translateX(4px);
}