/* 반응형 디자인 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #FFFFFF;
    overflow-x: hidden;
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* 메인 컨테이너 */
.iphone-container {
    position: relative;
    width: 100%;
    max-width: 430px;
    background: #FFFFFF;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* 컨텐츠 래퍼 - 그리드 중심으로 배치 */
.content-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* 슬로건 */
.slogan {
    width: auto;
    max-width: 100%;
    height: 22px;
    margin-bottom: 20px;
    padding: 0 20px;
    font-family: 'Klavika', 'Inter', sans-serif;
    font-style: normal;
    font-weight: 300;
    font-size: 14px;
    line-height: 22px;
    color: #000000;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* INTEGRIT 로고 */
.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 40px;
}

.logo {
    width: 85%;
    max-width: 280px;
    height: auto;
    object-fit: contain;
}

/* 4사분면 브로셔 그리드 - 화면 정중앙 */
.brochure-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    width: 100%;
    max-width: 350px;
}

/* 브로셔 아이템 */
.brochure-item {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    background: #FFFFFF;
    border: none;
    border-radius: 0;
    overflow: hidden;
    cursor: pointer;
    transition: none;
    z-index: 1;
}

.brochure-item:hover { transform: none; box-shadow: none; }

.brochure-item:active { transform: none; }

/* 브로셔 이미지 */
.brochure-image {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
}

.brochure-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

/* 다운로드 오버레이 - 인덱스 페이지용 */
.brochure-overlay { display: none; }

.download-icon { display: none; }

/* 업로드 오버레이 - 어드민 페이지용 */
.upload-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none; /* 클릭 이벤트를 막지 않음 */
    z-index: 2;
}

.admin-upload-item:hover .upload-overlay {
    opacity: 1;
}

.upload-icon {
    text-align: center;
    color: #FFFFFF;
}

.upload-icon i {
    font-size: 32px;
    margin-bottom: 8px;
    display: block;
}

.upload-icon p {
    font-size: 14px;
    margin: 0;
    font-weight: 500;
}

/* 하단 네비게이션 - 제거됨 */
.bottom-nav {
    display: none;
}

.nav-btn {
    width: 50px;
    height: 50px;
    background: #007AFF;
    border: none;
    border-radius: 25px;
    color: white;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-btn:hover {
    background: #0056CC;
    transform: scale(1.1);
}

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

/* 반응형 디자인 */
@media (max-width: 480px) {
    .iphone-container {
        padding: 15px;
    }
    
    .logo {
        width: 80%;
        max-width: 280px;
    }
    
    .slogan {
        font-size: 14px;
        margin-bottom: 15px;
    }
    
    .brochure-grid {
        max-width: 300px;
        margin: 15px auto;
    }
}

@media (min-width: 768px) {
    .iphone-container {
        border: 1px solid #E5E5E7;
        border-radius: 20px;
        box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
        margin: 28px auto;
    }
}

/* 로딩 애니메이션 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.brochure-item {
    animation: fadeIn 0.6s ease-out;
}

.brochure-item:nth-child(1) { animation-delay: 0.1s; }
.brochure-item:nth-child(2) { animation-delay: 0.2s; }
.brochure-item:nth-child(3) { animation-delay: 0.3s; }
.brochure-item:nth-child(4) { animation-delay: 0.4s; }

/* 터치 피드백 */
.brochure-item:active {
    background: #C0C0C0;
}

/* 접근성 */
@media (prefers-reduced-motion: reduce) {
    .brochure-item {
        animation: none;
    }
    
    .brochure-item:hover {
        transform: none;
    }
}

/* 다크 모드 지원 제거 - 항상 흰색 배경 유지 */