/* ==========================================================================
   Font-Generator.in - Technical SEO Design System (Production Universal CSS)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
    --primary: #6C63FF;
    --secondary: #8B5CF6;
    --accent: #FF4D9D;
    --background: #F8FAFC;
    --surface: #FFFFFF;
    --border: #E2E8F0;
    --text: #111827;
    --text-muted: #64748B;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 24px;
    --shadow-sm: 0 4px 6px -1px rgba(0,0,0,0.05);
    --shadow-md: 0 10px 15px -3px rgba(108,99,255,0.1);
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
}

[data-theme="dark"] {
    --background: #0F172A;
    --surface: #1E293B;
    --border: #334155;
    --text: #F8FAFC;
    --text-muted: #94A3B8;
}

/* Global Core Resets & Safe Full-Width Constraints */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    width: 100%;
    max-width: 100vw;
    min-height: 100vh;
    background-color: var(--background);
    color: var(--text);
    font-family: var(--font-sans);
    overflow-x: hidden;
}

body {
    display: flex;
    flex-direction: column;
}

.container {
    width: 100%;
    max-width: 100%;
    padding: 0 16px;
    margin: 0 auto;
}

/* Premium Header Navigation Layout */
.site-header {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    width: 100%;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 20px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-decoration: none;
}

.icon-btn {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text);
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

/* Typography Hero Consolidation */
.hero-section {
    padding: 32px 0 20px 0;
    text-align: center;
}

.hero-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text);
}

.hero-subtitle {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 24px;
}

/* Control Console Main Box Block Frame */
.generator-console {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 16px;
    box-shadow: var(--shadow-md);
    width: 100%;
    margin-bottom: 24px;
}

.mode-toggle-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 16px;
}

.main-textarea {
    width: 100%;
    min-height: 80px;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--background);
    color: var(--text);
    font-family: var(--font-sans);
    font-size: 16px;
    resize: none;
    outline: none;
}

.console-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
}

.counter-badge {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
}

/* Premium Buttons Layout Blueprint */
.btn {
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.2s ease;
    text-decoration: none;
}

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

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

/* Perfect Layout Structural Font Output Cards Grid */
.workspace-layout {
    width: 100%;
    padding-bottom: 40px;
}

.fonts-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
}

.font-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 20px;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    gap: 14px;
    width: 100%;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px dashed var(--border);
    padding-bottom: 10px;
}

.font-name {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* Fixed Anti-Distortion Font Display Platform */
.font-output-display {
    font-size: 24px !important;
    color: var(--text);
    padding: 8px 0;
    word-wrap: break-word !important;
    word-break: break-word !important;
    overflow-wrap: break-word !important;
    white-space: normal !important;
    min-height: 48px;
    letter-spacing: 0.5px;
    line-height: 1.5;
    width: 100%;
}

.card-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 4px;
}

.btn-copy-direct {
    flex-grow: 1;
    background: rgba(108, 99, 255, 0.08) !important;
    color: var(--primary) !important;
    border: 1px solid rgba(108, 99, 255, 0.15) !important;
}

/* Dynamic Hub Quick-Links Layout Grid */
.categories-hub {
    margin: 32px 0;
    text-align: center;
}

.hub-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 16px;
}

.hub-links-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.hub-btn {
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}

.hub-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(108, 99, 255, 0.04);
}

/* Toast System Layout Styling */
.toast-container {
    position: fixed;
    bottom: 24px;
    left: 24px;
    right: 24px;
    z-index: 2000;
}

.toast {
    background: #111827;
    color: #FFFFFF;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

/* Authenticity Informational Content Blocks */
.info-editorial {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin: 32px 0;
    line-height: 1.6;
}

.info-editorial h2, .info-editorial h3 {
    margin: 20px 0 12px 0;
    color: var(--text);
}

.info-editorial p {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 16px;
}

.site-footer {
    background: var(--surface);
    border-top: 1px solid var(--border);
    padding: 24px 0;
    text-align: center;
    font-size: 12px;
    color: var(--text-muted);
    margin-top: auto;
}

.footer-nav {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 16px;
}

.footer-link {
    font-size: 13px;
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
}

.footer-link:hover {
    color: var(--primary);
}

.copyright-label {
    font-size: 12px;
    color: var(--text-muted);
}

/* Modal View Frame Pop Animations */
@keyframes modalPop {
    from { transform: scale(0.95); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* Smooth Rendering Platform Engine Optimization Targets */
body, text, .font-output-display {
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
