/**
 * 운영매체 페이지 스타일
 * recruit 스타일을 기반으로 한 라이너 스타일
 */

/* 기본 컨테이너 */
.operating-media-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* 페이지 헤더 */
.media-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 4px;
}

.media-title {
    font-size: 1.75rem;
    margin: 0 0 10px 0;
    font-weight: 600;
    color: #212529;
}

.media-title i {
    margin-right: 10px;
    color: #6c757d;
}

.media-description {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #6c757d;
    margin: 0;
}

/* 매체 목록 - recruit 스타일 적용 */
.media-posts {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.media-post-card {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    padding: 0;
    transition: all 0.2s ease;
    cursor: pointer;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.media-post-card:hover {
    border-color: #007bff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* 이미지 영역 */
.media-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid #e9ecef;
}

.media-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.media-post-card:hover .media-image img {
    transform: scale(1.05);
}

.post-main-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
}

.post-left-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.media-icon-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
}

.media-icon {
    width: 50px;
    height: 50px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.media-icon i {
    font-size: 1.5rem;
    color: #6c757d;
}

.media-post-card:hover .media-icon {
    background: #e7f3ff;
    border-color: #b3d9ff;
}

.media-post-card:hover .media-icon i {
    color: #007bff;
}

.media-details {
    flex: 1;
}

.media-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #212529;
    margin: 0 0 8px 0;
    line-height: 1.3;
}

.post-meta {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.post-meta span {
    font-size: 0.85rem;
    color: #6c757d;
    display: flex;
    align-items: center;
    gap: 5px;
}

.post-meta i {
    font-size: 0.8rem;
}

.post-type {
    color: #007bff;
    font-weight: 500;
}

.post-content {
    padding-left: 65px; /* 아이콘 너비 + 간격 */
}

.media-info {
    color: #6c757d;
}

.info-text {
    font-size: 0.9rem;
    margin: 0;
}

.post-right-content {
    display: flex;
    align-items: center;
}

.media-action {
    padding: 0 10px;
}

.action-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    transition: all 0.2s ease;
}

.action-icon i {
    font-size: 1rem;
    color: #6c757d;
}

.action-icon.download {
    background: #d4edda;
    border-color: #c3e6cb;
}

.action-icon.download i {
    color: #155724;
}

.action-icon.link {
    background: #cce5ff;
    border-color: #b8daff;
}

.action-icon.link i {
    color: #004085;
}

.media-post-card:hover .action-icon {
    transform: scale(1.1);
}

/* 페이지네이션 */
.pagination {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.page-btn {
    padding: 8px 12px;
    text-decoration: none;
    color: #495057;
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 3px;
    font-size: 0.9rem;
    transition: all 0.15s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.page-btn:hover {
    background: #f8f9fa;
    border-color: #adb5bd;
    color: #212529;
}

.page-btn.active {
    background: #007bff;
    color: white;
    border-color: #007bff;
}

.page-btn.prev,
.page-btn.next {
    font-weight: 500;
}

/* 매체 없음 상태 */
.no-media {
    text-align: center;
    padding: 80px 20px;
    background: white;
    border-radius: 4px;
    border: 1px solid #e9ecef;
}

.no-media-icon {
    font-size: 4rem;
    color: #dee2e6;
    margin-bottom: 20px;
}

.no-media h3 {
    font-size: 1.3rem;
    color: #495057;
    margin: 0 0 10px 0;
    font-weight: 600;
}

.no-media p {
    color: #6c757d;
    margin: 0;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .media-posts {
        grid-template-columns: 1fr;
    }
    
    .operating-media-container {
        padding: 15px;
    }
    
    .media-header {
        padding: 20px;
        margin-bottom: 30px;
    }
    
    .media-title {
        font-size: 1.5rem;
    }
    
    .post-main-content {
        padding: 15px;
    }
    
    .media-icon-wrapper {
        gap: 12px;
    }
    
    .media-icon {
        width: 45px;
        height: 45px;
    }
    
    .media-icon i {
        font-size: 1.25rem;
    }
    
    .media-name {
        font-size: 1rem;
    }
    
    .post-meta {
        gap: 10px;
    }
    
    .post-content {
        padding-left: 57px;
    }
    
    .action-icon {
        width: 36px;
        height: 36px;
    }
}

@media (max-width: 480px) {
    .post-meta span {
        font-size: 0.8rem;
    }
    
    .info-text {
        font-size: 0.85rem;
    }
    
    .page-btn {
        padding: 6px 10px;
        font-size: 0.85rem;
    }
}
