/*
Theme Name: RTFM Disisto
Theme URI: https://rtfm.disisto.de
Author: Roberto Di Sisto
Author URI: https://disisto.de
Description: Custom WordPress theme matching the design of disisto.de portfolio website. Features modern gradient design, dark/light mode toggle, and responsive layout.
Version: 1.2.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: rtfm-disisto
Tags: blog, custom-background, custom-colors, custom-header, custom-menu, editor-style, featured-images, flexible-header, microformats, post-formats, rtl-language-support, theme-options, threaded-comments, translation-ready
*/

/* CSS Custom Properties */
:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --accent-color: #667eea;
    --text-muted: #6c757d;
    --border-radius-lg: 1rem;
    --box-shadow-soft: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.1);
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --bg-light-section: #f8f9fa;
}

[data-bs-theme="dark"] {
    --primary-gradient: linear-gradient(135deg, #4c63d2 0%, #5a4fcf 100%);
    --secondary-gradient: linear-gradient(135deg, #d084e8 0%, #e74c6c 100%);
    --accent-color: #6366f1;
    --text-muted: #9ca3af;
    --box-shadow-soft: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.3);
    --bg-light-section: #1f2937;
}

/* Ensure immediate theme application */
html {
    transition: background-color 0.3s ease, color 0.3s ease;
}

html[data-bs-theme="dark"] {
    background-color: #111827;
    color: #f9fafb;
}

html[data-bs-theme="light"] {
    background-color: #ffffff;
    color: #111827;
}

/* Base Styles */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

html {
    scrollbar-gutter: stable;
}

/* Main Content */
.main-content {
    padding-top: 80px;
    margin: 0;
    position: relative;
}

/* Navigation */
.navbar-custom {
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.9) !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    padding: 1rem 0;
    transition: var(--transition-smooth);
}

[data-bs-theme="dark"] .navbar-custom {
    background: rgba(17, 24, 39, 0.9) !important;
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-link {
    font-weight: 500;
    margin: 0 0.5rem;
    border-radius: 0.5rem;
    transition: var(--transition-smooth);
    position: relative;
}

.nav-link:hover {
    background: rgba(102, 126, 234, 0.1);
    transform: translateY(-1px);
}

.nav-link.active {
    background: var(--primary-gradient);
    color: white !important;
}

/* Theme Toggle */
.theme-toggle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    background: var(--primary-gradient);
    color: white;
    cursor: pointer;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle:hover {
    transform: scale(1.1) rotate(10deg);
    box-shadow: var(--box-shadow-soft);
}

.theme-toggle i {
    transition: var(--transition-smooth);
    font-size: 1.2rem;
}

/* Cards */
.card-custom {
    border: none;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--box-shadow-soft);
    transition: var(--transition-smooth);
    overflow: hidden;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    position: relative;
}

[data-bs-theme="dark"] .card-custom {
    background: rgba(17, 24, 39, 0.9);
    border: 1px solid rgba(75, 85, 99, 0.3);
}

.card-custom::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-gradient);
    transform: scaleX(0);
    transition: var(--transition-smooth);
}

.card-custom:hover::before {
    transform: scaleX(1);
}

.card-custom:hover {
    transform: translateY(-10px);
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.2);
}

/* Buttons */
.btn-gradient {
    background: var(--primary-gradient);
    border: none;
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.btn-gradient:hover {
    transform: translateY(-2px);
    box-shadow: var(--box-shadow-soft);
    color: white;
}

/* Footer */
.footer-custom {
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
    color: white;
    padding: 1.5rem 0;
    margin-top: 5rem;
    position: relative;
    overflow: hidden;
    animation: footerSlideUp 0.6s ease-out;
}

.footer-custom::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.5), transparent);
}

.footer-copyright {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    font-weight: 500;
    line-height: 1.5;
    display: inline-block;
}

[data-bs-theme="dark"] .footer-copyright {
    color: rgba(255, 255, 255, 0.9);
}

