/**
 * 파일명: style.css
 * 파일경로: /home/urlkr/public_html/p/icon-maker/assets/css/
 * 기능: 사이트 아이콘 자동 생성기 스타일
 * 작성일: 2026-05-30
 * 수정일: 2026-05-30
 */

* {
    box-sizing: border-box;
}

:root {
    --primary: #4f46e5;
    --primary-dark: #4338ca;
    --primary-light: #eef2ff;
    --bg: #f5f7fb;
    --card: #ffffff;
    --line: #d8e0ec;
    --text: #111827;
    --muted: #64748b;
    --danger: #dc2626;
    --success: #047857;
    --shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
}

body {
    margin: 0;
    font-family: Arial, "Malgun Gothic", "Apple SD Gothic Neo", sans-serif;
    background:
        radial-gradient(circle at top left, rgba(79, 70, 229, 0.12), transparent 34%),
        linear-gradient(180deg, #f8fafc 0%, var(--bg) 100%);
    color: var(--text);
}

.wrap {
    max-width: 1180px;
    margin: 0 auto;
    padding: 42px 20px 70px;
}

.page-header {
    margin-bottom: 24px;
}

.eyebrow {
    display: inline-flex;
    margin-bottom: 10px;
    padding: 6px 10px;
    border-radius: 999px;
    background: var(--primary-light);
    color: var(--primary-dark);
    font-size: 12px;
    font-weight: 700;
}

.page-header h1 {
    margin: 0 0 10px;
    font-size: 34px;
    font-weight: 800;
    letter-spacing: -0.04em;
}

.page-header p {
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
}

.card,
.result,
.code-box {
    background: var(--card);
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: 18px;
    box-shadow: var(--shadow);
}

.card {
    padding: 24px;
}

.upload-area {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 220px;
    gap: 18px;
    min-height: 190px;
    padding: 22px;
    border: 2px dashed #a5b4fc;
    border-radius: 18px;
    background:
        linear-gradient(135deg, rgba(238, 242, 255, 0.9), rgba(255, 255, 255, 0.95));
    cursor: pointer;
    transition: 0.2s ease;
}

.upload-area:hover,
.upload-area.is-dragover {
    border-color: var(--primary);
    background:
        linear-gradient(135deg, rgba(224, 231, 255, 1), rgba(255, 255, 255, 1));
    transform: translateY(-1px);
}

.upload-area input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.upload-inner {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    pointer-events: none;
}

.upload-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 14px;
    border-radius: 16px;
    background: var(--primary);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    font-weight: 800;
    box-shadow: 0 10px 20px rgba(79, 70, 229, 0.28);
}

.upload-inner strong {
    font-size: 20px;
    line-height: 1.4;
    letter-spacing: -0.03em;
}

.upload-inner span {
    margin-top: 8px;
    color: var(--muted);
    font-size: 14px;
}

.upload-inner em {
    margin-top: 14px;
    color: var(--primary-dark);
    font-size: 13px;
    font-style: normal;
    font-weight: 700;
    word-break: break-all;
}

.source-preview {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 146px;
    border: 1px solid #c7d2fe;
    border-radius: 14px;
    background:
        linear-gradient(45deg, #f8fafc 25%, transparent 25%),
        linear-gradient(-45deg, #f8fafc 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, #f8fafc 75%),
        linear-gradient(-45deg, transparent 75%, #f8fafc 75%);
    background-size: 18px 18px;
    background-position: 0 0, 0 9px, 9px -9px, -9px 0;
    overflow: hidden;
    pointer-events: none;
}

.source-preview img {
    max-width: 100%;
    max-height: 150px;
    object-fit: contain;
}

.output-options {
    margin-top: 22px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.option-group {
    border: 1px solid var(--line);
    border-radius: 14px;
    overflow: hidden;
    background: #ffffff;
}

.option-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 12px 16px;
    background: #f1f5f9;
    border-bottom: 1px solid var(--line);
}

.option-head strong {
    font-size: 15px;
    margin-right: 8px;
}

.option-head span {
    font-size: 13px;
    color: #475569;
}

.select-group-btn {
    min-width: auto;
    height: 34px;
    padding: 0 12px;
    border: 0;
    border-radius: 9px;
    background: var(--primary);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.option-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(235px, 1fr));
    gap: 10px;
    padding: 14px 16px;
}

.option-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 68px;
    padding: 12px;
    border: 1px solid #c7d2fe;
    border-radius: 12px;
    background: #fafaff;
    cursor: pointer;
    transition: 0.2s ease;
}

.option-card:hover {
    border-color: var(--primary);
    box-shadow: 0 8px 20px rgba(79, 70, 229, 0.08);
}

.option-card input {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
}

.option-main {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.option-main strong {
    font-size: 14px;
    color: var(--text);
}

.option-main small {
    font-size: 12px;
    color: var(--muted);
}

.actions {
    margin-top: 24px;
}

button,
.download-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 190px;
    height: 50px;
    padding: 0 22px;
    border: 0;
    border-radius: 13px;
    background: var(--primary);
    color: #fff;
    font-size: 15px;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 12px 25px rgba(79, 70, 229, 0.22);
}

button:hover,
.download-btn:hover {
    background: var(--primary-dark);
}

button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.status {
    margin-top: 18px;
    padding: 14px 16px;
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.6;
}

.status.info {
    background: #eff6ff;
    color: #1d4ed8;
}

.status.success {
    background: #ecfdf5;
    color: var(--success);
}

.status.error {
    background: #fef2f2;
    color: var(--danger);
}

.result {
    margin-top: 28px;
    padding: 24px;
}

.result-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 24px;
}

