/*
Theme Name:     WPlaybook ALL100
Theme URI:      https://theme.wplaybook.com
Template:       kadence
Author:         Issac Lee
Author URI:     https://wplaybook.com/about/
Description:    Featured starter theme for bloggers made by wplaybook.com
Version:        0.9
License:        GNU General Public License v3.0 (or later)
License URI:    https://www.gnu.org/licenses/gpl-3.0.html
*/

/* --- DM 일렉트릭 2.0 프리미엄 UI 정책 --- */

/* 1. 글로벌 웹 폰트 (Pretendard 적용) */
@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard/dist/web/static/pretendard.css');

body, button, input, select, textarea, .site-title, h1, h2, h3, h4, h5, h6, .menu-item a {
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, 'Helvetica Neue', 'Segoe UI', 'Apple SD Gothic Neo', 'Noto Sans KR', 'Malgun Gothic', 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', sans-serif !important;
}

/* 가로 전환 효과 시 스크롤 방지 */
body { overflow-x: hidden; }

/* 2. 메인 화면 버튼 디자인 (Call To Action) 고도화 */
.wp-block-button__link, button, input[type="submit"], input[type="button"] {
    background-color: #1e3a8a !important; /* 신뢰감을 주는 짙은 네이비블루 */
    color: #ffffff !important;
    border-radius: 8px !important;
    border: none !important;
    padding: 12px 24px !important;
    font-weight: 600 !important;
    letter-spacing: 0.5px;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 6px rgba(30, 58, 138, 0.2) !important;
    cursor: pointer;
}

.wp-block-button__link:hover, button:hover, input[type="submit"]:hover, input[type="button"]:hover {
    background-color: #152c6b !important; /* 호버 시 더 짙게 */
    transform: translateY(-2px); /* 살짝 떠오르는 액션 */
    box-shadow: 0 6px 12px rgba(30, 58, 138, 0.3) !important;
}

/* 3. 본문 내 이미지 라운딩 및 입체감 */
.wp-block-image img {
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08); /* 부드러운 아웃라인 섀도우 */
    transition: transform 0.3s ease;
}

.wp-block-image img:hover {
    transform: scale(1.01); /* 마우스 오버시 미세한 줌 효과 */
}

/* 4. 네비게이션(메뉴바) 텍스트 명확화 */
.site-header .main-navigation a {
    font-weight: 600;
    color: #333333 !important;
    transition: color 0.2s ease;
}

.site-header .main-navigation a:hover {
    color: #1e3a8a !important;
}

/* 5. 검색창 및 입력 폼 디자인 개선 */
input[type="text"], input[type="search"] {
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 12px 15px;
    transition: all 0.3s ease;
}

input[type="text"]:focus, input[type="search"]:focus {
    border-color: #1e3a8a;
    outline: none;
    box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1); /* 포커스 시 부드러운 외곽선 */
}

/* ========================================================
   [Phase 1] 대명전기 2.0 B2B 최적화 - 헤더 & 네비게이션
======================================================== */
.site-header {
    background-color: #ffffff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05); /* 헤더 드롭 섀도우 추가 */
    border-bottom: none !important;
}

/* 네비게이션 링크 여백 및 폰트 개선 */
.main-navigation .menu > li > a {
    font-family: 'Pretendard', sans-serif !important;
    font-size: 1.1rem !important;
    font-weight: 600 !important;
    padding: 25px 20px !important;
    color: #1e293b !important; /* 다크 네이비 / 슬레이트 컬러 */
    text-transform: uppercase;
    letter-spacing: -0.5px;
}

.main-navigation .menu > li > a:hover {
    color: #005bb5 !important; /* HD현대 블루 포인트 */
}

/* 주입될 헤더 '견적 문의' 및 '장기재고판매' CTA 버튼 스타일 (통일된 기업형 블루 톤) */
.dm-header-cta {
    display: inline-block;
    margin-left: 10px;
    background-color: #005bb5; /* 중심을 잡아주는 HD현대 블루 */
    color: white !important;
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 4px 6px rgba(0, 91, 181, 0.2);
    transition: all 0.2s;
    border: 2px solid #005bb5;
}

