/* ionflow.xyz Common Styles */

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
    background: #fff;
    color: #1d1d1f;
    -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
.code-font { font-family: 'JetBrains Mono', monospace; }

/* Header */
header {
    background: rgba(255,255,255,0.8);
    backdrop-filter: saturate(180%) blur(20px);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid #d2d2d7;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 22px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo { font-size: 21px; font-weight: 600; }
nav { display: flex; gap: 28px; }
nav a { font-size: 12px; opacity: 0.8; }
nav a:hover { opacity: 1; }

/* Page Header */
.page-header {
    text-align: center;
    padding: 60px 22px 40px;
    background: #fbfbfd;
}
.page-header h1 { font-size: 48px; font-weight: 700; margin-bottom: 8px; }
.page-header p { font-size: 19px; color: #86868b; }

/* Main */
main { max-width: 1200px; margin: 0 auto; padding: 40px 22px 80px; }

/* Panel */
.panel {
    background: #f5f5f7;
    border-radius: 18px;
    padding: 24px;
}
.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}
.panel-title { font-size: 17px; font-weight: 600; }
.panel-actions { display: flex; gap: 8px; }
.panel-actions button {
    padding: 6px 12px;
    background: #e8e8ed;
    border: none;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
}
.panel-actions button:hover { background: #d2d2d7; }

/* Form Elements */
input[type="text"],
input[type="password"],
input[type="tel"],
input[type="email"],
input[type="url"],
select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #d2d2d7;
    border-radius: 10px;
    font-size: 15px;
    background: #fff;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: #86868b; }

textarea {
    width: 100%;
    padding: 16px;
    border: 1px solid #d2d2d7;
    border-radius: 12px;
    font-size: 13px;
    resize: none;
    background: #fff;
    font-family: inherit;
}

input[type="color"] {
    width: 100%;
    height: 40px;
    border: 1px solid #d2d2d7;
    border-radius: 8px;
    cursor: pointer;
    background: #fff;
}

/* Buttons */
.action-btn {
    padding: 14px 28px;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}
.action-btn.primary { background: #1d1d1f; color: #fff; }
.action-btn.primary:hover { background: #424245; }
.action-btn.success { background: #34c759; color: #fff; }
.action-btn.success:hover { background: #2db350; }
.action-btn.purple { background: #af52de; color: #fff; }
.action-btn.purple:hover { background: #9b3fd1; }
.action-btn.blue { background: #007aff; color: #fff; }
.action-btn.blue:hover { background: #0063cc; }

.generate-btn {
    width: 100%;
    padding: 14px;
    background: #1d1d1f;
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}
.generate-btn:hover { background: #424245; }

/* Status Message - Fixed height to prevent layout shift */
.status {
    text-align: center;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 24px;
    font-size: 14px;
    height: 42px;
    opacity: 0;
    transition: opacity 0.2s;
}
.status.success { opacity: 1; background: #d1f5d3; color: #1d7324; }
.status.error { opacity: 1; background: #fce8e8; color: #c53030; }
.status.show { opacity: 1; background: #d1f5d3; color: #1d7324; }

/* Output Area */
.output-area {
    width: 100%;
    padding: 16px;
    border: 1px solid #d2d2d7;
    border-radius: 12px;
    font-size: 13px;
    overflow: auto;
    background: #fff;
}
.output-area pre {
    margin: 0;
    white-space: pre-wrap;
    word-break: break-word;
    overflow-wrap: break-word;
}

/* Ad Space */
.ad-space {
    max-width: 728px;
    margin: 40px auto;
    height: 90px;
    background: #f5f5f7;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #86868b;
    font-size: 12px;
}

/* Footer */
footer {
    background: #f5f5f7;
    padding: 20px 22px;
    text-align: center;
    font-size: 12px;
    color: #86868b;
}
footer p { margin-bottom: 12px; }
footer a { margin: 0 8px; }
footer a:hover { color: #1d1d1f; }
.footer-links { margin-top: 12px; }

/* Responsive */
@media (max-width: 768px) {
    .page-header h1 { font-size: 32px; }
    nav { display: none; }
}
