/* DogFamily v8.0 – Front 2030 Glass Aurora Theme
 *
 * Tämä korvaa vanhan public/assets/css/front.css -tiedoston.
 * Ei koske adminia (adminilla on oma CSS /assets/css/admin.css).
 */

:root {
    --df-bg-main: #050712;
    --df-bg-header: rgba(15, 23, 42, 0.92);
    --df-bg-footer: rgba(15, 23, 42, 0.96);
    --df-bg-card: rgba(15, 23, 42, 0.85);
    --df-border-subtle: rgba(148, 163, 184, 0.4);
    --df-text-main: #f9fafb;
    --df-text-muted: rgba(209, 213, 219, 0.85);
    --df-accent: #7dd3fc;
    --df-accent-strong: #0ea5e9;
    --df-radius-lg: 1.5rem;
    --df-radius-md: 1rem;
    --df-shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.8);
    --df-blur: 18px;
    --df-max-width: 1200px;
    --df-transition-fast: 150ms ease-out;
    --df-font-main: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
}

html, body {
    margin: 0;
    padding: 0;
}

body {
    min-height: 100vh;
    font-family: var(--df-font-main);
    background:
        radial-gradient(circle at top left, rgba(37, 99, 235, 0.32), transparent 55%),
        radial-gradient(circle at bottom right, rgba(236, 72, 153, 0.28), transparent 55%),
        #020617;
    color: var(--df-text-main);
}

a {
    color: var(--df-accent);
}

a:hover {
    color: var(--df-accent-strong);
}

/* Global layout */

header,
footer {
    padding: 1rem 1.25rem;
    background: var(--df-bg-header);
    border-bottom: 1px solid rgba(15, 23, 42, 0.9);
    color: var(--df-text-main);
}

footer {
    margin-top: 3rem;
    border-top: 1px solid rgba(15, 23, 42, 0.9);
    border-bottom: none;
    background: var(--df-bg-footer);
    font-size: 0.85rem;
    color: var(--df-text-muted);
}

header h1 {
    margin: 0 0 0.4rem;
    font-size: 1.1rem;
}

header nav a {
    margin-right: 0.75rem;
    text-decoration: none;
    font-size: 0.92rem;
}

header nav a:hover {
    text-decoration: underline;
}

main {
    padding: 2rem 1.2rem 3rem;
}

@media (min-width: 768px) {
    header,
    footer {
        padding-left: 2rem;
        padding-right: 2rem;
    }
    main {
        padding: 2.5rem 2rem 3.5rem;
    }
}

/* Home page DF2030 layout */

.df-home {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    max-width: 100%;
}

@media (min-width: 768px) {
    .df-home {
        gap: 4rem;
    }
}

.df-section,
.df-hero {
    max-width: var(--df-max-width);
    margin: 0 auto;
}

/* Background glow anchors */

.df-home-2030::before,
.df-home-2030::after {
    content: "";
    position: fixed;
    z-index: -1;
    filter: blur(60px);
    opacity: 0.65;
    pointer-events: none;
}

.df-home-2030::before {
    inset: -200px auto auto -120px;
    width: 360px;
    height: 360px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.9), transparent 60%);
}

.df-home-2030::after {
    inset: auto -140px -220px auto;
    width: 420px;
    height: 420px;
    background: radial-gradient(circle, rgba(236, 72, 153, 0.85), transparent 60%);
}

/* HERO */

.df-hero {
    border-radius: 2rem;
    padding: 2.25rem 1.7rem;
    background:
        radial-gradient(circle at 0% 0%, rgba(125, 211, 252, 0.17), transparent 55%),
        radial-gradient(circle at 100% 100%, rgba(244, 114, 182, 0.12), transparent 55%),
        linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 0.9));
    box-shadow: var(--df-shadow-soft);
    border: 1px solid rgba(148, 163, 184, 0.28);
    backdrop-filter: blur(var(--df-blur));
    display: grid;
    gap: 1.75rem;
    color: var(--df-text-main);
}

.df-hero-inner {
    display: grid;
    gap: 1.75rem;
}

@media (min-width: 900px) {
    .df-hero {
        padding: 2.6rem 2.4rem;
    }
    .df-hero-inner {
        grid-template-columns: minmax(0, 2.1fr) minmax(0, 2.4fr);
        align-items: center;
    }
}

.df-hero-title {
    font-size: 2.15rem;
    font-weight: 650;
    letter-spacing: -0.03em;
    margin-bottom: 0.85rem;
}

@media (min-width: 1024px) {
    .df-hero-title {
        font-size: 2.6rem;
    }
}

