/*
* 파일명: style.css
* 위치: /p/wp-plugin/assets/css/style.css
* 기능: 워드프레스 플러그인 사이트 공통 css
* 작성일: 2025-08-12
*/

/* ===================================
* CSS 변수 정의
* ===================================
*/
:root {
    --primary-color: #0072A2;
    --secondary-color: #135e96;
    --success-color: #00a32a;
    --border-color: #dcdcde;
    --text-color: #1e1e1e;
    --light-bg: #f6f7f7;
    --white: #ffffff;
    --shadow-light: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-medium: 0 2px 8px rgba(0,0,0,0.1);
    --border-radius: 8px;
    --border-radius-small: 4px;
    --transition: all 0.3s ease;
}

/* ===================================
* 기본 리셋 및 타이포그래피
* ===================================
*/
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background: #f0f0f1;
}

/* ===================================
* 레이아웃 및 컨테이너
* ===================================
*/
.container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

/* ===================================
* 플러그인 헤더 영역
* ===================================
*/
.plugin-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem;
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
}

.plugin-title {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 700;
}

.plugin-description {
    font-size: 1.2rem;
    color: #666;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}

/* ===================================
* 공통 섹션 스타일
* ===================================
*/
.section-title {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border-color);
    font-weight: 600;
}

/* ===================================
* 카드 레이아웃
* ===================================
*/
.plugin-card {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    height: 100%;
    border: 1px solid #e0e0e0;
}

.plugin-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.plugin-card.coming-soon {
    opacity: 0.7;
    background: #f8f9fa;
}

.plugin-content {
    padding: 1.5rem;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.plugin-card .plugin-title {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--text-color);
    font-weight: 600;
}

.plugin-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.plugin-meta-item {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.9rem;
    color: #666;
}

.plugin-meta-item i {
    color: var(--primary-color);
}

.plugin-version {
    background: var(--primary-color);
    color: var(--white);
    padding: 0.2rem 0.5rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
}

.plugin-card .plugin-description {
    font-size: 1rem;
    color: #555;
    margin-bottom: 1.5rem;
    flex-grow: 1;
    line-height: 1.6;
}

.plugin-link {
    display: inline-block;
    background: var(--primary-color);
    color: var(--white);
    text-decoration: none;
    padding: 0.6rem 1.2rem;
    border-radius: var(--border-radius-small);
    font-weight: 500;
    transition: var(--transition);
    text-align: center;
    margin-top: auto;
}

.plugin-link:hover {
    background: var(--secondary-color);
    color: var(--white);
    transform: translateY(-1px);
}

/* ===================================
* 기능 카드 섹션
* ===================================
*/
.features-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.feature-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.feature-title {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
    font-weight: 600;
}

/* ===================================
* 스크린샷 섹션
* ===================================
*/
.screenshot-section {
    margin-bottom: 3rem;
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
}

.screenshots-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.screenshot-item {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: var(--border-radius-small);
    text-align: center;
}

.screenshot {
    width: 100%;
    height: auto;
    border: 1px solid #ddd;
    border-radius: var(--border-radius-small);
    margin-bottom: 0.5rem;
    transition: var(--transition);
}

.screenshot:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-medium);
}

.screenshot-caption {
    color: #666;
    margin-top: 0.5rem;
    font-weight: 500;
}

/* ===================================
* 사용법 섹션
* ===================================
*/
.usage-section {
    margin: 3rem 0;
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
}

