@import 'tailwindcss/base';
@import 'tailwindcss/components';
@import 'tailwindcss/utilities';

:root {
  --color-bg: #0f172a;
  --color-card: #1e293b;
  --color-text: #f8fafc;
  --color-text-muted: #94a3b8;
  --color-primary: #6366f1;
  --color-primary-hover: #4f46e5;
  --color-secondary: #f59e0b;
  --color-border: #334155;
  --shadow-card: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--color-bg);
    color: var(--color-text);
    margin: 0;
    line-height: 1.5;
}

.view-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 2rem;
}

.hidden {
    display: none !important;
}

/* Landing View */
.landing-hero {
    text-align: center;
    padding: 4rem 1rem;
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(to right, #6366f1, #a855f7, #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--color-text-muted);
    margin-bottom: 2rem;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto 4rem;
}

.info-card {
    background: var(--color-card);
    padding: 1.5rem;
    border-radius: 1rem;
    border: 1px solid var(--color-border);
}

.info-card h3 {
    color: var(--color-secondary);
    margin-bottom: 0.5rem;
}

/* Tool View */
.tool-view-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
}

.tool-card {
    background: var(--color-card);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: var(--shadow-card);
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
    border: 1px solid var(--color-border);
}

textarea {
    width: 100%;
    background: #0f172a;
    border: 1px solid var(--color-border);
    border-radius: 0.5rem;
    color: var(--color-text);
    padding: 1rem;
    font-family: monospace;
    min-height: 150px;
    resize: vertical;
    outline: none;
}

textarea:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.2);
}

.actions-wrapper {
    display: flex;
    gap: 1rem;
    margin: 1.5rem 0;
    flex-wrap: wrap;
}

.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: var(--color-primary);
    color: white;
}

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

.btn-secondary {
    background: var(--color-card);
    border: 1px solid var(--color-border);
    color: var(--color-text);
}

.btn-secondary:hover {
    border-color: var(--color-primary);
}

.btn-text {
    background: transparent;
    color: var(--color-text-muted);
    padding: 0.5rem;
}

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

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

.btn-ghost:hover {
    color: var(--color-text);
    background: rgba(255,255,255,0.05);
}

.text-danger {
    color: #ef4444 !important;
}

.text-danger:hover {
    background: rgba(239, 68, 68, 0.1) !important;
}

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

.ad-container {
    margin: 3rem auto;
    text-align: center;
    max-width: 800px;
}

.ad-placeholder {
    background: #1e293b;
    border: 1px dashed #475569;
    padding: 2rem;
    color: #94a3b8;
    border-radius: 0.5rem;
}

.site-footer {
    margin-top: auto;
    text-align: center;
    padding: 2rem;
    border-top: 1px solid var(--color-border);
    color: var(--color-text-muted);
}

.mode-toggle {
    display: flex;
    gap: 0.5rem;
    background: #0f172a;
    padding: 0.25rem;
    border-radius: 0.5rem;
}

.mode-option {
    padding: 0.5rem 1rem;
    border-radius: 0.25rem;
    cursor: pointer;
    font-size: 0.875rem;
}

.mode-option.active {
    background: var(--color-primary);
    color: white;
}
