/* 
   ShiftCopy - Tactile Digital Editorial Design System
   Designed for creators by Antigravity.
*/

:root {
    /* Colors */
    --color-bg: #FDFBF7;
    --color-ink: #1C1917;
    --color-ink-muted: rgba(28, 25, 23, 0.6);
    --color-surface: #FFFFFF;
    --color-accent: #7C3AED;
    --color-accent-warm: #B45309;
    --color-border: #E5DDD6;
    
    /* Output Card Labels */
    --color-tweets: #7C3AED;
    --color-linkedin: #2563EB;
    --color-email: #B45309;
    --color-quotes: #0D9488;
    --color-brief: #4B5563;

    /* Shadows */
    --shadow-sm: 3px 3px 0px rgba(28, 25, 23, 0.08);
    --shadow-md: 6px 6px 0px rgba(28, 25, 23, 0.10);
    --shadow-lg: 8px 8px 0px rgba(28, 25, 23, 0.12);

    /* Typography */
    --font-display: 'Playfair Display', serif;
    --font-body: 'DM Sans', sans-serif;
    --font-mono: 'DM Mono', monospace;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

body {
    background-color: var(--color-bg);
    color: var(--color-ink);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

/* NAVIGATION */
#main-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: var(--color-bg);
    padding: 1.5rem 0;
    transition: box-shadow 0.3s ease;
}

#main-nav.scrolled {
    box-shadow: 0 4px 10px rgba(28, 25, 23, 0.05);
}

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

.logo {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 800;
}

.tagline-creators {
    font-family: var(--font-mono);
    color: var(--color-ink-muted);
    font-size: 0.85rem;
}

/* HERO SECTION */
.hero {
    max-width: 1200px;
    margin: 4rem auto;
    padding: 0 2rem;
    text-align: center;
}

.hero-headline {
    font-family: var(--font-display);
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-headline span {
    display: inline-block;
}

.underline-trigger {
    position: relative;
    z-index: 1;
}

.underline-trigger::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: var(--color-accent-warm);
    z-index: -1;
}

.hero-subtext {
    font-size: 1.25rem;
    color: var(--color-ink-muted);
    max-width: 600px;
    margin: 0 auto 2.5rem;
}

/* STAT PILLS */
.stat-pills {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.pill {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    padding: 0.5rem 1.25rem;
    border-radius: 999px;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    box-shadow: var(--shadow-sm);
}

.rotate-neg {
    transform: rotate(-2deg);
}

/* MAIN APP SECTION */
.app-container {
    max-width: 1200px;
    margin: 4rem auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    align-items: start;
}

/* INPUT COLUMN */
.mono-label {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
    color: var(--color-ink-muted);
}

.input-group {
    margin-bottom: 1.5rem;
}

textarea {
    width: 100%;
    min-height: 320px;
    background-color: var(--color-bg);
    border: 1.5px solid var(--color-border);
    border-radius: 12px;
    padding: 1.5rem;
    font-family: var(--font-body);
    font-size: 1rem;
    resize: vertical;
    outline: none;
    transition: border-color 0.2s ease;
}

textarea:focus {
    border-color: var(--color-accent);
}

.input-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
}

select {
    padding: 0.5rem 1rem;
    background-color: var(--color-bg);
    border: 1.5px solid var(--color-border);
    border-radius: 8px;
    font-family: var(--font-body);
    outline: none;
}

.mono-muted {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--color-ink-muted);
}

/* BUTTONS */
.btn-primary {
    width: 100%;
    background-color: var(--color-ink);
    color: white;
    border: none;
    padding: 1.25rem;
    border-radius: 12px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    transition: transform 0.1s ease, box-shadow 0.1s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: none;
}

.btn-primary:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* LOADER */
.loader {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-text {
    text-align: center;
    margin-top: 1rem;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--color-accent);
}

/* OUTPUT COLUMN */
.output-placeholder {
    border: 2px dashed var(--color-border);
    border-radius: 16px;
    padding: 4rem 2rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.ink-muted { color: var(--color-ink-muted); }
.small { font-size: 0.75rem; }

/* OUTPUT CARDS */
.output-card {
    background: var(--color-surface);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
    margin-bottom: 2rem;
    opacity: 0;
    transform: translateY(16px);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
}

.card-tag {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    color: white;
}

.tag-tweets { background: var(--color-tweets); }
.tag-linkedin { background: var(--color-linkedin); }
.tag-email { background: var(--color-email); }
.tag-quotes { background: var(--color-quotes); }
.tag-brief { background: var(--color-brief); }

.copy-card-btn {
    background: none;
    border: 1px solid var(--color-border);
    padding: 0.3rem 0.7rem;
    border-radius: 6px;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.copy-card-btn:hover {
    background: #f8fafc;
}

.copy-card-btn.copied {
    background: #DCFCE7;
    border-color: #22C55E;
    color: #166534;
}

.card-content {
    font-size: 0.95rem;
    white-space: pre-wrap;
    color: var(--color-ink);
}

.card-content hr {
    border: none;
    border-top: 1px solid var(--color-border);
    margin: 1.5rem 0;
}

/* FLOATING COPY BUTTON */
.floating-copy {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    padding: 1rem 2rem;
    border-radius: 999px;
    font-family: var(--font-body);
    font-weight: 600;
    box-shadow: var(--shadow-lg);
    cursor: pointer;
    z-index: 1000;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.floating-copy:hover {
    transform: translateY(-4px);
    box-shadow: 10px 10px 0px rgba(28, 25, 23, 0.15);
}

/* ANIMATIONS */
.hero-headline span {
    opacity: 0;
    filter: blur(8px);
    transform: translateY(20px);
}

.hero-headline.reveal span {
    animation: blurFadeUp 0.6s forwards;
}

@keyframes blurFadeUp {
    to {
        opacity: 1;
        filter: blur(0);
        transform: translateY(0);
    }
}

.reveal-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal-up.active {
    opacity: 1;
    transform: translateY(0);
}

.stagger-in {
    animation: slideUpFade 0.4s forwards;
}

@keyframes slideUpFade {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* MOBILE RESPONSIVE */
@media (max-width: 968px) {
    .app-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .hero-headline {
        font-size: 2.5rem;
    }
}

@media (max-width: 640px) {
    .hero { margin: 2rem auto; }
    .nav-container { padding: 0 1rem; }
}
