/* ==============================================
   Index (메인 페이지) 전용 스타일
   - 다른 페이지에 영향 없이 독립 관리
   ============================================== */

/* 메인 페이지 컨테이너 너비 확장 */
.page-index header.masthead > .container,
.page-index .page-section > .container,
.page-index .page-section.bg-light > .container {
    max-width: 1400px;
    width: 100%;
    padding-left: 1rem;
    padding-right: 1rem;
}

/* ── Masthead 버튼 ── */
.masthead-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 32px;
    background: linear-gradient(145deg, #ffffff, #f5f5f5);
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
    box-shadow:
        0 4px 6px rgba(0, 0, 0, 0.07),
        0 2px 4px rgba(0, 0, 0, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    position: relative;
}

.masthead-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(255,255,255,0.5) 0%, rgba(255,255,255,0) 50%);
    pointer-events: none;
}

.masthead-btn:hover {
    transform: translateY(-5px);
    box-shadow:
        0 8px 16px rgba(0, 0, 0, 0.12),
        0 4px 8px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    border-color: #3F68B5;
    color: #333;
    text-decoration: none;
}

.masthead-btn-icon {
    font-size: 2rem;
    line-height: 1;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
    transition: transform 0.3s ease;
}

.masthead-btn:hover .masthead-btn-icon {
    transform: scale(1.1);
}

.masthead-btn-text {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.masthead-btn-text strong {
    font-size: 1.1rem;
    font-weight: 700;
    color: #333;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

.masthead-btn-text small {
    font-size: 0.8rem;
    color: #666;
    margin-top: 2px;
}

/* ── 앱 카드 ── */
.app-card {
    background: linear-gradient(145deg, #ffffff, #f5f5f5);
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 10px;
    margin: 5px;
    text-align: center;
    transition: all 0.3s ease;
    height: 185px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow:
        0 4px 6px rgba(0, 0, 0, 0.07),
        0 2px 4px rgba(0, 0, 0, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    position: relative;
}

.app-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(255,255,255,0.5) 0%, rgba(255,255,255,0) 50%);
    pointer-events: none;
}

.app-card:hover {
    transform: translateY(-5px);
    box-shadow:
        0 8px 16px rgba(0, 0, 0, 0.12),
        0 4px 8px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    border-color: #d0d0d0;
}

.app-card img {
    width: 50px;
    height: 50px;
    margin-bottom: 10px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
    transition: transform 0.3s ease;
}

.app-card:hover img {
    transform: scale(1.05);
}

.app-card h5 {
    font-size: 16px;
    font-weight: bold;
    margin: 8px 0 5px 0;
    color: #333;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

.app-card p {
    font-size: 12px;
    color: #666;
    margin: 0;
    line-height: 1.4;
}

/* ── 반응형 ── */
@media (max-width: 991.98px) {
    .page-index header.masthead > .container,
    .page-index .page-section > .container,
    .page-index .page-section.bg-light > .container {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    .masthead-btn {
        padding: 12px 24px;
    }
}

@media (max-width: 575.98px) {
    .masthead-btn {
        width: 100%;
        justify-content: center;
    }

    .masthead-btn-text strong {
        font-size: 1rem;
    }

    .app-card {
        height: 160px;
    }

    .app-card img {
        width: 40px;
        height: 40px;
    }

    .app-card h5 {
        font-size: 14px;
    }

    .app-card p {
        font-size: 11px;
    }
}
