/*
Theme Name: Dawitte Theme
Theme URI: https://www.dawitte.de
Author: Damian Wittenbeck
Author URI: https://615.eu
Description: Glassmorphism WordPress Theme for dawitte.de
Version: 1.0.0
Requires at least: 6.4
Tested up to: 6.7
Requires PHP: 8.0
License: Proprietary
License URI: https://www.dawitte.de
Text Domain: dawitte-theme
Tags: custom-colors, custom-logo, custom-menu
*/

:root {
  --dw-accent: #3b82f6;
  --dw-cyan: #06b6d4;
  --dw-bg-dark: #0a0e1a;
  --dw-bg-light: #f0f2f5;
  --dw-text-heading: #e2e8f0;
  --dw-text-body: #94a3b8;
  --dw-text-muted: #64748b;
  --dw-card-bg: rgba(15, 23, 42, 0.6);
  --dw-card-border: rgba(59, 130, 246, 0.08);
  --dw-card-radius: 16px;
  --dw-font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--dw-font);
  background: var(--dw-bg-dark);
  color: var(--dw-text-body);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: '';
  position: fixed; top: -50%; left: -50%;
  width: 200%; height: 200%;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(59,130,246,0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(6,182,212,0.04) 0%, transparent 50%);
  animation: dw-drift 20s ease-in-out infinite;
  z-index: 0; pointer-events: none;
}
@keyframes dw-drift {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-2%, 1%); }
}

h1, h2, h3, h4, h5, h6 {
  color: var(--dw-text-heading);
  font-weight: 700;
  line-height: 1.3;
}
h1 { font-size: 2.5rem; }
h2 { font-size: 1.8rem; }
h3 { font-size: 1.4rem; }

.entry-title, .site-title {
  background: linear-gradient(135deg, var(--dw-accent), var(--dw-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

a { color: var(--dw-accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--dw-cyan); }
p { margin-bottom: 1rem; }

.site-wrapper {
  position: relative; z-index: 1;
  min-height: 100vh; display: flex; flex-direction: column;
}
.site-content {
  max-width: 960px; margin: 0 auto; padding: 40px 24px; flex: 1;
}

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10, 14, 26, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--dw-card-border);
  padding: 16px 0;
}
.site-header .wrap {
  max-width: 960px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
}
.site-title a {
  font-size: 1.3rem; font-weight: 700;
  -webkit-text-fill-color: transparent;
  background: linear-gradient(135deg, var(--dw-accent), var(--dw-cyan));
  -webkit-background-clip: text; background-clip: text;
}

.main-nav ul { list-style: none; display: flex; gap: 6px; }
.main-nav a {
  padding: 8px 16px; border-radius: 12px;
  font-size: 0.85rem; font-weight: 500;
  color: var(--dw-text-body); transition: all 0.25s;
}
.main-nav a:hover, .main-nav .current-menu-item a {
  color: var(--dw-accent); background: rgba(59, 130, 246, 0.08);
}

.dw-card, .post, article.type-post, article.type-page, .widget {
  background: var(--dw-card-bg);
  backdrop-filter: blur(12px);
  border: 1px solid var(--dw-card-border);
  border-radius: var(--dw-card-radius);
  padding: 28px; margin-bottom: 24px; transition: all 0.3s;
}
.dw-card:hover, article:hover {
  border-color: rgba(59, 130, 246, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.dw-btn, .wp-block-button__link, button[type="submit"], input[type="submit"] {
  display: inline-block; padding: 12px 28px;
  background: linear-gradient(135deg, var(--dw-accent), #2563eb);
  color: #fff; border: none; border-radius: 16px;
  font-size: 0.9rem; font-weight: 600; font-family: var(--dw-font);
  cursor: pointer; transition: all 0.25s; text-decoration: none;
}
.dw-btn:hover, .wp-block-button__link:hover, button[type="submit"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.3); color: #fff;
}

.site-footer {
  text-align: center; padding: 40px 24px;
  border-top: 1px solid rgba(59, 130, 246, 0.06);
  color: var(--dw-text-muted); font-size: 0.8rem;
}

.post-thumbnail img {
  width: 100%; height: auto;
  border-radius: var(--dw-card-radius); margin-bottom: 20px;
}

input[type="text"], input[type="email"], input[type="url"], textarea {
  width: 100%; padding: 12px 16px;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid var(--dw-card-border); border-radius: 12px;
  color: var(--dw-text-heading); font-family: var(--dw-font);
  font-size: 0.9rem; transition: border-color 0.2s; margin-bottom: 12px;
}
input:focus, textarea:focus { outline: none; border-color: var(--dw-accent); }

@media (max-width: 768px) {
  h1 { font-size: 1.8rem; }
  .site-header .wrap { flex-direction: column; gap: 12px; }
  .main-nav ul { flex-wrap: wrap; justify-content: center; }
  .site-content { padding: 24px 16px; }
}