[data-bs-theme="light"] .footer-copyright {
    color: rgba(255, 255, 255, 0.8);
}

.footer-link {
    color: rgba(255, 255, 255, 0.8) !important;
    text-decoration: none !important;
    font-size: 0.9rem;
    font-weight: 500;
    line-height: 1.5;
    transition: var(--transition-smooth);
    padding: 0.25rem 0;
    border-bottom: 1px solid transparent;
    display: inline-block;
}

.footer-link:hover,
.footer-link:focus {
    color: white !important;
    text-decoration: none !important;
    border-bottom-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-1px);
}

/* Dark/Light mode footer backgrounds */
[data-bs-theme="light"] .footer-custom {
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
    color: white;
}

[data-bs-theme="dark"] .footer-custom {
    background: linear-gradient(135deg, #0f172a 0%, #020617 100%);
    color: white;
}

.footer-link:active {
    color: rgba(255, 255, 255, 0.9) !important;
    transform: translateY(0);
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
    font-size: 1.2rem;
    position: relative;
    overflow: hidden;
    text-decoration: none !important;
    color: rgba(255, 255, 255, 0.7) !important;
    border: none;
    outline: none;
}

.social-link:hover,
.social-link:focus,
.social-link:active {
    text-decoration: none !important;
}

.social-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transform: scale(0);
    transition: var(--transition-smooth);
}

.social-link:hover {
    color: white !important;
    transform: translateY(-3px);
}

.social-link:hover::before {
    transform: scale(1);
}

/* Specific social platform colors on hover */
.social-link:hover .fa-linkedin {
    color: #0077b5;
}

.social-link:hover .fa-xing {
    color: #026466;
}

.social-link:hover .fa-github {
    color: #333;
}

[data-bs-theme="dark"] .social-link:hover .fa-github {
    color: #f0f6fc;
}

/* Posts/Articles */
.entry-header {
    margin-bottom: 2rem;
}

