/* Natural Talk - Handmade Personality */

:root {
    --text: #1a1a1a;
    --text-secondary: #444;
    --border: #1a1a1a;
    --bg: #fafafa;
    --accent: #1a1a1a;
}

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

body {
    font-family: 'Courier New', Courier, monospace;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Site Header */
.site-header {
    text-align: center;
    padding: 20px 0 10px;
}

.header-title {
    font-size: 48px;
    font-weight: bold;
    letter-spacing: 2px;
    position: relative;
    display: inline-block;
}

/* Wavy underline */
.header-title::after {
    content: '';
    display: block;
    width: 100%;
    height: 12px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 12' preserveAspectRatio='none'%3E%3Cpath d='M0,6 Q5,0 10,6 T20,6 T30,6 T40,6 T50,6 T60,6 T70,6 T80,6 T90,6 T100,6' fill='none' stroke='%231a1a1a' stroke-width='2'/%3E%3C/svg%3E") repeat-x;
    background-size: 40px 12px;
    margin-top: 5px;
}

/* Subtitle */
.subtitle {
    text-align: center;
    font-style: italic;
    font-size: 18px;
    margin-top: 20px;
    color: var(--text-secondary);
}

/* Dashed separator */
.dashed-line {
    border: none;
    border-top: 2px dashed var(--border);
    margin: 40px auto;
    width: 80%;
}

/* Navigation */
nav {
    text-align: center;
    padding: 20px 0;
    margin-bottom: 30px;
}

nav a {
    color: var(--text);
    text-decoration: none;
    margin: 0 20px;
    font-size: 16px;
    font-weight: bold;
    border-bottom: 2px solid transparent;
    padding-bottom: 3px;
}

nav a:hover {
    border-bottom: 2px solid var(--border);
}

nav a.active {
    border-bottom: 2px solid var(--border);
}

/* Main navigation buttons */
.main-nav {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 30px auto 40px;
    padding: 0;
}

.main-nav .btn {
    min-width: 180px;
    text-align: center;
}

/* Typography */
h1 {
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 30px;
    text-align: center;
}

h2 {
    font-size: 20px;
    font-weight: bold;
    margin: 30px 0 15px;
    text-decoration: underline;
    text-decoration-style: wavy;
    text-underline-offset: 5px;
}

h3 {
    font-size: 18px;
    font-weight: bold;
    margin: 25px 0 15px;
}

p {
    margin-bottom: 20px;
    font-size: 16px;
}

/* Intro text */
.intro-text {
    font-size: 18px;
    line-height: 1.8;
    text-align: center;
    max-width: 700px;
    margin: 0 auto 40px;
}

/* Feature boxes */
.feature-boxes {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin: 40px 0;
}

.feature-box {
    border: 2px solid var(--border);
    padding: 25px;
    width: 280px;
    min-height: 280px;
    text-align: center;
}

.feature-box h3 {
    text-decoration: underline;
    text-decoration-style: solid;
    text-underline-offset: 4px;
    margin-bottom: 20px;
    font-size: 18px;
}

.feature-box p {
    font-size: 15px;
    line-height: 1.7;
}

/* Lists */
ul, ol {
    margin-left: 25px;
    margin-bottom: 20px;
}

li {
    margin-bottom: 10px;
    font-size: 15px;
}

/* Forms */
.form-group {
    margin-bottom: 25px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    font-size: 15px;
}

input[type="text"],
select {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid var(--border);
    font-size: 15px;
    background: var(--bg);
    font-family: 'Courier New', Courier, monospace;
}

input:focus,
select:focus {
    outline: none;
    background: #fff;
}

/* Radio buttons */
.radio-group {
    display: flex;
    gap: 25px;
    margin-top: 8px;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
}

input[type="radio"] {
    width: 18px;
    height: 18px;
}

/* Buttons */
button,
.btn {
    padding: 12px 24px;
    background: var(--bg);
    color: var(--text);
    border: 2px solid var(--border);
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    font-family: 'Courier New', Courier, monospace;
    transition: all 0.2s;
}

button:hover,
.btn:hover {
    background: var(--text);
    color: var(--bg);
}

button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-secondary {
    background: transparent;
}

.btn-text {
    border: none;
    background: transparent;
    text-decoration: underline;
}

.btn-text:hover {
    background: transparent;
    color: var(--text);
}

/* Recording Interface */
.recorder {
    border: 2px solid var(--border);
    padding: 40px;
    text-align: center;
    margin: 25px 0;
}

.timer {
    font-size: 56px;
    font-family: 'Courier New', Courier, monospace;
    font-weight: bold;
    margin-bottom: 20px;
}

.recording-indicator {
    width: 14px;
    height: 14px;
    background: var(--text);
    border-radius: 50%;
    display: inline-block;
    margin-right: 10px;
    opacity: 0;
}

.recording-indicator.active {
    opacity: 1;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.status {
    color: var(--text-secondary);
    margin-bottom: 20px;
    font-size: 15px;
}

/* Progress bar */
.progress-bar {
    width: 100%;
    height: 4px;
    background: transparent;
    border: 1px solid var(--border);
    margin: 20px 0;
}

.progress-fill {
    height: 100%;
    background: var(--text);
    width: 0%;
    transition: width 0.1s linear;
}

/* Archive */
.filters {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 2px dashed var(--border);
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.filter-group label {
    font-size: 13px;
    font-weight: bold;
}

.filter-group select {
    min-width: 150px;
    font-size: 14px;
}

/* Story list */
.story-list {
    list-style: none;
    margin: 0;
}

.story-item {
    border: 2px solid var(--border);
    padding: 20px;
    margin-bottom: 15px;
    cursor: pointer;
    transition: all 0.2s;
}

.story-item:hover {
    background: #fff;
    box-shadow: 4px 4px 0 var(--border);
    transform: translate(-2px, -2px);
}

.story-item div:first-child {
    font-size: 17px;
    font-weight: bold;
    margin-bottom: 8px;
}

.story-meta {
    color: var(--text-secondary);
    font-size: 14px;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg);
    z-index: 1000;
    padding: 40px 20px;
    overflow: auto;
}

.modal.active {
    display: block;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: 2px solid var(--border);
    font-size: 20px;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Courier New', Courier, monospace;
}

.modal-close:hover {
    background: var(--text);
    color: var(--bg);
}

.modal-content {
    max-width: 600px;
    margin: 60px auto 0;
    border: 2px solid var(--border);
    padding: 30px;
}

/* Audio player */
audio {
    width: 100%;
    margin: 20px 0;
    border: 2px solid var(--border);
}

/* Pagination */
.pagination {
    display: flex;
    gap: 10px;
    margin-top: 30px;
    justify-content: center;
}

.page-btn {
    padding: 8px 14px;
    min-width: 40px;
    font-size: 14px;
}

.page-btn.active {
    background: var(--text);
    color: var(--bg);
}

/* Utility */
.hidden {
    display: none !important;
}

.text-secondary {
    color: var(--text-secondary);
}

.mt-20 {
    margin-top: 25px;
}

.mb-20 {
    margin-bottom: 25px;
}

/* Recording controls */
.recording-controls {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 25px;
}

/* Form row */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 700px) {
    body {
        font-size: 15px;
        padding: 30px 15px;
    }
    
    .header-title {
        font-size: 36px;
    }
    
    h1 {
        font-size: 24px;
    }
    
    .feature-boxes {
        flex-direction: column;
        align-items: center;
    }
    
    .feature-box {
        width: 100%;
        max-width: 320px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .timer {
        font-size: 40px;
    }
}

/* Checklist */
.checklist {
    list-style: none;
    margin: 0;
}

.checklist li {
    padding: 8px 0;
    font-size: 15px;
}

.checklist li::before {
    content: "→ ";
    font-weight: bold;
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    border: 2px dashed var(--border);
    margin: 30px 0;
}

/* Recording instructions */
.recording-instructions {
    background: #fff;
    border: 2px solid var(--border);
    padding: 25px;
    margin-bottom: 30px;
}

.recording-instructions p {
    margin-bottom: 15px;
}

.recording-instructions .checklist {
    margin: 0;
}

/* Language selector */
.language-selector {
    text-align: center;
    margin: 20px 0;
    padding: 10px;
}

.language-selector label {
    display: inline;
    margin-right: 10px;
    font-weight: bold;
}

.language-selector select {
    display: inline-block;
    width: auto;
    min-width: 150px;
}

/* Pseudonym generator */
.pseudonym-generator {
    display: flex;
    gap: 10px;
    align-items: center;
}

.pseudonym-generator input {
    flex: 1;
    background: #f0f0f0;
}

.pseudonym-generator button {
    white-space: nowrap;
    padding: 10px 16px;
    font-size: 14px;
}

/* Footer */
footer {
    margin-top: 60px;
    padding-top: 25px;
    border-top: 2px dashed var(--border);
    font-size: 14px;
    color: var(--text-secondary);
    text-align: center;
}

footer a {
    color: var(--text);
    text-decoration: underline;
    font-weight: bold;
}

footer a:hover {
    background: var(--text);
    color: var(--bg);
    text-decoration: none;
    padding: 2px 4px;
}
