* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Noto Sans KR', 'Malgun Gothic', sans-serif;
    background: #f5f5f5;
    color: #333;
    padding: 0;
    min-height: 100vh;
    max-width: 100%;
    margin: 0;
}

/* 닫기 버튼 */
.close-btn {
    position: fixed;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.close-btn:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: scale(1.1);
}

/* 헤더 */
.header {
    margin-bottom: 0;
    padding: 20px 20px 15px 20px;
    background: white;
    border-bottom: 1px solid #e5e5e5;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo {
    height: 20px;
    width: auto;
	margin-top:7px;
}

.brand-name {
    display: flex;
    align-items: center;
    gap: 3px;
    margin-right: 10px;
}

.brand-biz {
    font-size: 20px;
    font-weight: 700;
    color: #0066CC;
}

.brand-pinda {
    font-size: 26px;
    font-weight: 800;
    color: #FFD700;
    -webkit-text-stroke: 2px #333;
    text-stroke: 2px #333;
    paint-order: stroke fill;
}

.site-title {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
}

.title-main {
    font-size: 36px;
    font-weight: 900;
    color: #ff4757;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.15);
}

.title-sub {
    font-size: 16px;
    color: #666;
    font-weight: 400;
}

/* 네비게이션 */
.nav-links {
    text-align: center;
    margin-bottom: 0;
    font-size: 14px;
    color: #666;
    padding: 15px 20px;
    background: white;
    border-bottom: 1px solid #e5e5e5;
    white-space: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.nav-links::-webkit-scrollbar {
    display: none;
}

.nav-links a {
    color: #333;
    text-decoration: none;
    margin: 0 6px;
    padding: 6px 12px;
    border-radius: 6px;
    transition: all 0.2s ease;
    font-weight: 500;
    display: inline-block;
    white-space: nowrap;
}

.nav-links a:hover {
    background: #f0f0f0;
    color: #0066CC;
}

.nav-links span {
    margin: 0 4px;
    color: #ccc;
}

/* 멤버쉽 박스 */
.membership-box {
    border: none;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 50%, #ffffff 100%);
    padding: 30px 20px;
    text-align: center;
    margin-bottom: 0;
    border-bottom: 1px solid #e5e5e5;
    position: relative;
    overflow: hidden;
}

.membership-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 20%, rgba(0, 102, 204, 0.03) 0%, transparent 50%),
                radial-gradient(circle at 70% 80%, rgba(255, 71, 87, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

.membership-box:hover {
    background: linear-gradient(135deg, #ffffff 0%, #f5f7fa 50%, #ffffff 100%);
}

.membership-box > * {
    position: relative;
    z-index: 1;
}

.membership-header {
    margin-bottom: 15px;
    font-size: 20px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.membership-title {
    font-weight: 700;
    color: #333;
}

.membership-p {
    font-size: 28px;
    font-weight: 900;
    color: #FF6B00;
    margin: 0 2px;
}

.membership-free {
    color: #ff4757;
    font-weight: 700;
    margin: 0 6px;
    font-size: 22px;
}

.membership-signup {
    color: #0066CC;
    font-weight: 700;
}

.go-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #0066CC;
    color: white;
    border-radius: 50%;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease;
    margin-left: 5px;
}

.go-btn:hover {
    background: #0052A3;
    transform: scale(1.1);
}

.membership-desc1 {
    font-size: 16px;
    margin-bottom: 12px;
    color: #333;
    font-weight: 500;
}

.membership-desc2 {
    font-size: 14px;
    color: #666;
}

.benefit-btn {
    background: #0066CC;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    margin-left: 8px;
    transition: all 0.2s ease;
    font-weight: 600;
}

.benefit-btn:hover {
    background: #0052A3;
    transform: translateY(-1px);
}

/* 통계 섹션 */
.stats-section {
    text-align: center;
    margin-bottom: 0;
    padding: 20px;
    background: white;
    border-bottom: 1px solid #e5e5e5;
}

.since-text {
    margin-bottom: 10px;
    font-size: 13px;
    color: #999;
    font-weight: 400;
}

.total-view-text {
    font-weight: 600;
    font-size: 18px;
    color: #333;
}

#totalView {
    color: #0066CC;
    font-size: 24px;
    font-weight: 700;
    margin: 0 3px;
}

/* 이미지 그리드 */
.image-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    margin-bottom: 0;
    background: white;
    padding: 15px;
    border-bottom: 1px solid #e5e5e5;
}

.image-grid a {
    display: block;
    width: 100%;
    text-decoration: none;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.2s ease;
    position: relative;
    aspect-ratio: 1;
    padding-bottom: 100%;
    margin: 2px;
}

.image-grid a:hover {
    transform: scale(1.02);
}

.image-grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    padding-bottom: 0;
}

