/* 모바일 전용 디자인 개선 - 전문가 수준 UX/UI */

@media (max-width: 768px) {
    /* 전체 배경 및 기본 설정 */
    * {
        box-sizing: border-box !important;
    }
    
    body {
        background-color: #f9f5f0 !important;
        font-size: 16px !important;
        line-height: 1.6 !important;
        color: #3e2723 !important;
        padding-bottom: 80px !important;
        overflow-x: hidden !important; /* 가로 스크롤 방지 */
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
    }
    
    /* 컨테이너 패딩 */
    .container {
        padding: 0 16px !important;
        max-width: 100% !important;
        width: 100% !important;
        margin: 0 auto !important;
        overflow-x: hidden !important;
    }
    
    /* 콘텐츠 그리드 완전 재설계 */
    .content-grid {
        display: block !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        gap: 0 !important;
    }
    
    /* 헤더 모바일 최적화 */
    .header {
        background: rgba(255, 255, 255, 0.95) !important;
        backdrop-filter: blur(10px) !important;
        border-bottom: 1px solid rgba(93, 64, 55, 0.1) !important;
        box-shadow: 0 2px 20px rgba(93, 64, 55, 0.1) !important;
    }
    
    .header-content {
        padding: 12px 0 !important;
        position: relative !important;
    }
    
    .logo-container {
        gap: 10px !important;
    }
    
    .logo-icon {
        width: 36px !important;
        height: 36px !important;
    }
    
    .logo-text h1 {
        font-size: 1.4rem !important;
        color: #5d4037 !important;
        font-weight: 700 !important;
        margin: 0 !important;
    }
    
    .logo-text p {
        font-size: 0.75rem !important;
        color: #8d6e63 !important;
        margin: 2px 0 0 0 !important;
        font-weight: 500 !important;
    }
    
    /* 모바일 네비게이션 숨김 */
    .nav {
        display: none !important;
    }
    
    .menu-toggle {
        display: none !important;
    }
    
    /* 브레드크럼 모바일 최적화 */
    .breadcrumb {
        background: #f9f5f0 !important;
        padding: 8px 0 !important;
        border-bottom: 1px solid #e0e0e0 !important;
    }
    
    .breadcrumb-list {
        font-size: 0.85rem !important;
    }
    
    .breadcrumb-list li:not(:last-child)::after {
        margin: 0 6px !important;
        color: #a1887f !important;
    }
    
    /* 섹션 간격 및 제목 */
    .section {
        padding: 48px 0 !important;
        margin-bottom: 0 !important;
        position: relative !important;
        overflow: hidden !important;
    }
    
    .section:nth-child(even) {
        background: linear-gradient(135deg, #fafafa, #f5f5f5) !important;
    }
    
    .section:nth-child(odd) {
        background: #ffffff !important;
    }
    
    .section::before {
        content: '' !important;
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        height: 1px !important;
        background: linear-gradient(90deg, transparent, rgba(141, 110, 99, 0.2), transparent) !important;
    }
    
    .section-title {
        font-size: 1.55rem !important;
        color: #5d4037 !important;
        text-align: center !important;
        margin-bottom: 24px !important;
        font-weight: 800 !important;
        position: relative !important;
        padding: 0 12px !important;
        word-break: keep-all !important;
        line-height: 1.28 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 10px !important;
    }
    
    .section-title i {
        color: #ff9800 !important;
        font-size: 1.4rem !important;
        background: linear-gradient(135deg, #fff3e0, #ffffff) !important;
        padding: 8px !important;
        border-radius: 50% !important;
        box-shadow: 0 2px 8px rgba(255, 152, 0, 0.2) !important;
    }
    
    .section-title::after {
        display: none !important;
    }
    
    /* 카드 디자인 개선 */
    .card {
        background: linear-gradient(135deg, #ffffff, #fefefe) !important;
        border-radius: 16px !important;
        padding: 20px !important;
        margin-bottom: 20px !important;
        box-shadow: 0 4px 18px rgba(93, 64, 55, 0.08) !important;
        border: 1px solid rgba(141, 110, 99, 0.12) !important;
        position: relative !important;
        overflow: hidden !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    
    .card::before {
        content: '' !important;
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        height: 4px !important;
        background: linear-gradient(90deg, #8d6e63, #a1887f, #d7ccc8, #a1887f, #8d6e63) !important;
        border-radius: 20px 20px 0 0 !important;
    }
    
    .card h3 {
        color: #5d4037 !important;
        font-size: 1.2rem !important;
        margin-bottom: 16px !important;
        font-weight: 600 !important;
        display: block !important;
        line-height: 1.4 !important;
        word-break: keep-all !important;
    }
    
    .card h4 {
        color: #6d4c41 !important;
        font-size: 1.1rem !important;
        margin-bottom: 12px !important;
        font-weight: 600 !important;
        line-height: 1.4 !important;
        word-break: keep-all !important;
    }
    
    .card p {
        color: #4e342e !important;
        line-height: 1.58 !important;
        margin: 8px 0 !important;
        font-size: 1rem !important;
        word-break: keep-all !important;
        overflow-wrap: break-word !important;
        hyphens: auto !important;
        text-wrap: balance !important;
    }
    
    .card ul, .card ol {
        padding-left: 0 !important;
        margin-bottom: 20px !important;
        list-style: none !important;
    }
    
    .card li {
        color: #4e342e !important;
        line-height: 1.7 !important;
        margin-bottom: 12px !important;
        font-size: 1rem !important;
        word-break: break-word !important;
        overflow-wrap: break-word !important;
        hyphens: auto !important;
        padding: 12px 16px !important;
        background: rgba(255, 255, 255, 0.7) !important;
        border-radius: 12px !important;
        border-left: 4px solid #d7ccc8 !important;
        position: relative !important;
    }
    
    .card li::before {
        content: '•' !important;
        color: #ff9800 !important;
        font-weight: bold !important;
        position: absolute !important;
        left: 6px !important;
        top: 12px !important;
        font-size: 1.2rem !important;
    }
    
    .card ol li { counter-increment: list-counter !important; }
    
    .card ol {
        counter-reset: list-counter !important;
    }
    
    .card ol li { padding-left: 44px !important; position: relative !important; }
    .card ol li::before {
        content: counter(list-counter) !important;
        background: #ff9800 !important;
        color: #fff !important;
        border-radius: 50% !important;
        width: 28px !important;
        height: 28px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        font-size: 0.9rem !important;
        font-weight: 700 !important;
        position: absolute !important;
        left: 8px !important;
        top: 8px !important;
    }
    
    .card li strong {
        color: #5d4037 !important;
        font-weight: 600 !important;
    }
    
    /* 테이블 완전 재설계 - 카드형 레이아웃 */
    .card table {
        display: none !important; /* 기존 테이블 숨김 */
    }
    
    /* 테이블을 카드형 레이아웃으로 변환 */
    .mobile-table-cards {
        display: flex !important;
        flex-direction: column !important;
        gap: 20px !important;
        margin: 24px 0 !important;
        width: 100% !important;
    }
    
    .mobile-table-card {
        background: linear-gradient(135deg, #ffffff, #fafafa);
        border-radius: 16px;
        padding: 20px;
        box-shadow: 0 4px 16px rgba(93, 64, 55, 0.08);
        border-left: 4px solid #8d6e63;
        position: relative;
        overflow: hidden;
    }
    
    .mobile-table-card::before {
        content: '';
        position: absolute;
        top: 0;
        right: 0;
        width: 60px;
        height: 60px;
        background: linear-gradient(135deg, rgba(255, 152, 0, 0.1), rgba(255, 152, 0, 0.05));
        border-radius: 0 16px 0 60px;
    }
    
    .mobile-table-card h4 {
        color: #5d4037;
        font-size: 1.2rem;
        font-weight: 700;
        margin-bottom: 16px;
        display: flex;
        align-items: center;
        gap: 8px;
    }
    
    .mobile-table-card h4::before { content: '📋'; font-size: 1rem; }
    
    .mobile-table-row {
        display: flex;
        flex-direction: column;
        gap: 12px;
        margin-bottom: 16px;
        padding: 16px;
        background: rgba(255, 255, 255, 0.7);
        border-radius: 12px;
        border: 1px solid rgba(141, 110, 99, 0.1);
    }
    
    .mobile-table-row:last-child {
        margin-bottom: 0;
    }
    
    .mobile-table-field {
        display: flex;
        flex-direction: column;
        gap: 4px;
    }
    
    .mobile-table-label {
        font-size: 0.85rem;
        font-weight: 600;
        color: #8d6e63;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }
    
    .mobile-table-value {
        font-size: 1rem;
        font-weight: 500;
        color: #3e2723;
        line-height: 1.5;
        word-break: break-word;
        overflow-wrap: break-word;
    }
    
    .mobile-table-value strong {
        color: #5d4037;
        font-weight: 700;
    }
    
    /* 스크립트 박스 */
    .script-box {
        background: linear-gradient(135deg, #f8f5f0, #ffffff) !important;
        border: 2px solid #d7ccc8 !important;
        border-radius: 16px !important;
        padding: 24px !important;
        margin: 24px 0 !important;
        box-shadow: 0 4px 16px rgba(93, 64, 55, 0.1) !important;
        position: relative !important;
        overflow: hidden !important;
    }
    
    .script-box::before {
        content: '💬' !important;
        position: absolute !important;
        top: 16px !important;
        right: 16px !important;
        font-size: 1.5rem !important;
        opacity: 0.3 !important;
    }
    
    .script-box p {
        color: #5d4037 !important;
        font-style: italic !important;
        font-weight: 600 !important;
        margin-bottom: 12px !important;
        font-size: 1.05rem !important;
        line-height: 1.6 !important;
        word-break: break-word !important;
        overflow-wrap: break-word !important;
        padding: 8px 12px !important;
        background: rgba(255, 255, 255, 0.8) !important;
        border-radius: 8px !important;
        border-left: 3px solid #ff9800 !important;
    }
    
    .script-box p:last-child {
        margin-bottom: 0 !important;
    }
    
    /* 노트 스타일 */
    .note {
        background: linear-gradient(135deg, #e8f5e8, #f1f8e9);
        border: 2px solid #a5d6a7;
        border-radius: 12px;
        padding: 20px;
        margin: 24px 0;
        color: #2e7d32;
        font-weight: 500;
        box-shadow: 0 3px 12px rgba(46, 125, 50, 0.1);
    }
    
    .note strong {
        color: #1b5e20;
    }
    
    /* 워크플로우 스텝 */
    .workflow-steps {
        margin: 24px 0;
    }
    
    .workflow-step {
        background: #ffffff;
        border-radius: 16px;
        padding: 24px;
        margin-bottom: 20px;
        box-shadow: 0 4px 16px rgba(93, 64, 55, 0.08);
        border-left: 5px solid #a1887f;
        display: flex;
        gap: 16px;
        align-items: flex-start;
    }
    
    .step-number {
        background: linear-gradient(135deg, #8d6e63, #a1887f);
        color: white;
        width: 32px;
        height: 32px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1rem;
        font-weight: bold;
        flex-shrink: 0;
        box-shadow: 0 2px 8px rgba(93, 64, 55, 0.2);
    }
    
    .step-content {
        flex: 1;
    }
    
    .step-content strong {
        color: #5d4037;
        font-size: 1.1rem;
        display: block;
        margin-bottom: 8px;
        font-weight: 600;
    }
    
    .step-content p {
        color: #4e342e;
        line-height: 1.7;
        margin: 0;
    }
    
    /* FAQ 아이템 */
    .faq-item {
        background: #ffffff;
        border-radius: 16px;
        padding: 28px;
        margin-bottom: 20px;
        box-shadow: 0 4px 20px rgba(93, 64, 55, 0.08);
        border-left: 5px solid #bcaaa4;
        transition: all 0.3s ease;
    }
    
    .faq-item:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 24px rgba(93, 64, 55, 0.12);
    }
    
    .faq-item h4 {
        color: #5d4037;
        font-size: 1.3rem;
        margin-bottom: 16px;
        font-weight: 700;
    }
    
    .faq-item p {
        color: #4e342e;
        line-height: 1.8;
        margin: 0;
        font-size: 1.05rem;
    }
    
    /* 레시피 관련 */
    .recipe-grid {
        display: flex;
        flex-direction: column;
        gap: 16px;
        margin: 20px 0;
    }
    
    .recipe-item {
        background: linear-gradient(135deg, #efebe9, #f5f5f5);
        border-radius: 12px;
        padding: 20px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        border-left: 4px solid #8d6e63;
        box-shadow: 0 2px 8px rgba(93, 64, 55, 0.1);
    }
    
    .recipe-label {
        font-weight: 600;
        color: #5d4037;
        font-size: 1rem;
    }
    
    .recipe-value {
        font-weight: 600;
        color: #3e2723;
        font-size: 1rem;
        text-align: right;
    }
    
    .recipe-tip {
        background: linear-gradient(135deg, #fff3e0, #ffffff);
        border-radius: 12px;
        padding: 20px;
        margin: 20px 0;
        border-left: 4px solid #ff8f00;
        box-shadow: 0 2px 8px rgba(255, 143, 0, 0.1);
    }
    
    .recipe-tip strong {
        color: #e65100;
    }
    
    /* 컵 비교 이미지 */
    .fw-latte-compare {
        display: flex;
        flex-direction: column;
        gap: 32px;
        margin: 32px 0;
        align-items: center;
    }
    
    .cup-figure {
        text-align: center;
        max-width: 300px;
        background: #ffffff;
        border-radius: 16px;
        padding: 20px;
        box-shadow: 0 4px 16px rgba(93, 64, 55, 0.1);
    }
    
    .cup-figure figcaption {
        font-size: 1.3rem;
        font-weight: 700;
        color: #5d4037;
        margin-bottom: 16px;
    }
    
    .cup-photo {
        width: 100%;
        height: auto;
        border-radius: 12px;
        margin-bottom: 16px;
    }
    
    .caption-note {
        font-size: 0.9rem;
        color: #6d4c41;
        font-style: italic;
        line-height: 1.6;
    }
    
    /* 히어로 섹션 */
    .hero {
        background: #f9f5f0 !important;
        padding: 56px 0 36px !important;
        text-align: center !important;
    }
    
    .hero-content h2 {
        color: #5d4037 !important;
        font-size: 2.05rem !important;
        line-height: 1.28 !important;
        margin-bottom: 12px !important;
        font-weight: 800 !important;
        word-break: keep-all !important;
        padding: 0 12px !important;
        text-wrap: balance !important;
    }
    
    .hero-content p {
        color: #6d4c41 !important;
        font-size: 0.98rem !important;
        margin-bottom: 8px !important;
        font-weight: 500 !important;
        word-break: keep-all !important;
        padding: 0 12px !important;
        line-height: 1.54 !important;
        text-wrap: balance !important;
    }
    
    .hero-subnote {
        color: #8d6e63 !important;
        font-size: 0.9rem !important;
        margin-bottom: 24px !important;
        padding: 0 16px !important;
    }
    
    .btn-primary {
        background: linear-gradient(135deg, #8d6e63, #a1887f);
        color: white;
        padding: 16px 32px;
        border-radius: 30px;
        text-decoration: none;
        font-weight: 600;
        font-size: 1.1rem;
        display: inline-block;
        box-shadow: 0 4px 16px rgba(93, 64, 55, 0.3);
        transition: all 0.3s ease;
        border: none;
    }
    
    .btn-primary:hover {
        background: linear-gradient(135deg, #6d4c41, #8d6e63);
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(93, 64, 55, 0.4);
    }
}

/* 샷핸드 그리드 완전 재설계 - 모바일 최적화 */
@media (max-width: 768px) {
    .shorthand-grid { display: grid !important; grid-template-columns: 1fr 1fr !important; gap: 10px !important; margin: 16px 0 !important; }
    
    .sh-item { background:#fff !important; border:1px solid #eadfda !important; border-radius:12px !important; padding:14px 10px !important; text-align:center !important; transition:box-shadow .2s ease !important; min-height:72px !important; display:flex !important; flex-direction:column !important; justify-content:center !important; }
    
    .sh-item::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 3px;
        background: linear-gradient(90deg, #8d6e63, #a1887f, #8d6e63);
        border-radius: 16px 16px 0 0;
    }
    
    .sh-item:hover {
        transform: translateY(-2px) !important;
        box-shadow: 0 6px 20px rgba(93, 64, 55, 0.15) !important;
        border-color: #8d6e63 !important;
    }
    
    .sh-key { font-weight:800 !important; color:#5d4037 !important; font-size:1.05rem !important; margin-bottom:4px !important; letter-spacing:.4px !important; }
    
    .sh-desc { font-size:0.86rem !important; color:#6d4c41 !important; font-weight:500 !important; line-height:1.35 !important; word-break:keep-all !important; }
    
    /* 매우 작은 화면에서도 2열 유지 */
    @media (max-width: 480px) {
        .shorthand-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 12px !important; }
        .sh-item { min-height: 64px !important; padding: 14px 10px !important; }
        .sh-key { font-size: 1.02rem !important; }
        .sh-desc { font-size: 0.84rem !important; }
    }
}

/* 플로팅 네비게이션 - 모바일 전용 */
@media (max-width: 768px) {
    .floating-nav {
        position: fixed;
        bottom: 20px;
        left: 50%;
        transform: translateX(-50%);
        z-index: 1000;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        border-radius: 25px;
        padding: 8px 16px;
        box-shadow: 0 8px 32px rgba(93, 64, 55, 0.2);
        border: 1px solid rgba(93, 64, 55, 0.1);
        display: flex;
        gap: 12px;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        max-width: calc(100vw - 40px);
        overflow-x: auto;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    
    .floating-nav::-webkit-scrollbar {
        display: none;
    }
    
    .floating-nav.visible {
        opacity: 1;
        visibility: visible;
    }
    
    .floating-nav-item {
        width: 44px;
        height: 44px;
        background: linear-gradient(135deg, #8d6e63, #a1887f);
        color: white;
        border: none;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        text-decoration: none;
        font-size: 0.9rem;
        box-shadow: 0 2px 8px rgba(93, 64, 55, 0.2);
        transition: all 0.3s ease;
        position: relative;
        flex-shrink: 0;
    }
    
    .floating-nav-item:hover,
    .floating-nav-item:active {
        background: linear-gradient(135deg, #6d4c41, #8d6e63);
        transform: scale(1.1);
        box-shadow: 0 4px 12px rgba(93, 64, 55, 0.3);
    }
    
    .floating-nav-item i {
        font-size: 0.85rem;
    }
    
    .floating-nav-item.active {
        background: linear-gradient(135deg, #ff9800, #ffc107) !important;
        transform: scale(1.2) !important;
        box-shadow: 0 6px 20px rgba(255, 152, 0, 0.4) !important;
    }
    
    /* 터치 디바이스에서 호버 효과 비활성화 */
    @media (hover: none) and (pointer: coarse) {
        .floating-nav-item:hover {
            transform: none;
            background: linear-gradient(135deg, #8d6e63, #a1887f);
            box-shadow: 0 2px 8px rgba(93, 64, 55, 0.2);
        }
        
        .floating-nav-item:active {
            background: linear-gradient(135deg, #6d4c41, #8d6e63);
            transform: scale(0.95);
        }
    }
}

/* 푸터 - 모바일 전용 */
@media (max-width: 768px) {
    .footer {
        background: linear-gradient(135deg, #5d4037, #6d4c41);
        color: white;
        padding: 50px 0 30px;
        margin-top: 60px;
        position: relative;
        overflow: hidden;
    }
    
    .footer::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 4px;
        background: linear-gradient(90deg, #ff9800, #ffc107, #ff9800);
    }
    
    .footer-content {
        display: flex;
        flex-direction: column;
        gap: 32px;
        position: relative;
        z-index: 1;
    }
    
    .footer-info {
        text-align: center;
    }
    
    .footer-info h3 {
        color: #fff;
        font-size: 1.6rem;
        margin-bottom: 16px;
        font-weight: 700;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 12px;
    }
    
    .footer-info h3::before {
        content: '☕';
        font-size: 1.4rem;
    }
    
    .footer-info p {
        color: #d7ccc8;
        line-height: 1.7;
        margin-bottom: 12px;
        font-weight: 400;
        font-size: 1rem;
    }
    
    .footer-links {
        text-align: center;
    }
    
    .footer-links h4 {
        color: #fff;
        font-size: 1.3rem;
        margin-bottom: 20px;
        font-weight: 600;
        position: relative;
        display: inline-block;
    }
    
    .footer-links h4::after {
        content: '';
        position: absolute;
        bottom: -8px;
        left: 50%;
        transform: translateX(-50%);
        width: 40px;
        height: 2px;
        background: #ff9800;
        border-radius: 1px;
    }
    
    .footer-links ul {
        list-style: none;
        padding: 0;
        margin: 0;
        display: flex;
        flex-direction: column;
        gap: 12px;
    }
    
    .footer-links li {
        margin: 0;
    }
    
    .footer-links a {
        color: #d7ccc8;
        text-decoration: none;
        font-weight: 500;
        font-size: 1rem;
        display: inline-flex;
        align-items: center;
        gap: 8px;
        padding: 8px 16px;
        border-radius: 20px;
        background: rgba(255, 255, 255, 0.1);
        transition: all 0.3s ease;
        backdrop-filter: blur(5px);
    }
    
    .footer-links a:hover {
        color: #fff;
        background: rgba(255, 152, 0, 0.2);
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(255, 152, 0, 0.2);
    }
    
    .footer-links a i {
        color: #ff9800;
        font-size: 0.9rem;
    }
    
    .kakao-link {
        text-align: center;
        margin-top: 24px;
    }
    
    .kakao-link a {
        background: linear-gradient(135deg, #ff9800, #ffc107);
        color: #3e2723;
        text-decoration: none;
        font-weight: 700;
        display: inline-flex;
        align-items: center;
        gap: 10px;
        padding: 16px 32px;
        border-radius: 30px;
        transition: all 0.3s ease;
        box-shadow: 0 6px 20px rgba(255, 152, 0, 0.3);
        font-size: 1.1rem;
    }
    
    .kakao-link a:hover {
        background: linear-gradient(135deg, #f57c00, #ff9800);
        transform: translateY(-3px);
        box-shadow: 0 8px 25px rgba(255, 152, 0, 0.4);
    }
    
    .kakao-link a i {
        font-size: 1.2rem;
        color: #3e2723;
    }
    
    .footer-bottom {
        border-top: 1px solid rgba(255, 255, 255, 0.2);
        padding-top: 24px;
        text-align: center;
        color: #bcaaa4;
        font-weight: 400;
        margin-top: 32px;
        font-size: 0.9rem;
        line-height: 1.6;
    }
    
    .footer-bottom p {
        margin: 0;
        opacity: 0.8;
    }
}

/* 매우 작은 화면 최적화 */
@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    
    .card {
        padding: 20px;
    }
    
    .hero-content h2 {
        font-size: 1.9rem;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .shorthand-items {
        grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
        gap: 12px;
    }
    
    .floating-nav {
        bottom: 12px;
        right: 12px;
    }
    
    .floating-nav-item {
        width: 44px;
        height: 44px;
        font-size: 0.9rem;
    }
}
/* 구직
 정보 섹션 모바일 최적화 */
@media (max-width: 768px) {
    .job-scraper {
        margin-top: 24px !important;
    }
    
    .scraper-results {
        background: #ffffff !important;
        border-radius: 12px !important;
        padding: 20px !important;
        margin-top: 20px !important;
        box-shadow: 0 4px 16px rgba(93, 64, 55, 0.1) !important;
        border: 1px solid #e0e0e0 !important;
    }
    
    .job-stats {
        background: linear-gradient(135deg, #e8f5e8, #f1f8e9) !important;
        border: 2px solid #a5d6a7 !important;
        border-radius: 12px !important;
        padding: 16px !important;
        margin-bottom: 20px !important;
        font-size: 0.9rem !important;
        color: #2e7d32 !important;
        font-weight: 600 !important;
        text-align: center !important;
    }
    
    .cache-info {
        background: rgba(255, 255, 255, 0.7) !important;
        border-radius: 8px !important;
        padding: 12px !important;
        margin-top: 12px !important;
        font-size: 0.8rem !important;
        color: #4e342e !important;
        text-align: center !important;
    }
    
    .job-item {
        background: #ffffff !important;
        border-radius: 12px !important;
        padding: 20px !important;
        margin-bottom: 16px !important;
        box-shadow: 0 2px 12px rgba(93, 64, 55, 0.08) !important;
        border: 1px solid #e0e0e0 !important;
        transition: all 0.3s ease !important;
        position: relative !important;
        overflow: hidden !important;
    }
    
    .job-item::before {
        content: '' !important;
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 4px !important;
        height: 100% !important;
        background: linear-gradient(135deg, #8d6e63, #a1887f) !important;
    }
    
    .job-item:hover {
        transform: translateY(-2px) !important;
        box-shadow: 0 6px 20px rgba(93, 64, 55, 0.15) !important;
    }
    
    .job-title {
        display: flex !important;
        flex-direction: column !important;
        gap: 8px !important;
        margin-bottom: 12px !important;
    }
    
    .job-title-text {
        font-size: 1.1rem !important;
        font-weight: 600 !important;
        color: #5d4037 !important;
        line-height: 1.4 !important;
        word-break: keep-all !important;
    }
    
    .badge {
        align-self: flex-start !important;
        padding: 4px 12px !important;
        font-size: 0.75rem !important;
        border-radius: 12px !important;
        font-weight: 600 !important;
        text-transform: uppercase !important;
        letter-spacing: 0.5px !important;
    }
    
    .badge-hojubada {
        background: linear-gradient(135deg, #8d6e63, #6d4c41) !important;
        color: white !important;
    }
    
    .badge-woorimel {
        background: linear-gradient(135deg, #4caf50, #388e3c) !important;
        color: white !important;
    }
    
    .badge-melbsky {
        background: linear-gradient(135deg, #2196f3, #1976d2) !important;
        color: white !important;
    }
    
    .job-meta {
        display: flex !important;
        align-items: center !important;
        gap: 8px !important;
        margin-bottom: 12px !important;
        font-size: 0.9rem !important;
        color: #6d4c41 !important;
    }
    
    .job-meta .date {
        font-weight: 600 !important;
        color: #5d4037 !important;
    }
    
    .job-meta i {
        color: #ff9800 !important;
        font-size: 0.8rem !important;
    }
    
    .job-link {
        display: inline-flex !important;
        align-items: center !important;
        gap: 6px !important;
        color: #1976d2 !important;
        text-decoration: none !important;
        font-size: 0.9rem !important;
        font-weight: 600 !important;
        padding: 8px 16px !important;
        background: rgba(25, 118, 210, 0.1) !important;
        border-radius: 20px !important;
        transition: all 0.3s ease !important;
    }
    
    .job-link:hover {
        background: rgba(25, 118, 210, 0.2) !important;
        transform: translateY(-1px) !important;
    }
    
    .job-link i {
        font-size: 0.8rem !important;
        color: #1976d2 !important;
    }
    
    /* 검색 박스 */
    .search-box {
        margin: 16px 0 20px !important;
    }
    
    .search-input {
        width: 100% !important;
        padding: 14px 16px !important;
        border: 2px solid #e0e0e0 !important;
        border-radius: 25px !important;
        font-size: 1rem !important;
        background: #ffffff !important;
        color: #5d4037 !important;
        transition: all 0.3s ease !important;
    }
    
    .search-input:focus {
        outline: none !important;
        border-color: #8d6e63 !important;
        box-shadow: 0 0 0 3px rgba(141, 110, 99, 0.1) !important;
    }
    
    /* 페이지네이션 */
    .pagination {
        margin-top: 24px !important;
        text-align: center !important;
        display: flex !important;
        justify-content: center !important;
        flex-wrap: wrap !important;
        gap: 8px !important;
    }
    
    .page-btn {
        padding: 10px 16px !important;
        border: 2px solid #e0e0e0 !important;
        background: #ffffff !important;
        color: #5d4037 !important;
        border-radius: 8px !important;
        cursor: pointer !important;
        font-weight: 600 !important;
        transition: all 0.3s ease !important;
        min-width: 44px !important;
    }
    
    .page-btn.active,
    .page-btn:hover {
        background: linear-gradient(135deg, #8d6e63, #a1887f) !important;
        color: white !important;
        border-color: #8d6e63 !important;
        transform: translateY(-1px) !important;
    }
    
    /* 로딩 인디케이터 */
    .coffee-loader {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 12px !important;
        padding: 40px 0 !important;
    }
    
    .coffee-cup {
        width: 32px !important;
        height: 32px !important;
        border: 3px solid #8d6e63 !important;
        border-top: 3px solid transparent !important;
        border-radius: 50% !important;
        animation: spin 1s linear infinite !important;
    }
    
    .coffee-steam {
        width: 8px !important;
        height: 20px !important;
        background: linear-gradient(180deg, rgba(141, 110, 99, 0.6), rgba(141, 110, 99, 0)) !important;
        border-radius: 4px !important;
        animation: steam 1.2s ease-in-out infinite !important;
    }
}

/* 모달 모바일 최적화 */
@media (max-width: 768px) {
    .modal {
        padding: 0 !important;
        align-items: flex-end !important;
    }
    
    .modal-dialog {
        width: 100% !important;
        max-width: none !important;
        max-height: 90vh !important;
        margin: 0 !important;
        border-radius: 20px 20px 0 0 !important;
        animation: modalSlideUp 0.3s ease-out !important;
    }
    
    @keyframes modalSlideUp {
        from {
            opacity: 0;
            transform: translateY(100%);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    .modal-close {
        width: 36px !important;
        height: 36px !important;
        font-size: 20px !important;
        right: 12px !important;
        top: 12px !important;
        background: rgba(93, 64, 55, 0.1) !important;
        border-radius: 50% !important;
        color: #5d4037 !important;
    }
    
    .modal-close:hover {
        background: rgba(93, 64, 55, 0.2) !important;
    }
    
    .modal-body {
        padding: 24px 20px !important;
        max-height: calc(90vh - 60px) !important;
    }
    
    .modal-title {
        font-size: 1.3rem !important;
        margin-bottom: 20px !important;
        padding-right: 40px !important;
        line-height: 1.4 !important;
    }
    
    .modal-content-text {
        font-size: 1rem !important;
        line-height: 1.7 !important;
        padding: 20px !important;
        background: #f9f9f9 !important;
        border-radius: 12px !important;
        max-height: 300px !important;
    }
    
    .modal-section {
        margin-top: 24px !important;
        padding: 20px !important;
        border-radius: 12px !important;
    }
    
    .contact-section {
        background: linear-gradient(135deg, #e8f5e8, #f0f8f0) !important;
        border: 2px solid #4caf50 !important;
    }
    
    .contact-link {
        display: block !important;
        text-align: center !important;
        padding: 12px 20px !important;
        margin: 8px 0 !important;
        background: #4caf50 !important;
        color: white !important;
        border-radius: 25px !important;
        font-weight: 600 !important;
        text-decoration: none !important;
    }
    
    .contact-link:hover {
        background: #45a049 !important;
        transform: translateY(-1px) !important;
    }
}