/*
Theme Name: Dabster Liquid Glass
Theme URI: https://dabster.de
Author: Daniel Baurhenn
Author URI: https://dabster.de
Description: A custom WordPress theme for dabster.de inspired by Apple's Liquid Glass design language and the clean lines of macOS Tahoma.  It features a frosted‑glass navigation bar, glassmorphic cards for posts and widgets, soft gradients and subtle depth effects.  The theme stays lightweight and avoids clutter while providing a unique identity that sets it apart from stock WordPress themes.
Version: 1.2
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: dabster-liquid-glass
Tags: custom-theme, liquid-glass, glassmorphism, minimalist, responsive
*/

/* Base styles */
html, body {
    margin: 0;
    padding: 0;
    font-family: "Tahoma", "Helvetica Neue", Arial, sans-serif;
    color: #111;
    line-height: 1.6;
    background: linear-gradient(135deg, #f4f6fb, #e8eef6);
    /* The gradient background provides a soft canvas reminiscent of macOS'
       “Liquid Glass” aesthetic. */
}

/*
 * Body ambient shapes
 *
 * To emulate the optical qualities of Liquid Glass, we overlay blurred radial
 * gradients that appear to float behind the content.  These soft shapes
 * reflect and refract the page’s background colours and evoke the sense of
 * fluidity described in Apple’s design language【277342644678179†L8-L15】.
 */
body::before {
    content: "";
    position: fixed;
    top: -10%;
    left: -10%;
    width: 120%;
    height: 120%;
    pointer-events: none;
    background:
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0) 70%),
        radial-gradient(circle at 80% 70%, rgba(147, 112, 219, 0.4), rgba(255, 255, 255, 0) 70%),
        radial-gradient(circle at 70% 20%, rgba(173, 216, 230, 0.5), rgba(255, 255, 255, 0) 70%);
    filter: blur(80px);
    z-index: -2;
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    html, body {
        color: #eee;
        background: linear-gradient(135deg, #10151e, #111a27);
    }
    body::before {
        background:
            radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0) 70%),
            radial-gradient(circle at 80% 70%, rgba(147, 112, 219, 0.25), rgba(0, 0, 0, 0) 70%),
            radial-gradient(circle at 70% 20%, rgba(173, 216, 230, 0.15), rgba(0, 0, 0, 0) 70%);
    }
    .site-header,
    .post-card,
    footer.site-footer {
        background: rgba(22, 28, 39, 0.5);
        border-color: rgba(255, 255, 255, 0.1);
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    }
    .primary-navigation a {
        color: #eee;
    }
    .primary-navigation a:hover,
    .primary-navigation a:focus {
        color: #8ecae6;
    }
    .hero h1,
    .hero p,
    .site-branding .site-title {
        color: #eee;
    }
    .post-card h2,
    .post-card .post-meta,
    .post-card .post-excerpt,
    .post-card a.read-more,
    .site-branding .site-description,
    footer.site-footer p {
        color: #ccc;
    }
    .hero .cta-buttons .btn {
        color: #eee;
        background: rgba(22, 28, 39, 0.6);
        border-color: rgba(255, 255, 255, 0.1);
    }
    .hero .cta-buttons .btn:hover {
        background: rgba(22, 28, 39, 0.8);
    }
}

a {
    color: #007acc;
    text-decoration: none;
}
a:hover,
a:focus {
    text-decoration: underline;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* Glassy header */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    backdrop-filter: blur(30px) saturate(200%);
    background: rgba(255, 255, 255, 0.6);
    border-bottom: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.05);
    z-index: 1000;
}
.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2rem;
}
.site-branding {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.site-branding img {
    max-height: 40px;
    height: auto;
    width: auto;
    border-radius: 8px;
}
.site-branding .site-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: #111;
}
.site-branding .site-description {
    font-size: 0.875rem;
    color: #555;
}

/* Navigation */
.primary-navigation {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 1.5rem;
}
.primary-navigation li {
    position: relative;
}
.primary-navigation a {
    font-size: 1rem;
    color: #111;
    padding: 0.5rem 0;
    font-weight: 500;
    transition: color 0.2s ease;
}
.primary-navigation a:hover,
.primary-navigation a:focus {
    color: #007acc;
}

/* Hero section on front page */
.hero {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
    text-align: center;
    padding: 6rem 2rem 2rem;

    /* Create a subtle glassy halo behind the hero text */
    position: relative;
    overflow: hidden;
}

/* Hero background effects */
.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    height: 100%;
    background:
        radial-gradient(circle at center, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0) 70%),
        radial-gradient(circle at 30% 30%, rgba(147, 112, 219, 0.3), rgba(255, 255, 255, 0) 80%),
        radial-gradient(circle at 70% 70%, rgba(173, 216, 230, 0.3), rgba(255, 255, 255, 0) 80%);
    filter: blur(80px);
    z-index: -1;
}
}
.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #111;
}
.hero p {
    font-size: 1.25rem;
    color: #555;
    max-width: 40rem;
}
.hero .cta-buttons {
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
}
.hero .cta-buttons .btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.7), rgba(247, 247, 255, 0.7));
    border: 1px solid rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px) saturate(200%);
    color: #111;
    transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}
.hero .cta-buttons .btn:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(247, 247, 255, 0.9));
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.06);
}

/* Content area */
.content-area {
    padding-top: 100px; /* Space for fixed header */
}

/* Posts */
.post-card {
    margin-bottom: 2rem;
    padding: 2rem;
    border-radius: 16px;
    backdrop-filter: blur(40px) saturate(200%);
    background: rgba(255, 255, 255, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.7);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.04), 0 4px 8px rgba(0, 0, 0, 0.03);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.05), 0 8px 16px rgba(0, 0, 0, 0.04);
}
.post-card h2 {
    margin-top: 0;
    font-size: 1.75rem;
    color: #111;
}
.post-card .post-meta {
    font-size: 0.875rem;
    color: #777;
    margin-bottom: 1rem;
}
.post-card .post-excerpt {
    font-size: 1rem;
    color: #444;
}
.post-card a.read-more {
    margin-top: 1rem;
    display: inline-block;
    font-weight: 600;
    color: #007acc;
}

/* Footer */
footer.site-footer {
    margin-top: 4rem;
    padding: 2rem;
    text-align: center;
    background: rgba(255, 255, 255, 0.5);
    border-top: 1px solid rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(20px) saturate(180%);
}
footer.site-footer p {
    margin: 0;
    color: #555;
    font-size: 0.875rem;
}

/* Responsive */
@media (max-width: 768px) {
    .primary-navigation {
        flex-direction: column;
        gap: 0.75rem;
    }
    .site-header .container {
        flex-direction: column;
        align-items: flex-start;
    }
    .hero h1 {
        font-size: 2rem;
    }
    .hero p {
        font-size: 1rem;
    }
}