.result-top h2 {
    margin: 0 0 4px;
    font-size: 24px;
    letter-spacing: -0.03em;
}

.result-top p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

.preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.preview-item {
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 14px;
    background: #fff;
}

.preview-thumb {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 132px;
    border: 1px dashed #cbd5e1;
    border-radius: 12px;
    background:
        linear-gradient(45deg, #f8fafc 25%, transparent 25%),
        linear-gradient(-45deg, #f8fafc 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, #f8fafc 75%),
        linear-gradient(-45deg, transparent 75%, #f8fafc 75%);
    background-size: 16px 16px;
    background-position: 0 0, 0 8px, 8px -8px, -8px 0;
    overflow: hidden;
    margin-bottom: 12px;
}

.preview-thumb img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.preview-size {
    display: inline-flex;
    width: fit-content;
    margin-bottom: 8px;
    padding: 4px 9px;
    border-radius: 999px;
    background: var(--primary-light);
    color: var(--primary-dark);
    font-size: 12px;
    font-weight: 800;
}

.preview-name {
    margin-bottom: 6px;
    font-size: 14px;
    font-weight: 800;
    word-break: keep-all;
}

.preview-usage {
    min-height: 38px;
    margin-bottom: 12px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.55;
}

.preview-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 34px;
    padding: 0 12px;
    border-radius: 9px;
    background: #f1f5f9;
    color: #334155;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
}

.preview-link:hover {
    background: #e2e8f0;
}

.code-box {
    padding: 20px;
}

.code-box h3 {
    margin: 0 0 6px;
    font-size: 18px;
}

.code-box p {
    margin: 0 0 12px;
    color: var(--muted);
    font-size: 13px;
}

pre {
    margin: 0;
    padding: 16px;
    border-radius: 12px;
    background: #0f172a;
    color: #e2e8f0;
    overflow-x: auto;
    line-height: 1.7;
    font-size: 13px;
}

.hidden {
    display: none;
}


.code-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 12px;
}

.copy-btn {
    min-width: 92px;
    height: 36px;
    padding: 0 12px;
    border: 0;
    border-radius: 9px;
    background: #334155;
    color: #ffffff;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: none;
}

.copy-btn:hover {
    background: #1e293b;
}


.tool-intro {
    margin-bottom: 18px;
}

.tool-intro h2 {
    margin: 0 0 8px;
    font-size: 22px;
    letter-spacing: -0.04em;
}

.tool-intro p {
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
}

.seo-section {
    margin-top: 28px;
    padding: 26px;
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: 18px;
    background: #ffffff;
    box-shadow: var(--shadow);
}

.seo-section h2 {
    margin: 0 0 12px;
    font-size: 23px;
    letter-spacing: -0.04em;
}

.seo-section p {
    margin: 0;
    color: var(--muted);
    line-height: 1.8;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 18px;
}

.info-grid article {
    padding: 18px;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    background: #f8fafc;
}

.info-grid h3 {
    margin: 0 0 8px;
    font-size: 16px;
}

.info-grid p {
    font-size: 14px;
}

.step-list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin: 18px 0 0;
    padding: 0;
    list-style: none;
    counter-reset: step;
}

.step-list li {
    position: relative;
    padding: 48px 16px 18px;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    background: #f8fafc;
    counter-increment: step;
}

.step-list li::before {
    content: counter(step);
    position: absolute;
    left: 16px;
    top: 14px;
    width: 26px;
    height: 26px;
    border-radius: 999px;
    background: var(--primary);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 800;
}

.step-list strong {
    display: block;
    margin-bottom: 6px;
    font-size: 15px;
}

.step-list span {
    display: block;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.6;
}

.faq-section details {
    border-bottom: 1px solid #e2e8f0;
}

.faq-section details:last-child {
    border-bottom: 0;
}

.faq-section summary {
    padding: 16px 0;
    font-weight: 800;
    cursor: pointer;
}

.faq-section details p {
    padding: 0 0 16px;
    font-size: 14px;
}

.site-footer {
    margin-top: 28px;
    padding: 20px 0 0;
    color: var(--muted);
    font-size: 13px;
    text-align: center;
}



@media (max-width: 768px) {
    .wrap {
        padding: 28px 14px 50px;
    }

    .page-header h1 {
        font-size: 28px;
    }

    .card,
    .result {
        padding: 18px;
    }

    .upload-area {
        grid-template-columns: 1fr;
        padding: 18px;
    }

    .upload-inner strong {
        font-size: 17px;
    }

    .option-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .option-grid {
        grid-template-columns: 1fr;
    }

    .result-top {
        flex-direction: column;
        align-items: flex-start;
    }
	
	.code-head {
		flex-direction: column;
	}

	.copy-btn {
		width: 100%;
	}

    .download-btn {
        width: 100%;
    }
	
	.info-grid,
	.step-list {
		grid-template-columns: 1fr;
	}

	.seo-section {
		padding: 20px;
	}
	
	
}