/* Simple, sketch-like design with mobile-first approach */

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

body {
    font-family: 'Courier New', monospace;
    line-height: 1.6;
    color: #333;
    background-color: #fafafa;
    border: 2px solid #333;
    margin: 10px;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

/* Header */
.header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 2px dashed #666;
}

.header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    text-decoration: underline;
    text-decoration-style: wavy;
}

.subtitle {
    font-size: 1.2rem;
    color: #666;
    font-style: italic;
}

/* Main Content */
.main-content {
    margin-bottom: 40px;
}

.intro h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    text-align: center;
    border-bottom: 2px solid #333;
    padding-bottom: 10px;
}

.intro p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    text-align: center;
}

/* Features */
.features {
    display: grid;
    gap: 20px;
    margin-bottom: 40px;
}

.feature {
    background: white;
    border: 2px solid #333;
    padding: 20px;
    position: relative;
}

.feature::before {
    content: "↳";
    position: absolute;
    left: -15px;
    top: 20px;
    font-size: 1.5rem;
}

.feature h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    text-decoration: underline;
}

.feature p {
    font-size: 1rem;
}

/* How it works */
.how-it-works {
    background: #f0f0f0;
    border: 2px solid #333;
    padding: 20px;
    margin-bottom: 30px;
}

.how-it-works h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    text-align: center;
}

.how-it-works ol {
    padding-left: 30px;
}

.how-it-works li {
    margin-bottom: 10px;
    font-size: 1.1rem;
}

/* Actions */
.actions {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
}

.btn {
    display: inline-block;
    padding: 15px 30px;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: bold;
    border: 2px solid #333;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 200px;
    text-align: center;
}

.btn-primary {
    background-color: #333;
    color: white;
}

.btn-primary:hover {
    background-color: white;
    color: #333;
}

.btn-secondary {
    background-color: white;
    color: #333;
}

.btn-secondary:hover {
    background-color: #333;
    color: white;
}

/* Footer */
.footer {
    text-align: center;
    padding-top: 20px;
    border-top: 2px dashed #666;
    color: #666;
    font-size: 0.9rem;
}

/* Recording Page Styles */
.recording-form {
    background: white;
    border: 2px solid #333;
    padding: 30px;
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 10px;
    border: 2px solid #333;
    font-family: 'Courier New', monospace;
    font-size: 1rem;
    background-color: #fafafa;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    transform: scale(1.5);
}

/* Recording Controls */
.recording-controls {
    background: #f0f0f0;
    border: 2px solid #333;
    padding: 30px;
    text-align: center;
    margin-bottom: 30px;
}

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

.control-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.record-btn, .stop-btn, .play-btn {
    padding: 15px 25px;
    border: 2px solid #333;
    background: white;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    transition: all 0.3s ease;
}

.record-btn:hover {
    background: #ff4444;
    color: white;
}

.stop-btn:hover {
    background: #ff4444;
    color: white;
}

.play-btn:hover {
    background: #44ff44;
    color: white;
}

.recording-status {
    margin-top: 20px;
    font-size: 1.2rem;
    font-weight: bold;
}

/* Archive Page Styles */
.archive-header {
    text-align: center;
    margin-bottom: 40px;
}

.testimonials-grid {
    display: grid;
    gap: 20px;
}

.testimonial-card {
    background: white;
    border: 2px solid #333;
    padding: 20px;
    position: relative;
}

.testimonial-header {
    border-bottom: 2px solid #333;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.testimonial-name {
    font-weight: bold;
    font-size: 1.2rem;
}

.testimonial-citizenship {
    color: #666;
    font-style: italic;
}

.testimonial-date {
    color: #999;
    font-size: 0.9rem;
}

.audio-player {
    margin-top: 15px;
    width: 100%;
}

.no-testimonials {
    text-align: center;
    font-size: 1.2rem;
    color: #666;
    padding: 40px;
    border: 2px dashed #666;
}

/* Mobile Responsiveness */
@media (min-width: 768px) {
    .features {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .actions {
        flex-direction: row;
        justify-content: center;
    }
    
    .testimonials-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

@media (min-width: 1024px) {
    .features {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .control-buttons {
        flex-wrap: nowrap;
    }
}

/* Focus states for accessibility */
button:focus,
input:focus,
select:focus {
    outline: 3px solid #666;
    outline-offset: 2px;
}

/* Loading animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #333;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Error message styles */
.error {
    color: #ff4444;
    background: #fff0f0;
    border: 2px solid #ff4444;
    padding: 10px;
    margin-bottom: 15px;
}

.success {
    color: #44ff44;
    background: #f0fff0;
    border: 2px solid #44ff44;
    padding: 10px;
    margin-bottom: 15px;
}