.usage-steps {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.usage-step {
    border: none;
}

.step-title {
    background: var(--primary-color);
    color: var(--white);
    padding: 1rem 1.5rem;
    border-radius: var(--border-radius-small);
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
}

.step-content {
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 0 0 var(--border-radius-small) var(--border-radius-small);
}

.step-content h4 {
    color: var(--text-color);
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.step-content ol,
.step-content ul {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.step-content li {
    margin-bottom: 0.8rem;
    line-height: 1.6;
}

.step-content li ul {
    margin-top: 0.5rem;
}

.step-tip {
    background: #e6f3ff;
    border-left: 4px solid var(--primary-color);
    padding: 1rem 1.5rem;
    margin-top: 1rem;
    border-radius: 0 var(--border-radius-small) var(--border-radius-small) 0;
}

.step-tip p {
    margin: 0;
    color: var(--text-color);
    font-size: 0.95rem;
}

.step-tip i {
    color: var(--primary-color);
    margin-right: 0.5rem;
}

/* ===================================
* 버전 히스토리
* ===================================
*/
.version-history {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    margin-bottom: 3rem;
}

.version-item {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.version-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.version-number {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
}

.version-item ul {
    padding-left: 1.5rem;
}

.version-item li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

/* ===================================
* 다운로드 섹션
* ===================================
*/
.download-section {
    text-align: center;
    margin: 3rem 0;
}

.download-button {
    display: inline-block;
    padding: 1rem 2rem;
    background: var(--success-color);
    color: var(--white);
    text-decoration: none;
    border-radius: var(--border-radius);
    font-size: 1.2rem;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: var(--shadow-light);
}

.download-button:hover {
    background: #008a20;
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

/* ===================================
* 비디오 섹션
* ===================================
*/
.video-tutorial-section {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    margin-bottom: 3rem;
}

.video-container {
    margin-top: 1.5rem;
}

.video-description {
    text-align: center;
    color: #666;
    margin-top: 1rem;
    font-style: italic;
}

/* ===================================
* 광고 섹션
* ===================================
*/
.ad-container {
    margin: 2rem auto;
    text-align: center;
    min-height: 250px;
    width: 100%;
    max-width: 728px;
}

/* ===================================
* 푸터 스타일
* ===================================
*/
.site-footer {
    background: var(--primary-color);
    color: var(--white);
    text-align: center;
    padding: 2rem 0;
    margin-top: 4rem;
}

.site-footer a {
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
}

.site-footer a:hover {
    color: #cce7f0;
    text-decoration: underline;
}

/* ===================================
* 반응형 디자인
* ===================================
*/
@media (max-width: 768px) {
    .plugin-title {
        font-size: 2rem;
    }
    
    .plugin-description {
        font-size: 1.1rem;
    }
    
    .features-section {
        grid-template-columns: 1fr;
    }

    .screenshots-container {
        grid-template-columns: 1fr;
    }
    
    .step-title {
        font-size: 1.1rem;
        padding: 0.8rem 1.2rem;
    }
    
    .step-content {
        padding: 1.2rem;
    }
    
    .step-content li {
        font-size: 0.95rem;
    }
    
    .plugin-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .container {
        padding: 0 0.8rem;
    }
}

@media (max-width: 480px) {
    .plugin-title {
        font-size: 1.8rem;
    }
    
    .step-title {
        font-size: 1rem;
        padding: 0.7rem 1rem;
    }
    
    .download-button {
        padding: 0.8rem 1.5rem;
        font-size: 1.1rem;
    }
}


/* ===================================
* 뉴스레터 구독 안내 박스
* ===================================
*/
.newsletter-container {
    margin-bottom: 40px;
}

.newsletter-box {
    background: linear-gradient(135deg, var(--primary-color) 0%, #004D6B 100%);
    color: var(--white);
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,114,162,0.2);
}

.newsletter-text {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 15px;
    margin: 0 0 15px 0;
}

.newsletter-button {
    display: inline-block;
    background-color: rgba(255,255,255,0.15);
    color: var(--white);
    padding: 12px 24px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    border: 2px solid rgba(255,255,255,0.25);
}

.newsletter-button:hover {
    background-color: rgba(255,255,255,0.25);
    border-color: rgba(255,255,255,0.4);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,114,162,0.3);
    color: var(--white);
    text-decoration: none;
}