/* =====================================================================
 * DLsite Front Page — frontend styles
 * Minimal, refined; pairs with the DLsite Doujin Introducer plugin.
 * ===================================================================== */

.dfp-front-page {
    max-width: 1120px;
    margin: 0 auto;
    padding: 24px 20px 80px;
    color: #1f2937;
    font-family: inherit;
    line-height: 1.6;
}

.dfp-front-page h1,
.dfp-front-page h2,
.dfp-front-page h3 {
    line-height: 1.25;
    color: #0f172a;
}

/* ---------- Hero ---------- */

.dfp-hero {
    position: relative;
    padding: 72px 48px 64px;
    border-radius: 28px;
    background: linear-gradient(135deg, #fff7ed 0%, #f8fafc 60%, #f1f5f9 100%);
    border: 1px solid #e5e7eb;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.08);
    margin-bottom: 56px;
    overflow: hidden;
}

.dfp-hero::after {
    content: "";
    position: absolute;
    top: -120px;
    right: -120px;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: radial-gradient(circle at center, rgba(154, 52, 18, 0.12), transparent 70%);
    pointer-events: none;
}

.dfp-hero-inner {
    position: relative;
    max-width: 720px;
}

.dfp-kicker {
    margin: 0 0 18px;
    font-size: 0.78rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #9a3412;
    font-weight: 700;
}

.dfp-hero-title {
    margin: 0 0 20px;
    font-size: clamp(2rem, 4.4vw, 3.4rem);
    font-weight: 800;
    letter-spacing: -0.015em;
}

.dfp-hero-lead {
    margin: 0 0 32px;
    font-size: 1.08rem;
    color: #475569;
    max-width: 580px;
}

.dfp-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

/* ---------- Buttons ---------- */

.dfp-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 26px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.98rem;
    text-decoration: none !important;
    transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease, color 0.16s ease;
    border: 1px solid transparent;
}

.dfp-button-primary {
    background: #111827;
    color: #fff !important;
    box-shadow: 0 10px 24px rgba(17, 24, 39, 0.22);
}

.dfp-button-primary:hover,
.dfp-button-primary:focus {
    transform: translateY(-1px);
    box-shadow: 0 14px 30px rgba(17, 24, 39, 0.28);
}

.dfp-button-ghost {
    background: transparent;
    color: #111827 !important;
    border-color: #cbd5e1;
}

.dfp-button-ghost:hover,
.dfp-button-ghost:focus {
    background: #fff;
    border-color: #94a3b8;
    transform: translateY(-1px);
}

/* ---------- Section frame ---------- */

.dfp-section {
    margin: 0 0 64px;
}

.dfp-section-head {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 0 0 28px;
    padding-bottom: 18px;
    border-bottom: 1px solid #e5e7eb;
}

.dfp-section-title {
    margin: 0;
    font-size: clamp(1.4rem, 2.2vw, 1.8rem);
    font-weight: 800;
    letter-spacing: -0.01em;
}

.dfp-section-lead {
    margin: 0;
    color: #64748b;
    font-size: 0.98rem;
}

/* ---------- Editor's pick ---------- */

.dfp-pickup-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 20px;
}

.dfp-pickup-card {
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    background: #fff;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.dfp-pickup-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
    border-color: #cbd5e1;
}

.dfp-pickup-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none !important;
    color: inherit !important;
}

.dfp-pickup-image {
    aspect-ratio: 4 / 3;
    background-size: cover;
    background-position: center;
    background-color: #f1f5f9;
}