.dm-header-cta:hover {
    background-color: #004a94;
    border-color: #004a94;
    transform: translateY(-2px);
    box-shadow: 0 6px 10px rgba(0, 91, 181, 0.3);
    color: white !important;
}

/* 장기재고판매 버튼 (흰 바탕에 파란 테두리로 통일감 유지) */
.dm-header-cta-sale {
    display: inline-block;
    margin-left: 20px;
    background-color: transparent;
    color: #005bb5 !important; /* 글씨를 파란색으로 */
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    border: 2px solid #005bb5; /* 테두리를 파란색으로 통일 */
    transition: all 0.2s;
}

.dm-header-cta-sale:hover {
    background-color: #e6f0fa; /* 아주 옅은 파란 배경 */
    transform: translateY(-2px);
    color: #004a94 !important;
}

/* ========================================================
   [Phase 3] 대명전기 서브 페이지 (교육/관리) 글로벌 위키 스타일
======================================================== */
.page .entry-content, .archive .entry-content, .category .entry-content, .single .entry-content {
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
    font-size: 1.05rem;
    line-height: 1.8;
    color: #334155; /* 부드러운 다크 그레이로 눈피로 감소 */
    max-width: 900px;
    margin: 0 auto;
    display: block !important; /* 가려짐 방지 */
}

/* 아카이브 리스트에서 이미지 하단 설명글 정돈 */
.archive .entry-summary, .archive .entry-content, .dm-forced-content, .single .entry-content {
    margin-top: 15px;
    color: #475569 !important;
    font-size: 0.95rem;
    line-height: 1.6;
}

.dm-forced-content p {
    margin-bottom: 0;
}

/* 기술 문서형 제목(Heading) 스타일 */
.page .entry-content h2, .archive .entry-content h2, .category .entry-content h2, .single .entry-content h2 {
    font-size: 1.8rem;
    font-weight: 800;
    color: #0f172a;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 10px;
    margin-top: 50px;
    margin-bottom: 25px;
}

.page .entry-content h3, .archive .entry-content h3, .category .entry-content h3, .single .entry-content h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1e293b;
    border-left: 5px solid #005bb5; /* 현대블루 포인트 바 */
    padding-left: 12px;
    margin-top: 40px;
    margin-bottom: 20px;
}

/* 목록 스타일링 */
.page .entry-content ul, .page .entry-content ol, .archive .entry-content ul, .archive .entry-content ol, .single .entry-content ul, .single .entry-content ol {
    margin-bottom: 25px;
    padding-left: 25px;
}
.page .entry-content li, .archive .entry-content li, .single .entry-content li {
    margin-bottom: 10px;
}

/* 인용구 (팁/경고 박스) 스타일 */
.page .entry-content blockquote, .archive .entry-content blockquote, .single .entry-content blockquote {
    background-color: #f8fafc;
    border-left: 5px solid #3b82f6;
    padding: 20px 25px;
    margin: 30px 0;
    font-style: italic;
    color: #475569;
    border-radius: 0 8px 8px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
}

/* 엔지니어링 표(Table) 스타일 */
.page .entry-content table, .archive .entry-content table, .single .entry-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
    font-size: 0.95rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    border-radius: 8px;
    overflow: hidden;
}
.page .entry-content table th, .archive .entry-content table th, .single .entry-content table th {
    background-color: #005bb5;
    color: #ffffff;
    font-weight: 600;
    text-align: left;
    padding: 15px;
    border: none;
}
.page .entry-content table td, .archive .entry-content table td, .single .entry-content table td {
    padding: 12px 15px;
    border-bottom: 1px solid #e2e8f0;
    color: #334155;
}
.page .entry-content table tr:nth-child(even), .archive .entry-content table tr:nth-child(even), .single .entry-content table tr:nth-child(even) {
    background-color: #f8fafc; /* 얼룩무늬 지브라 패턴 */
}
.page .entry-content table tr:hover, .archive .entry-content table tr:hover, .single .entry-content table tr:hover {
    background-color: #f1f5f9;
}

/* ========================================================
   [Phase 5] ABOUT 페이지 프리미엄 고객 문의 센터 리뉴얼
======================================================== */
.dm-about-premium-wrapper {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.dm-about-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: start;
}