.image-grid a:hover img {
    opacity: 0.9;
}

/* 광고 배너 */
.ad-banner-container {
    position: relative;
    width: 100%;
    margin-bottom: 0;
    border-radius: 0;
    overflow: hidden;
    background: white;
}

.ad-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.ad-slide {
    display: none;
    width: 100%;
}

.ad-slide.active {
    display: block;
    animation: fadeIn 0.4s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.ad-slide img {
    width: 100%;
    height: auto;
    max-height: 200px;
    object-fit: cover;
    display: block;
}

.ad-indicator {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    backdrop-filter: blur(5px);
}

/* 팝업 */
.popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(3px);
    animation: fadeIn 0.2s ease;
}

.popup-overlay.active {
    display: flex;
}

.popup-content {
    background-color: white;
    padding: 30px;
    border-radius: 12px;
    max-width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    margin: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #f0f0f0;
    border: none;
    font-size: 22px;
    cursor: pointer;
    color: #666;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.popup-close:hover {
    background: #e0e0e0;
    color: #333;
}

.popup-content h2 {
    margin-bottom: 25px;
    color: #333;
    font-size: 24px;
    font-weight: 700;
}

.benefit-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.benefit-item {
    padding: 20px;
    background: #f8f8f8;
    border-radius: 8px;
    border-left: 3px solid #0066CC;
    transition: all 0.2s ease;
}

.benefit-item:hover {
    background: #f0f0f0;
}

.benefit-item h3 {
    color: #0066CC;
    margin-bottom: 10px;
    font-size: 18px;
    font-weight: 700;
}

.benefit-item p {
    color: #555;
    line-height: 1.6;
    font-size: 14px;
}

/* 반응형 */
@media (max-width: 768px) {
    body {
        padding: 0;
    }
    
    .header {
        padding: 15px 15px 12px 15px;
    }
    
    .logo-container {
        gap: 10px;
    }
    
    .logo {
        height: 25px;
    }
    
    .brand-name {
        margin-right: 6px;
    }
    
    .brand-biz {
        font-size: 16px;
    }
    
    .brand-pinda {
        font-size: 20px;
        -webkit-text-stroke: 1.5px #333;
    }
    
    .site-title {
        gap: 5px;
    }
    
    .title-main {
        font-size: 26px;
    }
    
    .title-sub {
        font-size: 13px;
    }
    
    .nav-links {
        padding: 12px 15px;
        font-size: 13px;
    }
    
    .nav-links a {
        margin: 0 4px;
        padding: 5px 10px;
        font-size: 12px;
    }
    
    .membership-box {
        padding: 25px 15px;
    }
    
    .membership-header {
        font-size: 18px;
        gap: 6px;
    }
    
    .membership-p {
        font-size: 24px;
    }
    
    .membership-free {
        font-size: 20px;
    }
    
    .go-btn {
        width: 36px;
        height: 36px;
        font-size: 12px;
    }
    
    .membership-desc1 {
        font-size: 15px;
    }
    
    .membership-desc2 {
        font-size: 13px;
    }
    
    .stats-section {
        padding: 18px 15px;
    }
    
    .since-text {
        font-size: 12px;
    }
    
    .total-view-text {
        font-size: 16px;
    }
    
    #totalView {
        font-size: 22px;
    }
    
    .image-grid {
        padding: 12px;
        gap: 0;
    }
    
    .image-grid a {
        margin: 2px;
    }
    
    .popup-content {
        margin: 15px;
        padding: 25px;
        max-width: 95%;
    }
    
    .popup-content h2 {
        font-size: 20px;
    }
    
    .benefit-item {
        padding: 15px;
    }
    
    .benefit-item h3 {
        font-size: 16px;
    }
    
    .benefit-item p {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 12px 12px 10px 12px;
    }
    
    .logo {
        height: 23px;
    }
    
    .brand-biz {
        font-size: 14px;
    }
    
    .brand-pinda {
        font-size: 18px;
        -webkit-text-stroke: 1.5px #333;
    }
    
    .title-main {
        font-size: 24px;
    }
    
    .title-sub {
        font-size: 11px;
    }
    
    .nav-links {
        padding: 10px 12px;
    }
    
    .membership-box {
        padding: 20px 12px;
    }
    
    .membership-header {
        font-size: 16px;
        gap: 5px;
    }
    
    .membership-p {
        font-size: 22px;
    }
    
    .membership-free {
        font-size: 18px;
    }
    
    .go-btn {
        width: 32px;
        height: 32px;
        font-size: 11px;
    }
    
    .stats-section {
        padding: 15px 12px;
    }
    
    .image-grid {
        padding: 10px;
    }
    
    .image-grid a {
        margin: 1.5px;
    }
    
    .ad-slide img {
        max-height: 150px;
    }
}
