/* AestheticFonts.net — Homepage-only styles */
/* Load after global.css on the homepage only. */

.generator-shell {
    max-width: 920px;
    margin: 8px auto 0;
    padding: 0 20px;
    position: sticky;
    top: 0;
    z-index: 120;
}

.generator-card {
    background: linear-gradient(180deg, #fff, #fdfbff);
    border: 1px solid var(--line);
    border-radius: 26px;
    padding: 12px;
    box-shadow: var(--shadow);
}

.generator-heading {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: start;
    margin-bottom: 12px
}

.generator-heading h2 {
    margin: 0;
    font-size: 1.2rem;
    letter-spacing: -.02em
}

.generator-heading p {
    margin: 3px 0 0;
    color: var(--muted);
    font-size: .9rem
}

.char-count {
    font-size: .86rem;
    color: var(--muted);
    white-space: nowrap
}

.input-wrap {
    position: relative
}

#text-box {
    width: 100%;
    min-height: 92px;
    resize: vertical;
    padding: 17px 78px 17px 17px;
    border: 2px solid #ded5ec;
    border-radius: 16px;
    background: #fff;
    color: var(--text);
    outline: none;
    font-size: 1.08rem;
    line-height: 1.45;
    transition: border-color .18s, box-shadow .18s;
}

#text-box:focus {
    border-color: #a78bfa;
    box-shadow: 0 0 0 4px rgba(124, 58, 237, .10)
}

.clear-btn {
    position: absolute;
    right: 10px;
    top: 10px;
    border: 0;
    background: var(--surface-2);
    color: #665d72;
    padding: 8px 10px;
    border-radius: 10px;
    font-weight: 700;
    font-size: .85rem;
}

.clear-btn:hover {
    background: #eee7fb
}

.quick-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px
}

.quick-actions button {
    border: 1px solid var(--line);
    background: #fff;
    color: #5c5269;
    padding: 8px 11px;
    border-radius: 999px;
    font-size: .86rem;
    font-weight: 700;
}

.quick-actions button:hover {
    border-color: #cbbaf0;
    background: var(--surface-2)
}

.styles-section {
    max-width: var(--max);
    margin: 38px auto 0;
    padding: 0 20px
}

.visible-count {
    margin: 0;
    color: var(--muted);
    font-size: .9rem;
    font-weight: 700;
    white-space: nowrap
}

.filter-panel {
    position: relative;
    z-index: 20;
    margin: 0 0 16px;
    padding: 12px;
    background: rgba(251, 250, 255, .94);
    backdrop-filter: blur(14px);
    border: 1px solid var(--line);
    border-radius: 18px;
}

.filter-chips {
    display: flex;
    gap: 7px;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: thin
}

.filter-chip {
    flex: 0 0 auto;
    border: 1px solid var(--line);
    background: #fff;
    color: #5b5267;
    padding: 7px 11px;
    border-radius: 999px;
    font-size: .84rem;
    font-weight: 750;
}

.filter-chip:hover,
.filter-chip.is-active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.style-search {
    display: block;
    margin-top: 9px
}

.style-search input {
    width: 100%;
    border: 1px solid var(--line);
    background: #fff;
    color: var(--text);
    padding: 10px 13px;
    border-radius: 12px;
    outline: none;
}

.style-search input:focus {
    border-color: #a78bfa;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, .08)
}

.font-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px
}

.font-card {
    min-width: 0;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 14px;
    box-shadow: var(--shadow-sm);
    transition: transform .16s, border-color .16s, box-shadow .16s;
}

.font-card:hover {
    transform: translateY(-1px);
    border-color: #d6c5f5;
    box-shadow: 0 10px 26px rgba(72, 42, 112, .10)
}

.font-card-head {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px
}

.font-card h3 {
    margin: 0;
    font-size: .97rem;
    line-height: 1.3;
    letter-spacing: -.015em
}

.style-type {
    display: inline-block;
    margin-top: 2px;
    color: #857b91;
    font-size: .73rem;
    font-weight: 700;
}

.favorite-btn {
    border: 0;
    background: transparent;
    color: #8c8297;
    font-size: 1.35rem;
    line-height: 1;
    padding: 2px 4px;
}

.favorite-btn[aria-pressed="true"] {
    color: #b4236b
}

.font-preview {
    width: 100%;
    min-height: 64px;
    border: 1px solid #eee9f5;
    background: #fbf9fe;
    color: #21182d;
    border-radius: 13px;
    padding: 14px;
    text-align: left;
    overflow: auto;
    font-size: 1.16rem;
    line-height: 1.45;
    white-space: nowrap;
}

.font-preview:hover {
    border-color: #cdbcf0;
    background: #faf7ff
}

.font-preview:focus-visible,
.copy-btn:focus-visible,
.favorite-btn:focus-visible,
.filter-chip:focus-visible {
    outline: 3px solid rgba(124, 58, 237, .25);
    outline-offset: 2px;
}

.copy-btn {
    width: 100%;
    margin-top: 8px;
    border: 1px solid #dfd5f0;
    background: #fff;
    color: #62459b;
    padding: 8px 10px;
    border-radius: 11px;
    font-weight: 800;
    font-size: .86rem;
}

.copy-btn:hover {
    background: var(--primary-soft);
    border-color: #cbbaf0
}

.font-card.is-copied {
    border-color: #8b5cf6;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, .08)
}

.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--muted)
}

@media (max-width:800px) {
    .font-list {
            grid-template-columns: 1fr
        }
}

@media (max-width:600px) {
    .generator-shell,
    .styles-section {
            padding-left: 14px;
            padding-right: 14px
        }

    .generator-card {
            padding: 14px;
            border-radius: 20px
        }

    .generator-heading {
            display: block;
            margin-bottom: 5px;
        }

    .char-count {
            display: inline-block;
            margin-top: 4px
        }

    #text-box {
            min-height: 82px;
            padding-right: 66px
        }

    .filter-panel {
            top: auto;
            border-radius: 14px
        }

    .font-card {
            padding: 12px
        }

    .font-preview {
            font-size: 1.05rem
        }
}

@media (max-width:600px) {
    .generator-shell {
            top: 0;
        }

    .generator-shell.is-stuck {
            padding-left: 8px;
            padding-right: 8px
        }

    .generator-shell.is-stuck .generator-card {
            padding: 7px;
            border-radius: 14px
        }

    .generator-shell.is-stuck #text-box {
            min-height: 54px;
            height: 54px;
            padding: 13px 62px 13px 13px
        }

    .generator-shell.is-stuck .clear-btn {
            top: 7px
        }
}