@media (max-width: 992px) {
    .dm-about-grid { grid-template-columns: 1fr; gap: 40px; }
}

/* 왼쪽 정보 패널 */
.dm-about-info-panel {
    padding-top: 20px;
}

.dm-tag {
    display: inline-block;
    padding: 4px 12px;
    background: #005bb5;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 4px;
    margin-bottom: 20px;
}

.dm-main-title {
    font-size: 2.8rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.2;
    margin-bottom: 25px;
    border: none !important;
}

.dm-divider {
    width: 60px;
    height: 4px;
    background: #005bb5;
    margin-bottom: 30px;
}

.dm-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #475569;
    margin-bottom: 40px;
}

.dm-contact-info .item {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* 오른쪽 문의 폼 박스 */
.dm-about-inquiry-box {
    background: #ffffff;
    padding: 45px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.08);
    border-top: 8px solid #005bb5;
}

.dm-about-inquiry-box h2 {
    font-size: 1.8rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 10px;
    border: none !important;
    padding: 0;
}

.dm-about-inquiry-box p.desc {
    color: #64748b;
    margin-bottom: 30px;
    font-size: 1rem;
}

.dm-about-form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .dm-about-form-row { flex-direction: column; gap: 15px; }
}

.dm-about-form-group label {
    display: block;
    font-weight: 700;
    font-size: 0.9rem;
    color: #334155;
    margin-bottom: 8px;
}

.dm-about-form-group input, 
.dm-about-form-group select, 
.dm-about-form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    background: #f8fafc;
    font-size: 1rem;
    transition: all 0.2s;
}

.dm-about-form-group input:focus, .dm-about-form-group select:focus, .dm-about-form-group textarea:focus {
    border-color: #005bb5;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(0, 91, 181, 0.1);
    outline: none;
}

/* 파일 업로드 스타일 */
.dm-file-input-wrapper {
    position: relative;
    border: 2px dashed #cbd5e1;
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    background: #f1f5f9;
    cursor: pointer;
    transition: all 0.2s;
}

.dm-file-input-wrapper:hover { border-color: #005bb5; background: #fff; }
.dm-file-input-wrapper input[type="file"] {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    opacity: 0; cursor: pointer;
}

.dm-icon { font-size: 1.8rem; display: block; margin-bottom: 8px; }

/* 버튼 스타일 */
.dm-about-submit {
    width: 100%;
    padding: 18px;
    background: #005bb5;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 1.2rem;
    font-weight: 800;
    margin-top: 25px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 91, 181, 0.3);
    transition: all 0.2s;
}

.dm-about-submit:hover { background: #004a94; transform: translateY(-2px); }

/* 상태 메시지 */
.dm-form-status {
    margin-top: 20px;
    padding: 14px;
    border-radius: 8px;
    display: none;
    text-align: center;
    font-weight: 700;
}
.dm-form-status.success { display: block; background: #dcfce7; color: #15803d; border: 1px solid #bef264; }
.dm-form-status.loading { display: block; background: #f8fafc; color: #475569; }

/* 개별 인벤토리 카드 - 클릭 가능하게 개선 */
.dm-inventory-card-link {
    text-decoration: none !important;
    display: block;
}

.dm-inventory-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #edf2f7;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.dm-inventory-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 91, 181, 0.15);
}

.dm-card-image {
    position: relative;
    width: 100%;
    aspect-ratio: 1.5; /* 3:2 비율로 변경하여 더 시원하고 크게 노출 */
    background-size: cover;
    background-position: center;
    background-color: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.dm-card-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(0, 91, 181, 0.9);
    color: #fff;
    padding: 4px 12px;
    border-radius: 5px;
    font-size: 0.75rem;
    font-weight: 700;
    backdrop-filter: blur(4px);
}

/* 카드 정보 영역 */
.dm-card-info {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.dm-card-title {
    font-size: 1.5rem !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    margin: 0 !important;
    line-height: 1.4 !important;
    border: none !important;
}

.dm-card-more {
    display: block;
    margin-top: 15px;
    font-size: 0.9rem;
    color: #005bb5;
    font-weight: 700;
}

.spec-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.spec-item .label {
    font-size: 0.75rem;
    color: #94a3b8;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.spec-item .value {
    font-size: 1.1rem;
    color: #0f172a;
    font-weight: 800;
}

/* 문의 버튼 */
.dm-card-btn {
    margin-top: auto;
    display: block;
    text-align: center;
    background: #005bb5;
    color: #fff !important;
    padding: 14px;
    border-radius: 10px;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.2s;
}

.dm-card-btn:hover {
    background: #004a94;
}

/* 기존 아카이브 요소 숨김 (JS가 처리하지만 안전장치) */
.dm-card-processed .entry-header,
.dm-card-processed .entry-summary,
.dm-card-processed .post-thumbnail {
    display: none !important;
}

@media (max-width: 768px) {
    .dm-inventory-grid-active {
        grid-template-columns: 1fr !important;
    }
}

/* ========================================================
   [Phase 6] 홈 화면 (Front Page) 프리미엄 UI
======================================================== */
.dm-hero-section {
    position: relative;
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%);
    padding: 120px 20px;
    text-align: center;
    color: #ffffff;
    overflow: hidden;
}

.dm-hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: url('data:image/svg+xml,%3Csvg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"%3E%3Cg fill="none" fill-rule="evenodd"%3E%3Cg fill="%23ffffff" fill-opacity="0.05"%3E%3Cpath d="M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z"/%3E%3C/g%3E%3C/g%3E%3C/svg%3E');
    opacity: 0.5;
}

.dm-hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.dm-hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 25px;
    letter-spacing: 0.5px;
}

