/* style.css - 개선된 FindWM 스타일 */

:root {
    --color-bg: #0f172a;
    --color-panel: #1e293b;
    --color-accent: #38bdf8;
    --color-warning: #f59e0b;
    --color-danger: #ef4444;
    --color-muted: #64748b;
    --color-fg: #e2e8f0;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', 'Segoe UI', sans-serif;
    background: linear-gradient(135deg, var(--color-bg), #1e293b);
    color: var(--color-fg);
    line-height: 1.6;
    min-height: 100vh;
}

.layout-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

header {
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(56, 189, 248, 0.2);
    color: white;
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
}

header h1 {
    font-size: 1.5em;
    font-weight: 800;
    margin: 0;
}

header nav a {
    color: #cbd5e1;
    margin: 0 15px;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

header nav a:hover {
    color: var(--color-accent);
}

.container {
    flex: 1;
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Hero Section */
.hero-main {
    text-align: center;
    margin-bottom: 60px;
    padding: 60px 0;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(56, 189, 248, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.3);
    border-radius: 50px;
    padding: 8px 20px;
    margin-bottom: 30px;
    font-size: 0.9em;
    color: var(--color-accent);
}

.hero-content h2 {
    font-size: 3.5em;
    font-weight: 800;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--color-accent), #06b6d4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.highlight-text {
    color: var(--color-warning);
}

.hero-description {
    font-size: 1.2em;
    color: #94a3b8;
    margin-bottom: 40px;
    line-height: 1.6;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.stat-mini {
    text-align: center;
}

.stat-mini-number {
    display: block;
    font-size: 2em;
    font-weight: 800;
    color: var(--color-accent);
}

.stat-mini-label {
    font-size: 0.9em;
    color: var(--color-muted);
}

/* Main Workspace */
.main-workspace {
    background: rgba(30, 41, 59, 0.5);
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 40px;
}

.workspace-header {
    text-align: center;
    margin-bottom: 40px;
}

.workspace-header h3 {
    font-size: 2em;
    margin-bottom: 10px;
    color: var(--color-fg);
}

.workspace-header p {
    color: #94a3b8;
    font-size: 1.1em;
}

/* Panel Grid */
.panel-grid-enhanced {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 30px;
}

.panel-enhanced {
    flex: 1;
    background: rgba(51, 65, 85, 0.8);
    border: 1px solid rgba(56, 189, 248, 0.2);
    border-radius: 15px;
    overflow: hidden;
    min-height: 500px;
}

.panel-header {
    background: rgba(56, 189, 248, 0.1);
    padding: 20px;
    border-bottom: 1px solid rgba(56, 189, 248, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.panel-header h3 {
    font-size: 1.2em;
    color: var(--color-fg);
    margin: 0;
}

.panel-tools {
    display: flex;
    gap: 10px;
}

.tool-btn {
    background: none;
    border: 1px solid rgba(56, 189, 248, 0.3);
    color: var(--color-accent);
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9em;
    transition: all 0.3s ease;
}

.tool-btn:hover:enabled {
    background: rgba(56, 189, 248, 0.1);
}

.tool-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* Input Panel */
.input-area {
    padding: 20px;
    height: 300px;
    display: flex;
    flex-direction: column;
}

.input-area textarea {
    flex: 1;
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid rgba(56, 189, 248, 0.2);
    border-radius: 10px;
    padding: 15px;
    color: var(--color-fg);
    font-family: inherit;
    font-size: 1em;
    resize: none;
    outline: none;
    transition: border-color 0.3s ease;
}

.input-area textarea:focus {
    border-color: var(--color-accent);
}

.input-area textarea::placeholder {
    color: var(--color-muted);
}

.input-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
    font-size: 0.85em;
    color: var(--color-muted);
}

.separator {
    margin: 0 10px;
}

.file-upload-area {
    margin: 20px;
    padding: 30px;
    border: 2px dashed rgba(56, 189, 248, 0.3);
    border-radius: 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.file-upload-area:hover,
.file-upload-area.drag-over {
    border-color: var(--color-accent);
    background: rgba(56, 189, 248, 0.05);
}

/* 결과 관련 */
.result-container {
    padding: 20px;
    min-height: 400px;
}

.status-idle {
    text-align: center;
    padding: 60px 20px;
}

.status-icon {
    font-size: 3em;
    margin-bottom: 20px;
}

.status-text h4 {
    color: var(--color-fg);
    margin-bottom: 10px;
}

.status-text p {
    color: var(--color-muted);
}

.no-watermark {
    color: #10b981;
    padding: 20px;
    text-align: center;
    font-size: 1.1em;
}

.watermark-item {
    padding: 10px;
    margin: 5px 0;
    background: rgba(239, 68, 68, 0.1);
    border-left: 3px solid var(--color-danger);
    border-radius: 5px;
    color: #fecaca;
}

.detection-summary {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    padding: 15px;
    background: rgba(56, 189, 248, 0.1);
    border-radius: 10px;
}

.summary-item {
    text-align: center;
}

.summary-label {
    display: block;
    font-size: 0.9em;
    color: var(--color-muted);
    margin-bottom: 5px;
}

.summary-value {
    display: block;
    font-size: 1.4em;
    font-weight: 600;
    color: var(--color-accent);
}

.cleaned-text-area {
    max-height: 300px;
    overflow-y: auto;
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid rgba(56, 189, 248, 0.2);
    border-radius: 10px;
    padding: 15px;
    font-family: monospace;
    line-height: 1.5;
    color: var(--color-fg);
}

.cleaned-text-area pre {
    white-space: pre-wrap;
    word-break: break-word;
    margin: 0;
    padding: 0;
}


/* Buttons */
.action-center {
    text-align: center;
}

.primary-actions,
.secondary-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.btn-primary, .btn-secondary, .btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 15px 30px;
    border: none;
    border-radius: 12px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-accent), #06b6d4);
    color: white;
}

.btn-secondary {
    background: linear-gradient(135deg, var(--color-warning), #d97706);
    color: white;
}

.btn-ghost {
    background: transparent;
    border: 1px solid rgba(148, 163, 184, 0.3);
    color: var(--color-muted);
}

.btn-primary:hover,
.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(56, 189, 248, 0.3);
}

.btn-ghost:hover {
    background: rgba(148, 163, 184, 0.1);
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background: var(--color-panel);
    border-radius: 15px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px;
    border-bottom: 1px solid rgba(56, 189, 248, 0.2);
}

.modal-header h3 {
    color: var(--color-fg);
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    color: var(--color-muted);
    font-size: 1.5em;
    cursor: pointer;
}

.modal-body {
    padding: 25px;
}

.help-section {
    margin-bottom: 25px;
}

.help-section h4 {
    color: var(--color-accent);
    margin-bottom: 10px;
}

.help-section p {
    color: #cbd5e1;
    line-height: 1.6;
}

/* Footer */
footer {
    background: rgba(15, 23, 42, 0.9);
    text-align: center;
    padding: 20px;
    color: var(--color-muted);
    border-top: 1px solid rgba(56, 189, 248, 0.1);
}

/* Mobile */
@media (max-width: 768px) {
    .panel-grid-enhanced {
        flex-direction: column;
        gap: 20px;
    }

    .hero-content h2 {
        font-size: 2em;
    }

    .btn-primary, .btn-secondary, .btn-ghost {
        padding: 12px 20px;
        font-size: 0.95em;
    }

    .hero-stats {
        flex-direction: column;
        gap: 20px;
    }

    header h1 {
        font-size: 1.2em;
    }

    header nav a {
        font-size: 0.85em;
        margin: 0 8px;
    }

    .container {
        padding: 20px 10px;
    }

    .input-area {
        padding: 15px 10px;
    }

    .file-upload-area {
        margin: 10px;
        padding: 20px;
    }

    .panel-header h3 {
        font-size: 1em;
    }

    .tool-btn {
        padding: 6px 10px;
        font-size: 0.85em;
    }

	.main-workspace {
    padding: 10px !important;
  }

  .panel-enhanced {
    padding: 0 !important;
    border-radius: 10px;
  }

  .input-area {
    padding: 10px !important;
  }

  .file-upload-area {
    margin: 10px !important;
  }
}

/* 기술소개 tech-section 보완 */

.tech-hero {
    text-align: center;
    padding: 60px 20px;
    background: rgba(15, 23, 42, 0.6);
    border-radius: 15px;
    margin-bottom: 40px;
}

.tech-hero-content h2 {
    font-size: 2.5em;
    font-weight: 700;
    color: var(--color-fg);
    margin-bottom: 10px;
}

.tech-subtitle {
    font-size: 1.1em;
    color: var(--color-muted);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.7;
}

.tech-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.tech-section {
    margin-bottom: 60px;
}

.section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
    color: var(--color-fg);
    text-align: center;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.tech-card {
    background: rgba(51, 65, 85, 0.6);
    border: 1px solid rgba(56, 189, 248, 0.15);
    border-radius: 12px;
    padding: 25px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tech-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(56, 189, 248, 0.1);
}

.tech-icon {
    font-size: 2em;
    margin-bottom: 10px;
    color: var(--color-accent);
}

.tech-card h4 {
    font-size: 1.2em;
    margin-bottom: 10px;
    color: var(--color-fg);
}

.tech-card p {
    font-size: 0.95em;
    color: var(--color-muted);
    line-height: 1.6;
    margin-bottom: 15px;
}

.tech-features {
    list-style: disc;
    padding-left: 20px;
    color: var(--color-fg);
    font-size: 0.9em;
    margin: 0;
}

.future-tech .tech-card.future {
    background: rgba(30, 41, 59, 0.5);
    border-style: dashed;
    border-color: var(--color-warning);
    position: relative;
}

.status-label.coming-soon {
    display: inline-block;
    font-size: 0.75em;
    color: var(--color-warning);
    background: rgba(245, 158, 11, 0.1);
    padding: 4px 8px;
    border-radius: 8px;
    margin-top: 8px;
}

.tech-stats {
    background: rgba(15, 23, 42, 0.6);
    padding: 40px 20px;
    border-radius: 15px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 20px;
    text-align: center;
}

.stat-item .stat-number {
    font-size: 2em;
    font-weight: 800;
    color: var(--color-accent);
}

.stat-item .stat-label {
    color: var(--color-muted);
    font-size: 0.9em;
    margin-top: 5px;
}

.contact-container {
    max-width: 600px;
    margin: 0 auto 60px auto;
    padding: 30px;
    background: rgba(30, 41, 59, 0.5);
    border-radius: 20px;
}

.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form label {
    display: block;
    font-size: 0.95em;
    margin-bottom: 8px;
    color: var(--color-fg);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px 15px;
    border-radius: 10px;
    border: 1px solid rgba(56, 189, 248, 0.3);
    background: rgba(15, 23, 42, 0.5);
    color: var(--color-fg);
    font-size: 1em;
    font-family: inherit;
    resize: vertical;
    outline: none;
    transition: border-color 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--color-accent);
}

.privacy-note {
    margin-top: 20px;
    font-size: 0.85em;
    color: var(--color-muted);
    text-align: center;
}

.flash-message.danger {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  padding: 12px 15px;
  border-radius: 10px;
  margin-top: 10px;
  font-weight: 500;
}

/* 🔶 문의 폼 제목 영역 */
.contact-form-section {
    max-width: 600px;
    margin: 0 auto 60px auto;
    padding: 40px 30px;
    background: rgba(30, 41, 59, 0.5);
    border-radius: 20px;
}

/* 🔷 폼 타이틀 */
.contact-form-section h2 {
    font-size: 2em;
    color: var(--color-accent);
    margin-bottom: 10px;
    text-align: center;
}

.contact-form-section p {
    font-size: 1em;
    color: var(--color-muted);
    margin-bottom: 30px;
    text-align: center;
}

/* 📝 문의 폼 입력 필드 */
.contact-form {
    display: flex;
    flex-direction: column;
}

.contact-form label {
    margin-top: 15px;
    margin-bottom: 5px;
    font-weight: 600;
    color: var(--color-fg);
}

.contact-form input,
.contact-form textarea {
    padding: 12px;
    border-radius: 10px;
    border: 1px solid rgba(56, 189, 248, 0.2);
    background: rgba(15, 23, 42, 0.5);
    color: var(--color-fg);
    font-size: 1em;
    resize: vertical;
    transition: border-color 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--color-accent);
}

/* 📬 제출 버튼 */
.contact-form button {
    margin-top: 30px;
    padding: 14px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--color-accent), #06b6d4);
    color: white;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.contact-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(56, 189, 248, 0.3);
}

/* ✅ 메시지 표시 */
.flash-messages {
    margin-bottom: 20px;
}

.flash.success {
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
    padding: 12px;
    border-left: 4px solid #22c55e;
    border-radius: 6px;
}

.flash.danger {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    padding: 12px;
    border-left: 4px solid #ef4444;
    border-radius: 6px;
}