.dfp-pickup-image-empty {
    background: linear-gradient(135deg, #fef3c7, #f8fafc);
}

.dfp-pickup-card.is-feature .dfp-pickup-image {
    aspect-ratio: 16 / 11;
}

.dfp-pickup-body {
    padding: 20px 22px 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.dfp-pickup-meta {
    margin: 0;
    font-size: 0.74rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #9a3412;
    font-weight: 700;
}

.dfp-pickup-title {
    margin: 0;
    font-size: 1.12rem;
    font-weight: 700;
    color: #0f172a;
}

.dfp-pickup-card.is-feature .dfp-pickup-title {
    font-size: 1.32rem;
}

.dfp-pickup-excerpt {
    margin: 4px 0 0;
    color: #64748b;
    font-size: 0.94rem;
    line-height: 1.55;
}

/* ---------- Latest works grid ---------- */

.dfp-work-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

.dfp-work-card {
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    background: #fff;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.04);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.dfp-work-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.1);
    border-color: #cbd5e1;
}

.dfp-work-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none !important;
    color: inherit !important;
}

.dfp-work-image {
    aspect-ratio: 3 / 4;
    background-size: cover;
    background-position: center;
    background-color: #f1f5f9;
}

.dfp-work-image-empty {
    background: linear-gradient(135deg, #fef3c7, #f8fafc);
}

.dfp-work-body {
    padding: 14px 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.dfp-work-meta {
    margin: 0;
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #9a3412;
    font-weight: 700;
}

.dfp-work-title {
    margin: 0;
    font-size: 0.98rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ---------- Tag list (genres) ---------- */

.dfp-tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.dfp-tag {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    border-radius: 999px;
    border: 1px solid #e5e7eb;
    background: #fff;
    color: #111827 !important;
    text-decoration: none !important;
    font-weight: 600;
    font-size: 0.94rem;
    transition: border-color 0.16s ease, background 0.16s ease, color 0.16s ease, transform 0.16s ease;
}

.dfp-tag:hover,
.dfp-tag:focus {
    border-color: #9a3412;
    color: #9a3412 !important;
    transform: translateY(-1px);
}

.dfp-tag-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 7px;
    border-radius: 999px;
    background: #f1f5f9;
    color: #64748b;
    font-size: 0.78rem;
    font-weight: 700;
}

.dfp-tag:hover .dfp-tag-count,
.dfp-tag:focus .dfp-tag-count {
    background: #fef3c7;
    color: #9a3412;
}

/* ---------- Circle list ---------- */

.dfp-circle-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.dfp-circle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 18px;
    border-radius: 14px;
    border: 1px solid #e5e7eb;
    background: #fff;
    color: #0f172a !important;
    text-decoration: none !important;
    transition: border-color 0.16s ease, background 0.16s ease, transform 0.16s ease;
}

.dfp-circle:hover,
.dfp-circle:focus {
    border-color: #cbd5e1;
    background: #f9fafb;
    transform: translateY(-1px);
}

.dfp-circle-name {
    font-weight: 700;
    font-size: 0.98rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dfp-circle-count {
    flex-shrink: 0;
    font-size: 0.82rem;
    color: #64748b;
    font-weight: 600;
}

/* ---------- About ---------- */

.dfp-about {
    margin-bottom: 0;
}

.dfp-about-inner {
    padding: 36px 40px;
    border-radius: 20px;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
}

.dfp-about-inner .dfp-section-title {
    margin-bottom: 14px;
    padding-bottom: 0;
    border-bottom: 0;
}

.dfp-about-inner p {
    margin: 0 0 12px;
    color: #475569;
    max-width: 720px;
}

.dfp-about-inner p:last-child {
    margin-bottom: 0;
}

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
    .dfp-pickup-grid {
        grid-template-columns: 1fr 1fr;
    }
    .dfp-pickup-card.is-feature {
        grid-column: 1 / -1;
    }
}

@media (max-width: 720px) {
    .dfp-front-page {
        padding: 16px 14px 64px;
    }
    .dfp-hero {
        padding: 48px 28px 44px;
        border-radius: 22px;
        margin-bottom: 40px;
    }
    .dfp-section {
        margin-bottom: 48px;
    }
    .dfp-pickup-grid {
        grid-template-columns: 1fr;
    }
    .dfp-pickup-card.is-feature {
        grid-column: auto;
    }
    .dfp-work-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }
    .dfp-circle-list {
        grid-template-columns: 1fr;
    }
    .dfp-about-inner {
        padding: 26px 22px;
    }
}

@media (max-width: 420px) {
    .dfp-work-grid {
        grid-template-columns: 1fr;
    }
    .dfp-hero-actions {
        flex-direction: column;
        align-items: stretch;
    }
    .dfp-button {
        width: 100%;
    }
}
