
/* 페이지별 통합 스타일 */

/* 공통 페이지 레이아웃 */
.page-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    min-height: calc(100vh - 200px);
}

.page-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 40px 0;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.page-header h1 {
    color: #6a5acd;
    font-size: clamp(24px, 5vw, 36px);
    margin-bottom: 15px;
}

.page-header p {
    color: #666;
    font-size: 16px;
    max-width: 600px;
    margin: 0 auto;
}

/* 카드 스타일 */
.card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    margin-bottom: 30px;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.card h2, .card h3 {
    color: #6a5acd;
    margin-bottom: 20px;
}

/* 그리드 레이아웃 */
.grid {
    display: grid;
    gap: 20px;
    margin: 40px 0;
}

.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }

/* 통계 페이지 */
.stats-card {
    text-align: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 15px;
    padding: 30px;
    transition: all 0.3s ease;
}

.stats-card:hover {
    transform: translateY(-8px) scale(1.02);
}

.stats-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    opacity: 0.9;
}

.stats-number {
    font-size: clamp(24px, 4vw, 36px);
    font-weight: bold;
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.stats-label {
    font-size: 14px;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* 서버 정보 페이지 */
.server-card {
    border-left: 4px solid #6a5acd;
    transition: all 0.3s ease;
}

.server-card:hover {
    border-left-color: #c1216b;
}

.server-status {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    font-weight: bold;
}

.status-online {
    color: #28a745;
}

.status-offline {
    color: #dc3545;
}

.server-specs {
    list-style: none;
    padding: 0;
}

.server-specs li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
    transition: background 0.2s ease;
}

.server-specs li:hover {
    background: #f8f9fa;
    margin: 0 -15px;
    padding-left: 15px;
    padding-right: 15px;
}

.server-specs li:last-child {
    border-bottom: none;
}

.spec-label {
    font-weight: 600;
    color: #333;
}

.spec-value {
    color: #6a5acd;
    font-weight: bold;
}

/* 연락처 페이지 */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin: 40px 0;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #333;
    font-size: 14px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #6a5acd;
    box-shadow: 0 0 0 3px rgba(106, 90, 205, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.btn-submit {
    background: linear-gradient(135deg, #6a5acd 0%, #c1216b 100%);
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(106, 90, 205, 0.3);
}

.contact-item {
    margin-bottom: 25px;
    padding: 25px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 10px;
    border-left: 4px solid #6a5acd;
    transition: all 0.3s ease;
}

.contact-item:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.contact-item h4 {
    color: #6a5acd;
    margin-bottom: 10px;
    font-size: 18px;
}

/* 가이드 페이지 */
.guide-step {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    padding: 25px;
    border-radius: 10px;
    margin: 25px 0;
    border-left: 4px solid #6a5acd;
    position: relative;
    transition: all 0.3s ease;
}

.guide-step:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.guide-step::before {
    content: counter(step-counter);
    counter-increment: step-counter;
    position: absolute;
    left: -15px;
    top: 20px;
    background: #6a5acd;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
}

.guide-section {
    counter-reset: step-counter;
}

.guide-step h4 {
    color: #6a5acd;
    margin-bottom: 15px;
    padding-left: 20px;
}

.guide-step img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 15px 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* 다운로드 페이지 */
.download-section {
    text-align: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 60px 40px;
}

.download-section h2 {
    color: white;
    margin-bottom: 30px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.download-btn {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 20px 40px;
    text-decoration: none;
    border-radius: 10px;
    font-size: 18px;
    font-weight: bold;
    margin: 10px;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.download-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    color: white;
    text-decoration: none;
}

.download-info {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
    backdrop-filter: blur(10px);
}

/* 뉴스 페이지 */
.news-card {
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #e0e0e0;
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.news-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-card:hover img {
    transform: scale(1.05);
}

.news-card-content {
    padding: 25px;
}

.news-card h3 {
    color: #6a5acd;
    margin-bottom: 15px;
    font-size: 18px;
    line-height: 1.4;
}

.news-date {
    color: #999;
    font-size: 14px;
    margin-bottom: 15px;
    font-weight: 500;
}

.news-excerpt {
    color: #555;
    line-height: 1.6;
}

/* 테이블 개선 */
.responsive-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.responsive-table th {
    background: linear-gradient(135deg, #6a5acd 0%, #c1216b 100%);
    color: white;
    padding: 15px;
    text-align: left;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 14px;
}

.responsive-table td {
    padding: 15px;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.2s ease;
}

.responsive-table tr:hover td {
    background: #f8f9fa;
}

.responsive-table tr:last-child td {
    border-bottom: none;
}

/* 랭킹 테이블 */
.rank-number {
    font-weight: bold;
    text-align: center;
    width: 60px;
    font-size: 18px;
}

.rank-1 { color: #ffd700; text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3); }
.rank-2 { color: #c0c0c0; text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3); }
.rank-3 { color: #cd7f32; text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3); }

/* 반응형 디자인 */
@media (max-width: 768px) {
    .page-container {
        padding: 20px 15px;
    }
    
    .grid-2, .grid-3, .grid-4 {
        grid-template-columns: 1fr;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .responsive-table {
        font-size: 14px;
    }
    
    .responsive-table th,
    .responsive-table td {
        padding: 10px 8px;
    }
    
    .card {
        padding: 20px;
    }
    
    .stats-card {
        padding: 20px;
    }
    
    .guide-step {
        padding: 20px;
        margin: 20px 0;
    }
}

@media (max-width: 480px) {
    .page-header {
        padding: 20px 15px;
    }
    
    .card {
        padding: 15px;
    }
    
    .stats-number {
        font-size: 24px;
    }
    
    .download-btn {
        padding: 15px 25px;
        font-size: 16px;
        display: block;
        margin: 15px 0;
    }
    
    .responsive-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}

/* 애니메이션 */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-slide-up {
    animation: slideInUp 0.6s ease-out;
}

/* 로딩 스피너 */
.loading-spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #6a5acd;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
