/*
Theme Name: WebTools Theme
Theme URI: https://redmoon777.com/
Author: WebTools
Author URI: https://redmoon777.com/
Description: Calculator and utility tools portal theme for WordPress.
Version: 1.0.0
Requires at least: 6.5
Requires PHP: 7.4
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: webtools-theme
*/

/*
 * 기본 스타일
 */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: #ffffff;
    color: #222222;
    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        "Noto Sans KR",
        "Apple SD Gothic Neo",
        Arial,
        sans-serif;
    line-height: 1.7;
}

a {
    color: inherit;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

img {
    max-width: 100%;
    height: auto;
}

/*
 * 공통 컨테이너
 */

.webtools-container {
    width: min(1180px, calc(100% - 40px));
    margin-left: auto;
    margin-right: auto;
}

/*
 * 헤더
 */

.webtools-header {
    border-bottom: 1px solid #eeeeee;
    background: #ffffff;
}

.webtools-header-inner {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.webtools-logo {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.webtools-nav {
    display: flex;
    align-items: center;
    gap: 24px;
}

.webtools-nav a {
    font-size: 15px;
    color: #444444;
}

.webtools-nav a:hover {
    color: #000000;
    text-decoration: none;
}

/*
 * 메인 콘텐츠
 */

.webtools-main {
    min-height: 600px;
}

/*
 * 히어로 영역
 */

.webtools-hero {
    padding: 80px 20px;
    text-align: center;
    background: #f7f8fa;
}

.webtools-hero h1 {
    margin: 0 0 16px;
    font-size: clamp(32px, 5vw, 52px);
    line-height: 1.2;
    letter-spacing: -1.5px;
}

.webtools-hero p {
    max-width: 680px;
    margin: 0 auto;
    color: #666666;
    font-size: 18px;
}

/*
 * 검색창
 */

.webtools-search {
    width: min(720px, 100%);
    margin: 30px auto 0;
    display: flex;
    gap: 10px;
}

.webtools-search input {
    flex: 1;
    min-width: 0;
    height: 52px;
    padding: 0 18px;
    border: 1px solid #dddddd;
    border-radius: 8px;
    background: #ffffff;
    font-size: 16px;
}

.webtools-search button {
    height: 52px;
    padding: 0 24px;
    border: 0;
    border-radius: 8px;
    background: #222222;
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}

.webtools-search button:hover {
    background: #444444;
}

/*
 * 섹션
 */

.webtools-section {
    padding: 60px 0;
}

.webtools-section-title {
    margin: 0 0 10px;
    font-size: 30px;
    letter-spacing: -0.8px;
}

.webtools-section-description {
    margin: 0 0 30px;
    color: #666666;
}

/*
 * 카드 그리드
 */

.webtools-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.webtools-card {
    padding: 26px;
    border: 1px solid #e7e7e7;
    border-radius: 12px;
    background: #ffffff;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.webtools-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
}

.webtools-card h3 {
    margin: 0 0 8px;
    font-size: 20px;
}

.webtools-card p {
    margin: 0;
    color: #666666;
    font-size: 14px;
}

/*
 * 계산기 페이지
 */

.webtools-calculator {
    max-width: 820px;
    margin: 60px auto;
    padding: 30px;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    background: #ffffff;
}

.webtools-calculator h1 {
    margin-top: 0;
    margin-bottom: 12px;
}

.webtools-calculator-description {
    margin-bottom: 30px;
    color: #666666;
}

/*
 * 계산기 입력
 */

.webtools-form-group {
    margin-bottom: 20px;
}

.webtools-form-group label {
    display: block;
    margin-bottom: 7px;
    font-size: 14px;
    font-weight: 600;
}

.webtools-form-group input,
.webtools-form-group select {
    width: 100%;
    height: 48px;
    padding: 0 14px;
    border: 1px solid #dcdcdc;
    border-radius: 7px;
    background: #ffffff;
    font-size: 16px;
}

.webtools-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 24px;
    border: 0;
    border-radius: 7px;
    background: #222222;
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}

.webtools-button:hover {
    background: #444444;
}

/*
 * 계산 결과
 */

.webtools-result {
    margin-top: 30px;
    padding: 24px;
    border-radius: 10px;
    background: #f7f8fa;
}

.webtools-result h2 {
    margin-top: 0;
    font-size: 20px;
}

.webtools-result-value {
    font-size: 32px;
    font-weight: 800;
}

/*
 * 푸터
 */

.webtools-footer {
    margin-top: 60px;
    padding: 40px 0;
    border-top: 1px solid #eeeeee;
    background: #fafafa;
    color: #666666;
    font-size: 14px;
}

.webtools-footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

/*
 * 모바일
 */

@media (max-width: 768px) {

    .webtools-container {
        width: min(100% - 28px, 1180px);
    }

    .webtools-header-inner {
        min-height: 64px;
    }

    .webtools-nav {
        gap: 14px;
    }

    .webtools-nav a {
        font-size: 13px;
    }

    .webtools-hero {
        padding: 60px 15px;
    }

    .webtools-hero p {
        font-size: 16px;
    }

    .webtools-search {
        flex-direction: column;
    }

    .webtools-search input,
    .webtools-search button {
        width: 100%;
    }

    .webtools-grid {
        grid-template-columns: 1fr;
    }

    .webtools-section {
        padding: 45px 0;
    }

    .webtools-section-title {
        font-size: 26px;
    }

    .webtools-calculator {
        margin: 35px auto;
        padding: 20px;
    }

    .webtools-footer-inner {
        flex-direction: column;
        align-items: flex-start;
    }
}