.entry-title {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

.entry-content {
    line-height: 1.8;
}

.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.entry-content p {
    margin-bottom: 1.5rem;
}

.entry-content pre {
    background: rgba(0, 0, 0, 0.05);
    padding: 1rem;
    border-radius: 0.5rem;
    overflow-x: auto;
}

[data-bs-theme="dark"] .entry-content pre {
    background: rgba(255, 255, 255, 0.05);
}

/* Sidebar */
.widget {
    margin-bottom: 2rem;
}

.widget-title {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    margin-bottom: 1rem;
}

/* Desktop navbar spacing */
@media (min-width: 769px) {
    .navbar-nav {
        margin-left: 20px;
    }
}

/* Responsive navbar */
@media (max-width: 768px) {
    .navbar-custom {
        padding: 0.5rem 0;
        min-height: 70px;
    }

    .main-content {
        padding-top: 70px;
    }

    /* Add padding to nav links in mobile menu */
    .nav-link {
        padding: 0.75rem 1rem;
    }

    /* Center language switcher and theme toggle in mobile menu */
    .navbar-collapse .d-flex {
        justify-content: center !important;
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid rgba(102, 126, 234, 0.2);
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    .nav-link {
        padding: 0.75rem 1rem;
    }

    .theme-toggle {
        width: 56px;
        height: 56px;
    }

    .social-link {
        width: 48px;
        height: 48px;
    }

    .btn-gradient {
        padding: 1rem 2rem;
        font-size: 1rem;
    }
}

/* Modal Styles */
.modal-icon-large {
    font-size: 3rem;
}

[data-bs-theme="dark"] .modal-header .btn-close {
    filter: invert(1);
}

[data-bs-theme="dark"] .alert-light {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.9);
}

[data-bs-theme="dark"] .bg-dark {
    background-color: rgba(0, 0, 0, 0.3) !important;
}

.text-break {
    word-break: break-all;
}

/* Footer Enhancements - Removed duplicate styles, keeping original portfolio design */

.social-link {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.social-link:hover {
    background: rgba(102, 126, 234, 0.2);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.social-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transform: scale(0);
    transition: var(--transition-smooth);
}

.social-link:hover::before {
    transform: scale(1);
}

@keyframes footerSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/* Social link hover colors - platform specific */
.social-link:hover .fa-linkedin {
    color: #0077b5 !important;
}

.social-link:hover .fa-xing {
    color: #026466 !important;
}

.social-link:hover .fa-github {
    color: #333 !important;
}

[data-bs-theme="dark"] .social-link:hover .fa-github {
    color: #f0f6fc !important;
}

/* Ensure no borders or outlines */
.social-link {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

.social-link:focus,
.social-link:active {
    outline: none !important;
    box-shadow: none !important;
}
/* Responsive Footer Styles */
@media (max-width: 768px) {
    .footer-custom {
        padding: 2rem 0 1rem;
        margin-top: 3rem;
    }
    
    .footer-custom .row:first-child {
        text-align: center;
    }
    
    .footer-custom .col-md-6:first-child {
        justify-content: center !important;
        margin-bottom: 1rem;
    }
    
    .footer-custom .col-md-6:last-child {
        justify-content: center !important;
    }
    
    .footer-copyright {
        font-size: 0.85rem;
    }
    
    .footer-link {
        font-size: 0.85rem;
    }
    
    .social-link {
        width: 36px;
        height: 36px;
        font-size: 1.1rem;
    }
}

@media (max-width: 576px) {
    .footer-custom .d-flex.gap-2 {
        gap: 0.75rem !important;
    }
    
    .footer-link {
        font-size: 0.75rem;
        white-space: nowrap;
    }
    
    .social-link {
        width: 32px;
        height: 32px;
        font-size: 1rem;
    }
}
/* Post/Page Article Styling */
.card-custom .entry-title {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    margin-bottom: 1rem;
}

.card-custom .entry-title a {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    transition: var(--transition-smooth);
}

.card-custom .entry-title a:hover {
    opacity: 0.8;
}

[data-bs-theme="dark"] .card-custom .entry-title,
[data-bs-theme="dark"] .card-custom .entry-title a {
    background: linear-gradient(135deg, #a78bfa 0%, #ec4899 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.entry-meta {
    font-size: 0.9rem;
    color: rgba(0, 0, 0, 0.6);
}

[data-bs-theme="dark"] .entry-meta {
    color: rgba(255, 255, 255, 0.6);
}

.entry-meta i {
    opacity: 0.7;
}

.entry-content {
    line-height: 1.8;
    font-size: 1.05rem;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.entry-content p {
    margin-bottom: 1.5rem;
}

.entry-content img {
    border-radius: var(--border-radius-lg);
    box-shadow: var(--box-shadow-soft);
}

.entry-content pre {
    background: rgba(0, 0, 0, 0.05);
    padding: 1.5rem;
    border-radius: var(--border-radius-lg);
    overflow-x: auto;
    border-left: 4px solid var(--accent-color);
}

[data-bs-theme="dark"] .entry-content pre {
    background: rgba(255, 255, 255, 0.05);
}

.entry-content code {
    background: rgba(102, 126, 234, 0.1);
    padding: 0.2rem 0.4rem;
    border-radius: 0.25rem;
    font-family: 'Monaco', 'Courier New', monospace;
    font-size: 0.9em;
}

.entry-content blockquote {
    border-left: 4px solid var(--accent-color);
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: rgba(0, 0, 0, 0.7);
}

[data-bs-theme="dark"] .entry-content blockquote {
    color: rgba(255, 255, 255, 0.7);
}

/* Card image styling */
.card-custom .card-img-top img {
    transition: var(--transition-smooth);
}

.card-custom:hover .card-img-top img {
    transform: scale(1.05);
}

/* Post navigation buttons */
.post-navigation .btn {
    transition: var(--transition-smooth);
}

.post-navigation .btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--box-shadow-soft);
}
/* Card Body Padding */
.card-custom .card-body {
    padding: 2rem calc(2rem + 2px);
}

.card-custom .entry-header {
    margin-bottom: 1.5rem;
}

.card-custom .entry-content {
    padding: 0 0.5rem;
}

@media (max-width: 768px) {
    .card-custom .card-body {
        padding: 1.5rem calc(1.5rem + 2px);
    }
}
/* Container consistency with portfolio - let Bootstrap handle default padding */

/* Mobile container padding override (matches disisto.de) */
@media (max-width: 576px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

@media (max-width: 320px) {
    .container {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    .social-link {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }

    .footer-copyright {
        font-size: 0.75rem;
    }

    .footer-link {
        font-size: 0.7rem;
    }
}

@media (min-width: 576px) {
    .container {
        max-width: 540px;
    }
}

@media (min-width: 768px) {
    .container {
        max-width: 720px;
    }
}

@media (min-width: 992px) {
    .container {
        max-width: 960px;
    }
}

@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
}

@media (min-width: 1400px) {
    .container {
        max-width: 1140px;
    }
}
/* Theme Toggle Enhanced Animation */
.theme-toggle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    background: var(--primary-gradient);
    color: white;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle:hover {
    transform: scale(1.1) rotate(10deg);
    box-shadow: var(--box-shadow-soft);
}

.theme-toggle:active {
    transform: scale(0.95);
}

.theme-toggle i {
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    font-size: 1.2rem;
}

/* Animation when switching themes */
.theme-toggle.switching i {
    transform: rotate(360deg) scale(0);
}

.theme-toggle i {
    transform: rotate(0deg) scale(1);
}

/* Pulse effect on theme change */
@keyframes themePulse {
    0% {
        box-shadow: 0 0 0 0 rgba(102, 126, 234, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(102, 126, 234, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(102, 126, 234, 0);
    }
}

.theme-toggle.pulse {
    animation: themePulse 0.6s;
}
/* Navbar Brand with Tagline */
.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: var(--transition-smooth);
    text-decoration: none !important;
    display: block;
    position: relative;
}

.navbar-brand:hover {
    opacity: 0.8;
}

.brand-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    overflow: hidden;
}

.brand-name {
    display: block;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Navbar Tagline - positioned below navbar */

/* ============================================
   NAVBAR TAGLINE
   ============================================ */
.navbar-tagline {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    transform: translateY(0);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1029;
    padding: 0.5rem 0;
    pointer-events: none;
}

.navbar-custom:has(.navbar-brand:hover) .navbar-tagline {
    transform: translateY(20px);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.tagline-text {
    font-size: 0.875rem;
    font-weight: 700;
    display: block;
    color: #ffffff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

[data-bs-theme="dark"] .tagline-text {
    color: #ffffff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    padding: 120px 0 80px;
    margin-top: 0;
    position: relative;
    overflow: hidden;
}

[data-bs-theme="dark"] .hero-section {
    background: linear-gradient(135deg, #4c1d95 0%, #5b21b6 100%) !important;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.hero-icon-large {
    width: 250px;
    height: 250px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 7rem;
    color: #ffffff;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    animation: float 3s ease-in-out infinite;
    border: 3px solid rgba(255, 255, 255, 0.2);
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 2.75rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
    text-align: left;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 2.5rem;
    text-align: left;
    line-height: 1.7;
}

.hero-search-form {
    max-width: 700px;
    margin: 0;
}

.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: #ffffff;
    border-radius: 50px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    transition: var(--transition-smooth);
}

.search-input-wrapper:focus-within {
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

.search-icon {
    position: absolute;
    left: 2rem;
    color: #9ca3af;
    font-size: 1.25rem;
}

.search-input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 1.25rem 2rem 1.25rem 4.5rem;
    font-size: 1rem;
    color: #1f2937;
    outline: none;
    border-radius: 50px;
}

.search-input::placeholder {
    color: #9ca3af;
}

.search-button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 50px;
    padding: 1rem 2rem;
    margin: 0.25rem;
    color: #ffffff;
    font-size: 1.25rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-button:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

/* ============================================
   HELP TOPICS SECTION
   ============================================ */
.help-topics-section {
    padding: 60px 0 80px;
    background: #f9fafb;
}

[data-bs-theme="dark"] .help-topics-section {
    background: rgba(255, 255, 255, 0.02);
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: #111827;
}

[data-bs-theme="dark"] .section-title {
    color: #f9fafb;
}

/* Help Topic Cards */
.help-topic-card {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
    background: #ffffff;
    border-radius: 0.75rem;
    border: 1px solid #e5e7eb;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
    height: 100%;
}

[data-bs-theme="dark"] .help-topic-card {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

.help-topic-card:hover {
    border-color: #667eea;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
    transform: translateY(-2px);
}

.topic-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #667eea;
}

.topic-content {
    flex: 1;
}

.topic-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #111827;
}

[data-bs-theme="dark"] .topic-title {
    color: #f9fafb;
}

.topic-description {
    font-size: 0.875rem;
    color: #6b7280;
    margin: 0;
    line-height: 1.5;
}

[data-bs-theme="dark"] .topic-description {
    color: #9ca3af;
}

/* Popular Articles Sidebar */
.help-topics-section > .container > .row {
    align-items: stretch;
}

.help-topics-section .col-lg-4 {
    display: flex;
}

.popular-articles-sidebar {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    padding: 1.5rem;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.popular-articles-sidebar .popular-articles-list {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

[data-bs-theme="dark"] .popular-articles-sidebar {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

.sidebar-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    color: #111827;
}

[data-bs-theme="dark"] .sidebar-title {
    color: #f9fafb;
}

.popular-articles-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.popular-article-item {
    padding: 0.625rem 0;
    border-bottom: 1px solid #e5e7eb;
}

[data-bs-theme="dark"] .popular-article-item {
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

.popular-article-item:last-child {
    border-bottom: none;
}

.popular-article-link {
    color: #374151;
    text-decoration: none;
    font-size: 0.9375rem;
    line-height: 1.5;
    transition: color 0.2s ease;
    display: block;
}

[data-bs-theme="dark"] .popular-article-link {
    color: #d1d5db;
}

.popular-article-link:hover {
    color: #667eea;
}

/* Popular Articles Sidebar - Enhanced with Icons */
.popular-articles-sidebar .popular-article-link {
    display: flex;
    align-items: center;
    gap: 0.625rem;
}

.popular-article-icon {
    width: 32px;
    height: 32px;
    min-width: 32px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #667eea;
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.popular-article-item:hover .popular-article-icon {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    transform: scale(1.05);
}

.popular-article-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}

.popular-article-title {
    font-weight: 500;
    font-size: 0.875rem;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.popular-article-date {
    font-size: 0.7rem;
    color: #9ca3af;
    margin-top: 0.125rem;
}

[data-bs-theme="dark"] .popular-article-date {
    color: #6b7280;
}

/* ============================================
   POPULAR ARTICLES SECTION
   ============================================ */
.popular-articles-section {
    padding: 80px 0;
    background: linear-gradient(180deg, transparent 0%, rgba(102, 126, 234, 0.03) 100%);
}

[data-bs-theme="dark"] .popular-articles-section {
    background: linear-gradient(180deg, transparent 0%, rgba(102, 126, 234, 0.05) 100%);
}

.popular-articles-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.popular-article-item {
    background: #ffffff;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: var(--transition-smooth);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

[data-bs-theme="dark"] .popular-article-item {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

.popular-article-item:hover {
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.15);
    transform: translateX(10px);
    border-color: rgba(102, 126, 234, 0.3);
}

.popular-article-link {
    display: flex;
    align-items: center;
    padding: 1.5rem;
    text-decoration: none;
    color: inherit;
    gap: 1.5rem;
}

.article-icon {
    width: 50px;
    height: 50px;
    border-radius: 0.75rem;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #667eea;
    flex-shrink: 0;
    transition: var(--transition-smooth);
}

.popular-article-item:hover .article-icon {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    transform: scale(1.1);
}

.article-info {
    flex: 1;
}

.article-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #1f2937;
}

[data-bs-theme="dark"] .article-title {
    color: #f3f4f6;
}

.article-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.875rem;
    color: #9ca3af;
}

.article-meta i {
    margin-right: 0.25rem;
}

.article-meta .article-category a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-smooth);
}

.article-meta .article-category a:hover {
    color: #667eea;
}

.article-arrow {
    font-size: 1.25rem;
    color: #9ca3af;
    transition: var(--transition-smooth);
    flex-shrink: 0;
}

.popular-article-item:hover .article-arrow {
    color: #667eea;
    transform: translateX(5px);
}

/* ============================================
   COMMENT FORM STYLING
   ============================================ */
.comment-respond {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 1rem;
    padding: 2.5rem;
    margin-top: 3rem;
}

[data-bs-theme="dark"] .comment-respond {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

.comment-reply-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.comment-notes,
.logged-in-as {
    font-size: 0.9375rem;
    color: #6b7280;
    margin-bottom: 1.5rem;
}

[data-bs-theme="dark"] .comment-notes,
[data-bs-theme="dark"] .logged-in-as {
    color: #9ca3af;
}

.comment-form-comment,
.comment-form-author,
.comment-form-email,
.comment-form-url {
    margin-bottom: 1.5rem;
}

.comment-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #374151;
    font-size: 0.9375rem;
}

[data-bs-theme="dark"] .comment-form label {
    color: #d1d5db;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: all 0.2s ease;
    background: #ffffff;
    color: #111827;
}

[data-bs-theme="dark"] .comment-form input[type="text"],
[data-bs-theme="dark"] .comment-form input[type="email"],
[data-bs-theme="dark"] .comment-form input[type="url"],
[data-bs-theme="dark"] .comment-form textarea {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    color: #f9fafb;
}

.comment-form input[type="text"]:focus,
.comment-form input[type="email"]:focus,
.comment-form input[type="url"]:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.comment-form textarea {
    min-height: 150px;
    resize: vertical;
}

.comment-form-cookies-consent {
    margin-bottom: 1.5rem;
}

.comment-form-cookies-consent input[type="checkbox"] {
    margin-right: 0.5rem;
}

.comment-form-cookies-consent label {
    display: inline;
    font-weight: 400;
    margin-bottom: 0;
}

.form-submit {
    margin-bottom: 0;
}

.form-submit .submit {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    border: none;
    padding: 0.875rem 2rem;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.form-submit .submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.form-submit .submit:active {
    transform: translateY(0);
}

/* Comments List */
.comments-area {
    margin-top: 3rem;
}

.comments-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 2rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.comment-list {
    list-style: none;
    padding: 0;
}

.comment {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
}

[data-bs-theme="dark"] .comment {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

.comment-author {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.comment-metadata {
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 1rem;
}

[data-bs-theme="dark"] .comment-metadata {
    color: #9ca3af;
}

.comment-content {
    color: #374151;
    line-height: 1.6;
}

[data-bs-theme="dark"] .comment-content {
    color: #d1d5db;
}

.reply {
    margin-top: 1rem;
}

.comment-reply-link {
    font-size: 0.875rem;
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.comment-reply-link:hover {
    color: #764ba2;
}

/* ============================================
   RESPONSIVE STYLES
   ============================================ */
@media (max-width: 991px) {
    .hero-section {
        padding: 80px 0 60px;
        padding-top: 140px;
    }

    .hero-icon-large {
        width: 180px;
        height: 180px;
        font-size: 5rem;
        margin-bottom: 2rem;
    }

    .hero-title {
        font-size: 2rem;
        text-align: center;
    }

    .hero-subtitle {
        font-size: 1rem;
        text-align: center;
    }

    .hero-search-form {
        text-align: center;
    }

    .categories-section,
    .popular-articles-section {
        padding: 60px 0;
    }
}

@media (max-width: 768px) {
    .hero-icon-large {
        width: 140px;
        height: 140px;
        font-size: 4rem;
    }

    .hero-title {
        font-size: 1.75rem;
    }

    .search-icon {
        left: 1.5rem;
        font-size: 1rem;
    }

    .search-input {
        padding: 1rem 1.5rem 1rem 3.5rem;
        font-size: 0.9rem;
    }

    .search-button {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .popular-article-link {
        padding: 1rem;
        gap: 1rem;
    }

    .article-icon {
        width: 40px;
        height: 40px;
        font-size: 1.25rem;
    }

    .article-title {
        font-size: 1rem;
    }

    .article-meta {
        flex-direction: column;
        gap: 0.25rem;
    }
}

/* ============================================
   Search Results Page Styles
   ============================================ */

/* Search Header */
.search-header-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 4rem 0 3rem;
    margin-bottom: 3rem;
}

[data-bs-theme="dark"] .search-header-section {
    background: linear-gradient(135deg, #4c1d95 0%, #5b21b6 100%);
}

.search-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.search-query {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.9);
}

.search-query strong {
    color: #ffffff;
    font-weight: 600;
}

/* Search Content */
.search-content-section {
    padding: 2rem 0 4rem;
}

.search-results-count {
    font-size: 1rem;
}

/* Search Result Cards */
.search-result-card {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

[data-bs-theme="dark"] .search-result-card {
    background: #1e293b;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.search-result-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.search-result-card-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    flex: 1;
    height: 100%;
}

.search-result-card-content {
    padding: 1.5rem 1.5rem 1rem 1.5rem;
    flex: 1;
}

.search-result-card-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.search-result-card-icon {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: white;
    font-size: 1.25rem;
}

.search-result-card-title-wrap {
    flex: 1;
    min-width: 0;
}

.search-result-card-title {
    word-break: break-word;
    overflow-wrap: break-word;
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0;
    line-height: 1.4;
}

[data-bs-theme="dark"] .search-result-card-title {
    color: #f1f5f9;
}

.search-result-card-excerpt {
    color: #6b7280;
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
}

[data-bs-theme="dark"] .search-result-card-excerpt {
    color: #94a3b8;
}

.search-result-card-meta {
    padding: 1rem 1.5rem 1.5rem 1.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    margin-top: auto;
}

[data-bs-theme="dark"] .search-result-card-meta {
    border-top-color: rgba(255, 255, 255, 0.05);
}

.search-result-card-date {
    font-size: 0.875rem;
    color: #9ca3af;
    display: flex;
    align-items: center;
    gap: 0.375rem;
    margin-bottom: 0.75rem;
}

.search-result-card-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
    min-height: 26px;
}

.search-result-card-category {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    color: #667eea;
    font-size: 0.8rem;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-weight: 500;
    border: 1px solid rgba(102, 126, 234, 0.2);
    white-space: nowrap;
}

.search-result-card-readmore {
    color: #667eea;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem;
    transition: gap 0.3s ease;
}

.search-result-card:hover .search-result-card-readmore {
    gap: 0.75rem;
}
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.search-header-query {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.125rem;
}

/* Gradient Background Utility */
.gradient-bg {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

[data-bs-theme="dark"] .gradient-bg {
    background: linear-gradient(135deg, #4c1d95 0%, #5b21b6 100%);
}
/* ============================================
   Cookie Consent Banner - Synced with disisto.de
   ============================================ */

.cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(249, 250, 251, 0.98) 100%);
    backdrop-filter: blur(10px);
    border-top: 3px solid;
    border-image: linear-gradient(135deg, #667eea 0%, #764ba2 100%) 1;
    box-shadow: 0 -5px 25px rgba(0, 0, 0, 0.1);
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.cookie-consent-banner.show {
    transform: translateY(0);
}

[data-bs-theme="dark"] .cookie-consent-banner {
    background: linear-gradient(135deg, rgba(17, 24, 39, 0.98) 0%, rgba(31, 41, 55, 0.98) 100%);
    border-image: linear-gradient(135deg, #4c63d2 0%, #5a4fcf 100%) 1;
    box-shadow: 0 -5px 25px rgba(0, 0, 0, 0.3);
}

.cookie-consent-content {
    padding: 1.5rem 0;
}

.cookie-consent-banner h3 {
    font-weight: 700;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

[data-bs-theme="dark"] .cookie-consent-banner h3 {
    background: linear-gradient(135deg, #4c63d2 0%, #5a4fcf 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cookie-consent-banner p {
    color: #6c757d;
    line-height: 1.6;
}

[data-bs-theme="dark"] .cookie-consent-banner p {
    color: rgba(255, 255, 255, 0.8);
}

.cookie-consent-banner .fa-cookie-bite {
    color: var(--accent-color) !important;
    font-size: 1.5rem !important;
}

[data-bs-theme="dark"] .cookie-consent-banner .fa-cookie-bite {
    color: #818cf8 !important;
}

.cookie-consent-banner a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.cookie-consent-banner a:hover {
    color: #764ba2;
    text-decoration: underline;
}

[data-bs-theme="dark"] .cookie-consent-banner a {
    color: #818cf8;
}

[data-bs-theme="dark"] .cookie-consent-banner a:hover {
    color: #a5b4fc;
}

.cookie-consent-banner .btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
    font-weight: 600;
}

.cookie-consent-banner .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

[data-bs-theme="dark"] .cookie-consent-banner .btn-primary {
    background: linear-gradient(135deg, #4c63d2 0%, #5a4fcf 100%);
}

.cookie-consent-banner .btn-outline-secondary {
    color: #6c757d;
    border-color: #6c757d;
}

.cookie-consent-banner .btn-outline-secondary:hover {
    background: #6c757d;
    color: white;
}

[data-bs-theme="dark"] .cookie-consent-banner .btn-outline-secondary {
    color: #9ca3af;
    border-color: #9ca3af;
}

[data-bs-theme="dark"] .cookie-consent-banner .btn-outline-secondary:hover {
    background: #9ca3af;
    color: #1f2937;
}

@media (max-width: 992px) {
    .cookie-consent-content {
        padding: 1.25rem 0;
    }
    
    .cookie-consent-banner h3 {
        font-size: 1.1rem;
    }
    
    .cookie-consent-banner p {
        font-size: 0.875rem;
    }
}

/* ============================================
   Hero Section Styles
   ============================================ */

.search-header-section {
    padding: 4rem 0 3rem;
    margin-bottom: 3rem;
}

.gradient-bg {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

[data-bs-theme="dark"] .gradient-bg {
    background: linear-gradient(135deg, #4c1d95 0%, #5b21b6 100%);
}

.search-header-title {
    color: #ffffff;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.search-header-query {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.125rem;
}

.search-content-section {
    padding-bottom: 4rem;
}

.search-results-count p {
    color: #9ca3af;
    font-size: 0.95rem;
}

/* Hero Search Form */
.search-form-hero {
    max-width: 600px;
    margin: 0 auto;
}

.search-form-hero .search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: #ffffff;
    border-radius: 50px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    padding: 0;
}

.search-form-hero .search-input-wrapper:focus-within {
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

.search-form-hero .search-icon {
    position: absolute;
    left: 1.5rem;
    color: #9ca3af;
    font-size: 1.1rem;
}

.search-form-hero .search-input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 1rem 1.5rem 1rem 3.5rem;
    font-size: 1rem;
    color: #1f2937;
    outline: none;
    border-radius: 50px 0 0 50px;
}

.search-form-hero .search-input::placeholder {
    color: #9ca3af;
}

.search-form-hero .search-button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: #ffffff;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
    margin: 4px;
}

.search-form-hero .search-button:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

/* Fix Hero Search Button */
.search-form-hero .search-input-wrapper .search-button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: #ffffff;
    width: 48px;
    min-width: 48px;
    height: 48px;
    min-height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
    margin: 4px;
    padding: 0;
    font-size: 1rem;
}

.search-form-hero .search-input-wrapper .search-button:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}
