/* TypeForge CSS - Using theme variables */

.tf-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 20px;
}

.tf-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 32px;
    flex-wrap: wrap;
    gap: 20px;
}

.tf-title {
    font-size: 36px;
    font-weight: 300;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.tf-accent {
    color: var(--accent-primary);
}

.tf-subtitle {
    font-size: 14px;
    color: var(--text-secondary);
}

.tf-stats {
    display: flex;
    gap: 24px;
}

.tf-stat {
    text-align: center;
}

.tf-stat-value {
    display: block;
    font-size: 24px;
    font-weight: 600;
    color: var(--accent-primary);
}

.tf-stat-label {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.tf-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: -1px;
}

.tf-tab {
    padding: 12px 20px;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.2s ease;
    font-family: inherit;
}

.tf-tab:hover {
    color: var(--text-primary);
}

.tf-tab.active {
    color: var(--accent-primary);
    border-bottom-color: var(--accent-primary);
}

.tf-section {
    margin-bottom: 40px;
}

.tf-section-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent-primary);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.tf-line {
    flex: 1;
    height: 1px;
    background: var(--border-color);
}

.tf-showcase {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
}

.tf-showcase-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
    flex-wrap: wrap;
    gap: 12px;
}

.tf-font-name {
    font-size: 24px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.tf-font-meta {
    font-size: 13px;
    color: var(--text-muted);
}

.tf-official-badge {
    padding: 6px 12px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-primary);
}

.tf-font-description {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.tf-nw-showcase {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 40px 24px;
    text-align: center;
}

.tf-nw-display {
    font-size: clamp(60px, 12vw, 120px);
    font-weight: 400;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

.tf-dot {
    color: var(--accent-primary);
}

.tf-nw-examples {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-top: 24px;
    flex-wrap: wrap;
}

.tf-nw-example {
    font-size: 18px;
    color: var(--text-secondary);
}

.tf-weight-scale {
    display: grid;
    gap: 1px;
    background: var(--border-color);
    border-radius: 12px;
    overflow: hidden;
}

.tf-weight-item {
    background: var(--bg-secondary);
    padding: 16px 20px;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.tf-weight-name {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    min-width: 100px;
}

.tf-weight-sample {
    font-size: 24px;
    letter-spacing: -0.01em;
    flex: 1;
    color: var(--text-primary);
    font-family: 'Neura Sans', 'DM Sans', sans-serif;
}

.tf-charset {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tf-charset-row {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 20px;
}

.tf-charset-row h3 {
    font-size: 11px;
    font-weight: 500;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 10px;
}

.tf-charset-text {
    font-size: 22px;
    font-weight: 400;
    letter-spacing: 0.02em;
    color: var(--text-primary);
    font-family: 'Neura Sans', 'DM Sans', sans-serif;
}

.tf-size-scale {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
}

.tf-size-item {
    display: flex;
    align-items: baseline;
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

.tf-size-item:last-child {
    border-bottom: none;
}

.tf-size-label {
    font-size: 11px;
    color: var(--text-muted);
    min-width: 40px;
    font-family: monospace;
}

.tf-size-sample {
    line-height: 1.2;
    color: var(--text-primary);
    font-family: 'Neura Sans', 'DM Sans', sans-serif;
}

.tf-philosophy {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.tf-philosophy-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 20px;
    transition: all 0.2s ease;
}

.tf-philosophy-card:hover {
    border-color: var(--accent-primary);
}

.tf-philosophy-icon {
    width: 40px;
    height: 40px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 12px;
}

.tf-philosophy-card h3 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text-primary);
}

.tf-philosophy-card p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.tf-fonts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.tf-loading {
    text-align: center;
    padding: 40px;
    color: var(--text-muted);
}

.tf-error {
    text-align: center;
    padding: 40px;
    color: var(--status-error);
}

@media (max-width: 768px) {
    .tf-header { flex-direction: column; }
    .tf-weight-item { flex-direction: column; gap: 8px; }
    .tf-weight-sample { font-size: 18px; }
    .tf-nw-examples { gap: 16px; }
    .tf-nw-example { font-size: 15px; }
}


/* Tab links (for My Fonts and Create) */

a.tf-tab {

    text-decoration: none;

    color: var(--text-secondary);

    padding: 10px 16px;

    border-radius: 6px;

    transition: all 0.2s;

}



a.tf-tab:hover {

    color: var(--text-primary);

    background: var(--bg-tertiary);

}









/* Fix Create button visibility */





/* Fix philosophy icons - override */

.tf-philosophy-icon {

    width: 64px !important;

    height: 64px !important;

    display: flex;

    align-items: center;

    justify-content: center;

    background: var(--bg-tertiary);

    border: 1px solid var(--border-color);

    border-radius: 12px;

    margin-bottom: 16px;

}

.tf-philosophy-icon img {

    width: 40px;

    height: 40px;

    opacity: 0.8;

}

