/* EXPERIMENTAL / EDITORIAL THEME - HUMAN 3.0 */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;900&family=Merriweather:ital,wght@0,300;0,700;1,300&display=swap');

:root {
    --bg-color: #f8f9fa; /* Editorial Off-White */
    --text-main: #111111;
    --text-muted: #555555;
    --accent: #222; /* Sharp Black */
    --highlight: #e5e7eb;
    --success: #10b981;
    --font-heading: 'Inter', sans-serif;
    --font-body: 'Merriweather', serif;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-heading);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Typography */
h1 {
    font-weight: 900;
    font-size: clamp(3rem, 10vw, 5rem);
    letter-spacing: -0.04em;
    line-height: 0.9;
    margin-bottom: 16px;
    color: var(--text-main);
}

.tagline {
    font-family: var(--font-body);
    font-size: 1.25rem;
    color: var(--text-muted);
    font-style: italic;
    font-weight: 300;
    margin-bottom: 48px;
    max-width: 90%;
}

h2 {
    font-weight: 900;
    letter-spacing: -0.02em;
    margin-top: 60px;
    margin-bottom: 24px;
}

p {
    font-family: var(--font-body);
    font-size: 1.05rem;
    margin-bottom: 20px;
    color: #333;
}

/* Hero & Action */
.hero-section {
    min-height: 90vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 40px;
}

.header-group {
    margin-bottom: 40px;
}

.action-module {
    background: #ffffff;
    border: 2px solid #000;
    padding: 32px;
    border-radius: 0px; /* Sharp edges for Brutalist feel */
    box-shadow: 8px 8px 0px rgba(0,0,0,1); /* Hard Shadow */
    margin-bottom: 40px;
    transition: transform 0.2s;
}

.tab-group {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
    border-bottom: 1px solid #eee;
    padding-bottom: 16px;
}

.tab-btn {
    font-family: var(--font-heading);
    background: none;
    border: none;
    font-size: 0.9rem;
    font-weight: 600;
    color: #999;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 4px 0;
}

.tab-btn.active {
    color: #000;
    border-bottom: 2px solid #000;
}

.copy-btn {
    width: 100%;
    background: #000;
    color: #fff;
    border: none;
    padding: 20px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.2s;
}

.copy-btn.secondary-btn {
    background: #fff;
    color: #000;
    border: 2px solid #000;
}

.copy-btn:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

.copy-btn.secondary-btn:hover {
    background: #f0f0f0;
}

.copy-btn:active {
    transform: translateY(0);
}

/* Unified Secondary Actions */
.secondary-actions-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 24px;
    margin-bottom: 16px;
}

.view-btn {
    appearance: none;
    -webkit-appearance: none;
    background: #ffffff;
    border: 1px solid #ccc;
    color: #444;
    padding: 12px;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s;
    border-radius: 0; /* Align with brutalist theme */
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.view-btn:hover {
    border-color: #000;
    color: #000;
    background: #f4f4f4;
}

/* Preview Box Unified */
.preview-box {
    display: none; /* hidden by default */
    background: #fff;
    border: 1px solid #eee;
    border-left: 4px solid #000; /* Accent */
    padding: 20px;
    margin-bottom: 24px;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    line-height: 1.6;
    color: #333;
    white-space: pre-wrap;
    animation: fadeIn 0.3s ease;
}

.preview-box.visible {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

.translation-actions {
    margin-bottom: 12px;
    display: flex;
    justify-content: flex-end;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 12px;
}

.small-copy-btn {
    background: #fff;
    border: 1px solid #ccc;
    color: #333;
    padding: 6px 12px;
    font-size: 0.8rem;
    font-family: var(--font-heading);
    cursor: pointer;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}

.small-copy-btn:hover {
    background: #f0f0f0;
    border-color: #bbb;
}

.text-content {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    white-space: pre-wrap;
    line-height: 1.6;
    color: #444;
}

/* Steps */
.step-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 32px;
}

.step {
    border-top: 2px solid #000;
    padding-top: 16px;
}

.step-num {
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 1.5rem;
    margin-bottom: 8px;
    color: #000;
}

.step-desc {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    color: #444;
    line-height: 1.4;
    margin-bottom: 0;
}

/* Content Sections */
.info-section {
    padding-bottom: 80px;
}

.info-card {
    border-left: 4px solid #000;
    padding-left: 24px;
    margin-bottom: 24px;
}

.info-card h3 {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 8px;
    text-transform: uppercase;
}

/* Toast */
.toast {
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(-100px);
    background: #000;
    color: #fff;
    padding: 12px 24px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 999;
    opacity: 0;
    transition: all 0.5s;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.toast.visible {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

@media (max-width: 600px) {
    .step-list {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    h1 {
        font-size: 4rem;
    }
}
