/* 브랜드스토리 모바일 전용 CSS */

/* 모바일 버전 기본 설정 */
.brandstory-mobile-content {
    display: none;
    width: 100%;
    min-height: 100vh;
    background: #fff;
    overflow-x: hidden;
    padding-top: env(safe-area-inset-top);
    padding-bottom: env(safe-area-inset-bottom);
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
}

/* 모바일 섹션 기본 스타일 */
.mobile-section {
    width: 100%;
    min-height: 100vh;
    padding: 60px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.mobile-section-content {
    width: 100%;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* 모바일 섹션별 배경색 - 단순한 단색으로 변경 */
.mobile-section-1 { 
    background: #9b6e4c;
}

.mobile-section-2 { 
    background: #8a5f3e;
}

.mobile-section-3 { 
    background: #7b5a3e;
}

.mobile-section-4 { 
    background: #6d4f36;
}

.mobile-section-5 { 
    background: #5f4530;
}

.mobile-section-6 { 
    background: #6b4a2e;
}

/* 모바일 이미지 스타일 */
.mobile-section-image {
    width: 100%;
    text-align: center;
}

.mobile-section-image img {
    width: 100%;
    max-width: 300px;
    height: 200px;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    transition: transform 0.3s ease;
}

.mobile-section-image img:hover {
    transform: scale(1.05);
}

/* 모바일 텍스트 스타일 */
.mobile-section-text {
    text-align: center;
}

.mobile-section-counter {
    font-size: 2.5rem;
    font-weight: 900;
    color: #d4a574;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.mobile-section-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #f8f6f2;
    margin-bottom: 1rem;
    line-height: 1.3;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.mobile-section-subtitle {
    font-size: 1.1rem;
    color: #d4a574;
    margin-bottom: 1.5rem;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.mobile-section-description {
    font-size: 1rem;
    color: #f8f6f2;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

/* 모바일 하이라이트 스타일 */
.mobile-section-highlights {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-top: 1.5rem;
}

.mobile-highlight-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem;
    background: rgba(212, 165, 116, 0.1);
    border-radius: 8px;
    border-left: 3px solid #d4a574;
    transition: all 0.3s ease;
}

.mobile-highlight-item:hover {
    background: rgba(212, 165, 116, 0.2);
    transform: translateX(5px);
}

.mobile-highlight-item i {
    font-size: 1.1rem;
    color: #d4a574;
    width: 20px;
}

.mobile-highlight-item span {
    font-weight: 500;
    color: #f8f6f2;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
    font-size: 0.95rem;
}

/* 모바일 타임라인 스타일 */
.mobile-section-timeline {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1.5rem;
}

.mobile-timeline-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.8rem;
    background: rgba(212, 165, 116, 0.1);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.mobile-timeline-item:hover {
    background: rgba(212, 165, 116, 0.2);
    transform: translateX(5px);
}

.mobile-timeline-year {
    background: #d4a574;
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 15px;
    font-weight: 700;
    font-size: 0.8rem;
    min-width: 60px;
    text-align: center;
}

.mobile-timeline-content {
    font-weight: 500;
    color: #f8f6f2;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
    font-size: 0.9rem;
}

/* 모바일 비교 스타일 - backdrop-filter 제거 */
.mobile-section-comparison {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    margin-top: 1.5rem;
}

.mobile-comparison-item {
    flex: 1;
    padding: 1rem;
    border-radius: 12px;
    border: 2px solid;
    background: rgba(255, 255, 255, 0.1);
    min-width: 0; /* flex 아이템이 줄어들 수 있도록 */
}

.mobile-comparison-item.negative {
    background: rgba(220, 53, 69, 0.15);
    border-color: rgba(220, 53, 69, 0.4);
}

.mobile-comparison-item.positive {
    background: rgba(40, 167, 69, 0.15);
    border-color: rgba(40, 167, 69, 0.4);
}

.mobile-comparison-item h4 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.8rem;
    font-size: 1rem;
    font-weight: 600;
}

.mobile-comparison-item.negative h4 {
    color: #ff6b6b;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.mobile-comparison-item.positive h4 {
    color: #51cf66;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.mobile-comparison-item ul {
    list-style: none;
    padding: 0;
}

.mobile-comparison-item li {
    padding: 0.4rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    font-size: 0.85rem;
    color: #f8f6f2;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.mobile-comparison-item li:last-child {
    border-bottom: none;
}

/* 모바일 스토리 스타일 - backdrop-filter 제거 */
.mobile-story-section {
    margin-bottom: 2rem;
}

.mobile-story-quote {
    position: relative;
    background: rgba(255, 255, 255, 0.15);
    padding: 1.5rem;
    border-radius: 15px;
    border-left: 3px solid #d4a574;
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
    margin: 1.5rem 0;
}

.mobile-story-text {
    font-size: 1rem;
    line-height: 1.6;
    color: #f8f6f2;
    font-weight: 500;
    text-align: center;
    margin: 0;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

/* 모바일 갤러리 스타일 */
.mobile-customer-gallery {
    margin-top: 2rem;
}

.mobile-gallery-title {
    font-size: 1.1rem;
    color: #d4a574;
    margin-bottom: 1rem;
    text-align: center;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.mobile-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.8rem;
    margin-top: 1rem;
}

.mobile-gallery-item {
    aspect-ratio: 1;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.mobile-gallery-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.15);
}

.mobile-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
}

.mobile-gallery-item:hover img {
    transform: scale(1.05);
}

/* 모바일 통계 스타일 - linear-gradient 제거 */
.mobile-section-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin: 1.5rem 0;
}

.mobile-stat-item {
    text-align: center;
    padding: 1rem 0.8rem;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
    border: 2px solid rgba(212, 165, 116, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.mobile-stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: #d4a574;
}

.mobile-stat-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    border-color: #d4a574;
}

.mobile-stat-item i {
    font-size: 1.5rem;
    margin-bottom: 0.6rem;
    display: block;
}

.mobile-stat-item:nth-child(1) i {
    color: #ffd700;
    text-shadow: 0 2px 4px rgba(255, 215, 0, 0.3);
}

.mobile-stat-item:nth-child(2) i {
    color: #4CAF50;
    text-shadow: 0 2px 4px rgba(76, 175, 80, 0.3);
}

.mobile-stat-item:nth-child(3) i {
    color: #e91e63;
    text-shadow: 0 2px 4px rgba(233, 30, 99, 0.3);
}

.mobile-stat-item:nth-child(4) i {
    color: #ff9800;
    text-shadow: 0 2px 4px rgba(255, 152, 0, 0.3);
}

.mobile-stat-number {
    display: block;
    font-size: 1.4rem;
    font-weight: 800;
    color: #6b4a2e;
    margin-bottom: 0.2rem;
    text-shadow: 0 1px 2px rgba(107, 74, 46, 0.1);
}

.mobile-stat-label {
    display: block;
    font-size: 0.8rem;
    color: #8b6f4e;
    font-weight: 600;
    line-height: 1.2;
}

/* 모바일 당근 이미지 스타일 */
.mobile-daangn-images {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: center;
    width: 100%;
}

.mobile-daangn-image-column {
    display: flex;
    justify-content: center;
}

.mobile-daangn-images img {
    width: 100%;
    max-width: 250px;
    height: 350px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
    background: rgba(255, 255, 255, 0.1);
}

/* 모바일 CTA 버튼 스타일 */
.mobile-cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

.mobile-cta-btn {
    padding: 1rem 1.5rem;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 44px;
    touch-action: manipulation;
}

.mobile-cta-btn-primary {
    background: #d4a574;
    color: white;
}

.mobile-cta-btn-primary:hover,
.mobile-cta-btn-primary:active {
    background: #b8945f;
    transform: translateY(-2px);
}

.mobile-cta-btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.mobile-cta-btn-secondary:hover,
.mobile-cta-btn-secondary:active {
    background: white;
    color: #6b4a2e;
    transform: translateY(-2px);
}

/* 모바일 애니메이션 - 단순화 */
@keyframes mobileFadeIn {
    0% { 
        opacity: 0; 
        transform: translateY(20px);
    }
    100% { 
        opacity: 1; 
        transform: translateY(0);
    }
}

.mobile-section.fade-in {
    animation: mobileFadeIn 0.8s ease-out;
}

/* 모바일 터치 피드백 */
.mobile-section * {
    -webkit-tap-highlight-color: transparent;
}

.mobile-section *:active {
    transform: scale(0.98);
}

/* 모바일 화면 전환 효과 - 단순한 페이드로 변경 */
@keyframes simpleFadeTransition {
    0% {
        opacity: 0;
        background: #9b6e4c;
    }
    100% {
        opacity: 1;
        background: #ffffff;
    }
}

@keyframes simpleFadeIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.mobile-transition-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #9b6e4c;
    z-index: 9999;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    transform: translateZ(0); /* 하드웨어 가속 강제 */
}