.df-hero-subtitle {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--df-text-muted);
    margin-bottom: 1.25rem;
    max-width: 34rem;
}

.df-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.df-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 0.65rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform var(--df-transition-fast), box-shadow var(--df-transition-fast), border-color var(--df-transition-fast), background var(--df-transition-fast), color var(--df-transition-fast);
}

.df-btn-primary {
    background: linear-gradient(135deg, #38bdf8, #0ea5e9);
    color: #020617;
    box-shadow: 0 12px 30px rgba(56, 189, 248, 0.4);
}

.df-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 40px rgba(56, 189, 248, 0.6);
}

.df-hero-media {
    position: relative;
    min-height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.df-hero-image {
    display: block;
    max-width: 100%;
    border-radius: 1.4rem;
    border: 1px solid rgba(148, 163, 184, 0.35);
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.95);
    background: radial-gradient(circle at top left, rgba(15, 118, 110, 0.3), rgba(2, 6, 23, 0.95));
    object-fit: cover;
}

.df-hero-visual-shell {
    position: relative;
    width: 100%;
    max-width: 420px;
    aspect-ratio: 4 / 3;
    border-radius: 1.6rem;
    border: 1px solid rgba(148, 163, 184, 0.3);
    background:
        radial-gradient(circle at 0% 0%, rgba(56, 189, 248, 0.25), transparent 60%),
        radial-gradient(circle at 80% 100%, rgba(236, 72, 153, 0.25), transparent 60%),
        rgba(15, 23, 42, 0.96);
    overflow: hidden;
    box-shadow: var(--df-shadow-soft);
    backdrop-filter: blur(26px);
}

.df-hero-orbit {
    position: absolute;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.35);
}

.df-hero-orbit-1 {
    inset: 12% 18%;
}

.df-hero-orbit-2 {
    inset: 24% 10%;
    border-style: dashed;
}

.df-hero-orbit-3 {
    inset: 36% 24%;
    border-style: dotted;
}

/* Common sections */

.df-section-header {
    margin-bottom: 1.5rem;
}

.df-section-header h2 {
    font-size: 1.3rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-bottom: 0.3rem;
}

.df-section-header p {
    color: var(--df-text-muted);
    font-size: 0.95rem;
}

.df-grid {
    display: grid;
    gap: 1.1rem;
}

@media (min-width: 768px) {
    .df-grid-trending,
    .df-grid-recommendations {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
    .df-grid-categories {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* Cards */

.df-card {
    background: var(--df-bg-card);
    border-radius: var(--df-radius-md);
    border: 1px solid var(--df-border-subtle);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100%;
    backdrop-filter: blur(14px);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.75);
    transition: transform var(--df-transition-fast), box-shadow var(--df-transition-fast), border-color var(--df-transition-fast), background var(--df-transition-fast);
}

.df-card:hover {
    transform: translateY(-3px);
    border-color: rgba(56, 189, 248, 0.6);
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.9);
    background: rgba(15, 23, 42, 0.9);
}

.df-card-image-link {
    display: block;
}

.df-card-image {
    width: 100%;
    display: block;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    background: radial-gradient(circle at 0 0, rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.98));
}

.df-card-body {
    padding: 0.8rem 0.9rem 1rem;
}

.df-card-title {
    font-size: 0.98rem;
    margin: 0 0 0.3rem;
}

.df-card-title a {
    text-decoration: none;
    color: var(--df-text-main);
}

.df-card-title a:hover {
    color: var(--df-accent-strong);
}

.df-card-price {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--df-accent);
}

.df-card-text {
    font-size: 0.9rem;
    color: var(--df-text-muted);
}

.df-empty-state {
    color: var(--df-text-muted);
    font-size: 0.96rem;
}

/* Intro & SEO footer */

.df-section-intro .df-section-inner,
.df-section-seo-footer .df-section-inner {
    max-width: 900px;
}

.df-section-intro p {
    color: var(--df-text-muted);
    line-height: 1.6;
}

.df-seo-footer-inner {
    padding: 1.6rem 0 0.2rem;
}

.df-seo-footer-title {
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.df-seo-footer-grid {
    display: grid;
    gap: 1.1rem;
}

@media (min-width: 900px) {
    .df-seo-footer-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.df-seo-footer-col {
    background: rgba(15, 23, 42, 0.8);
    border-radius: 1.1rem;
    padding: 0.85rem 0.95rem 1rem;
    border: 1px solid rgba(148, 163, 184, 0.4);
    backdrop-filter: blur(14px);
}

.df-seo-footer-col h3 {
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
}

.df-seo-footer-col p {
    font-size: 0.9rem;
    color: var(--df-text-muted);
}