.dm-hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 25px;
    color: #ffffff !important;
    text-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.dm-hero-subtitle {
    font-size: 1.2rem;
    font-weight: 400;
    color: #cbd5e1;
    margin-bottom: 40px;
    line-height: 1.6;
}

.dm-hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.dm-btn-primary {
    background: #005bb5;
    color: #ffffff !important;
    padding: 16px 32px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1.1rem;
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(0, 91, 181, 0.4);
}

.dm-btn-primary:hover {
    background: #004a94;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 91, 181, 0.6);
}

.dm-btn-outline-white {
    background: transparent;
    color: #ffffff !important;
    padding: 16px 32px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1.1rem;
    text-decoration: none;
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s;
}

.dm-btn-outline-white:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #ffffff;
    transform: translateY(-2px);
}

.dm-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.dm-services-section {
    margin-top: -60px;
    position: relative;
    z-index: 3;
    padding-bottom: 80px;
}

.dm-services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.dm-service-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 30px 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    text-decoration: none !important;
    transition: all 0.3s ease;
    border: 1px solid #f1f5f9;
}

.dm-service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 91, 181, 0.12);
    border-color: #e2e8f0;
}

.dm-service-card.highlight {
    background: #005bb5;
    border-color: #005bb5;
}

.dm-service-card.highlight h3, 
.dm-service-card.highlight p {
    color: #ffffff !important;
}

.dm-icon-wrapper {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.dm-service-card h3 {
    font-size: 1.25rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 12px;
}

.dm-service-card p {
    font-size: 0.95rem;
    color: #64748b;
    line-height: 1.5;
    margin: 0;
}

.dm-features-section {
    padding: 80px 0 100px;
    background: #f8fafc;
}

.dm-section-header {
    text-align: center;
    margin-bottom: 60px;
}

.dm-section-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 15px;
}

.dm-section-header p {
    font-size: 1.1rem;
    color: #64748b;
}

.dm-features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.dm-feature-item {
    text-align: center;
    padding: 20px;
}

.dm-feature-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.dm-feature-item h4 {
    font-size: 1.4rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 15px;
}

.dm-feature-item p {
    font-size: 1rem;
    color: #64748b;
    line-height: 1.6;
}

@media (max-width: 992px) {
    .dm-services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .dm-hero-title {
        font-size: 2.8rem;
    }
}

@media (max-width: 768px) {
    .dm-services-grid, .dm-features-grid {
        grid-template-columns: 1fr;
    }
    .dm-hero-buttons {
        flex-direction: column;
    }
    .dm-services-section {
        margin-top: 0;
        padding-top: 40px;
    }
}
