/* ==================== 8. 반응형 디자인 ==================== */

/* 태블릿 (768px ~ 1024px) */
@media (max-width: 1024px) {
    .container {
        padding: 0 1.5rem;
    }

    .detail-title {
        font-size: clamp(2rem, 6vw, 3rem);
    }

    .detail-tagline {
        font-size: 1.25rem;
    }
}

/* 모바일 (최대 768px) */
@media (max-width: 768px) {

    /* 섹션 간격 조정 */
    .section {
        padding: 2rem 0;
    }

    .container {
        padding: 0 1rem;
    }

    /* 네비게이션 */
    .navbar {
        padding: 1rem 0;
    }

    .navbar-container {
        padding: 0 1rem;
    }

    .navbar-content {
        padding: 0.5rem 1rem;
    }

    .navbar-logo-text {
        font-size: 1rem;
    }

    .navbar-logo-icon {
        font-size: 1.5rem;
    }

    .navbar-cta {
        padding: 0.4rem 1rem;
        font-size: 0.8rem;
    }

    /* 소프트웨어 그리드 */
    #software-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .software-card {
        padding: 1.5rem;
    }

    .card-title {
        font-size: 1.25rem;
    }

    .card-description {
        font-size: 0.9rem;
    }

    /* 상세 페이지 */
    .detail-content {
        padding-top: 1rem;
    }

    .detail-title {
        font-size: clamp(1.75rem, 8vw, 2.5rem);
        margin-bottom: 0.75rem;
    }

    .detail-tagline {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }

    .detail-description {
        font-size: 1rem;
        line-height: 1.7;
    }

    .detail-description h3,
    .detail-description h4 {
        font-size: 1.25rem;
        margin-top: 2rem;
    }

    .detail-actions {
        flex-direction: column;
        gap: 0.75rem;
    }

    .detail-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .detail-meta {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
        margin-top: 2rem !important;
    }

    .meta-divider {
        display: none;
    }

    .meta-item {
        justify-content: center;
    }

    /* 검색 컨트롤 */
    .search-controls {
        flex-direction: column;
        gap: 1rem;
    }

    #searchInput {
        width: 100%;
    }

    #sortSelect {
        width: 100%;
    }

    /* 버튼 크기 조정 */
    .btn {
        padding: 0.65rem 1.25rem;
        font-size: 0.95rem;
    }

    /* 뱃지 */
    .badge {
        font-size: 0.7rem;
        padding: 0.2rem 0.6rem;
    }
}

/* 작은 모바일 (최대 480px) */
@media (max-width: 480px) {

    /* 타이포그래피 */
    .detail-title {
        font-size: 1.75rem;
        line-height: 1.2;
    }

    .detail-tagline {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .detail-description {
        font-size: 0.95rem;
    }

    /* 카드 */
    .card {
        padding: 1.25rem;
    }

    .software-card {
        padding: 1.25rem;
    }

    /* 버튼 */
    .btn {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }

    /* 네비게이션 */
    .navbar-logo-text {
        font-size: 0.9rem;
    }

    .navbar-cta {
        padding: 0.35rem 0.85rem;
        font-size: 0.75rem;
    }
}

/* 커스텀 커서 모바일에서 숨김 */
@media (hover: none) and (pointer: coarse) {
    .custom-cursor {
        display: none;
    }

    .magnetic-btn {
        transition: transform 0.3s ease;
    }

    .magnetic-btn:active {
        transform: scale(0.95);
    }
}