.mobile-transition-overlay.active {
    opacity: 1;
    visibility: visible;
    animation: simpleFadeTransition 0.8s ease-out forwards;
}

.mobile-section.transition-appear {
    animation: simpleFadeIn 0.8s ease-out 0.3s both;
    transform: translateZ(0); /* 하드웨어 가속 강제 */
}

/* 모바일 스크롤 스냅 (선택사항) */
.brandstory-mobile-content {
    scroll-snap-type: y mandatory;
}

.mobile-section {
    scroll-snap-align: start;
}

/* 모바일 미디어쿼리 */
@media (max-width: 1200px) {
    .brandstory-pc-content {
        display: none !important;
    }
    
    .brandstory-mobile-content {
        display: block !important;
    }
    
    .brandstory-floating-menu {
        display: none !important;
    }
    
    /* PC용 스크롤 인디케이터 모바일에서 완전 숨김 */
    .intro-scroll-indicator {
        display: none !important;
        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;
    }
    
    /* 모바일 인트로 화면 숨김 애니메이션 */
    .brandstory-intro.intro-hidden {
        opacity: 0;
        transform: translateY(-20px);
        transition: opacity 0.5s ease, transform 0.5s ease;
    }
    
    .brandstory-intro.intro-hidden * {
        pointer-events: none;
    }
    
    /* 모바일 페이지 인디케이터 */
    .page-indicator {
        right: 15px !important;
        top: 20px !important;
        transform: none !important;
        flex-direction: row !important;
        gap: 0.5rem !important;
        padding: 0.8rem !important;
        border-radius: 20px !important;
        background: rgba(255, 255, 255, 0.9) !important;
    }

    .page-dot {
        width: 10px !important;
        height: 10px !important;
    }

    .page-dot.active {
        transform: scale(1.2) !important;
    }
}

@media (max-width: 768px) {
    .mobile-section {
        padding: 40px 15px;
    }
    
    .mobile-section-title {
        font-size: 1.6rem;
    }
    
    .mobile-section-description {
        font-size: 0.95rem;
    }
    
    .mobile-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* 모바일 페이지 인디케이터 */
    .page-indicator {
        right: 10px !important;
        top: 15px !important;
        padding: 0.6rem !important;
        gap: 0.4rem !important;
    }

    .page-dot {
        width: 8px !important;
        height: 8px !important;
    }
}

@media (max-width: 480px) {
    .mobile-section {
        padding: 30px 10px;
    }
    
    .mobile-section-title {
        font-size: 1.4rem;
    }
    
    .mobile-section-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }
    
    .mobile-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }
    
    .mobile-comparison-item {
        padding: 0.8rem;
    }
    
    .mobile-comparison-item h4 {
        font-size: 0.9rem;
        margin-bottom: 0.6rem;
    }
    
    .mobile-comparison-item li {
        font-size: 0.8rem;
        padding: 0.3rem 0;
    }
} 