/*
Theme Name: WoltLab Suite
Description: WordPress Theme im WoltLab Suite Design mit charakteristischen Farben
Author: BenLue
Version: 1.0.1
*/

/* Force WoltLab Suite styling with high priority */
* {
    box-sizing: border-box !important;
}

html {
    font-size: 16px !important;
}

body {
    margin: 0 !important;
    padding: 0 !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif !important;
    font-size: 1rem !important;
    line-height: 1.6 !important;
    color: #212529 !important;
    background-color: #ffffff !important;
    -webkit-font-smoothing: antialiased !important;
}

/* Container */
.woltlab-container {
    width: 100% !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0 1rem !important;
}

/* Header Styling */
.site-header {
    background: #ffffff !important;
    border-bottom: 1px solid #dee2e6 !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 1000 !important;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05) !important;
    padding: 1rem 0 !important;
}

.header-container {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    min-height: 64px !important;
}

.site-title {
    margin: 0 !important;
    font-size: 1.5rem !important;
    font-weight: 700 !important;
}

.site-title a {
    color: #3f88c5 !important;
    text-decoration: none !important;
    font-weight: 700 !important;
}

.site-title a:hover {
    color: #2968a3 !important;
    text-decoration: none !important;
}

/* Navigation */
.main-navigation ul {
    display: flex !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    gap: 0.5rem !important;
}

.main-navigation li {
    margin: 0 !important;
}

.main-navigation a {
    display: block !important;
    padding: 0.5rem 1rem !important;
    color: #6c757d !important;
    text-decoration: none !important;
    border-radius: 0.25rem !important;
    font-weight: 500 !important;
}

.main-navigation a:hover {
    color: #3f88c5 !important;
    background-color: #f8f9fa !important;
    text-decoration: none !important;
}

/* Content Layout */
.site-content {
    padding: 2rem 0 !important;
    min-height: calc(100vh - 200px) !important;
}

.woltlab-row {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 1.5rem !important;
    margin: 0 !important;
}

.woltlab-col {
    flex: 1 !important;
    min-width: 0 !important;
}

/* Card Styling - Most Important */
.woltlab-card,
.post,
article {
    background: #ffffff !important;
    border: 1px solid #dee2e6 !important;
    border-radius: 0.375rem !important;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05) !important;
    padding: 1.5rem !important;
    margin-bottom: 1.5rem !important;
    transition: all 0.15s ease-in-out !important;
}

.woltlab-card:hover,
.post:hover,
article:hover {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1) !important;
    transform: translateY(-1px) !important;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    margin: 0 0 1rem 0 !important;
    font-weight: 600 !important;
    line-height: 1.3 !important;
    color: #212529 !important;
}

h1 { font-size: 1.875rem !important; }
h2 { font-size: 1.5rem !important; }
h3 { font-size: 1.25rem !important; }

.post-title {
    margin: 0 0 0.5rem 0 !important;
    font-size: 1.5rem !important;
    font-weight: 600 !important;
}

.post-title a {
    color: #212529 !important;
    text-decoration: none !important;
}

.post-title a:hover {
    color: #3f88c5 !important;
}

/* Post Meta */
.post-header {
    margin-bottom: 1rem !important;
    padding-bottom: 1rem !important;
    border-bottom: 1px solid #dee2e6 !important;
}

.post-meta {
    display: flex !important;
    gap: 1rem !important;
    margin: 0.5rem 0 !important;
    font-size: 0.875rem !important;
    color: #6c757d !important;
}

.post-content {
    line-height: 1.7 !important;
    margin-bottom: 1rem !important;
    color: #212529 !important;
}

.post-content p {
    margin-bottom: 1rem !important;
}

/* Sidebar */
.widget-area {
    margin-top: 0 !important;
}

.widget {
    background: #ffffff !important;
    border: 1px solid #dee2e6 !important;
    border-radius: 0.375rem !important;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05) !important;
    padding: 1.5rem !important;
    margin-bottom: 1.5rem !important;
}

.widget h3 {
    margin: 0 0 1rem 0 !important;
    padding-bottom: 0.5rem !important;
    border-bottom: 2px solid #3f88c5 !important;
    color: #212529 !important;
    font-size: 1.125rem !important;
    font-weight: 600 !important;
}

/* Footer */
.site-footer {
    background: #f8f9fa !important;
    border-top: 1px solid #dee2e6 !important;
    margin-top: 3rem !important;
    padding: 2rem 0 !important;
    text-align: center !important;
}

.footer-content p {
    margin: 0.5rem 0 !important;
    color: #6c757d !important;
    font-size: 0.875rem !important;
}

.footer-content a {
    color: #3f88c5 !important;
    font-weight: 500 !important;
    text-decoration: none !important;
}

.footer-content a:hover {
    color: #2968a3 !important;
    text-decoration: underline !important;
}

/* Links */
a {
    color: #3f88c5 !important;
    text-decoration: none !important;
}

a:hover {
    color: #2968a3 !important;
    text-decoration: underline !important;
}

/* Remove WordPress default styling */
.wp-block-group,
.wp-site-blocks,
.wp-block-post-content {
    all: unset !important;
}

/* Responsive */
@media (max-width: 768px) {
    .woltlab-container {
        padding: 0 0.5rem !important;
    }

    .woltlab-row {
        flex-direction: column !important;
        gap: 1rem !important;
    }

    .header-container {
        flex-direction: column !important;
        gap: 1rem !important;
        text-align: center !important;
    }

    .main-navigation ul {
        flex-wrap: wrap !important;
        justify-content: center !important;
    }

    .post-title {
        font-size: 1.25rem !important;
    }

    .woltlab-card,
    .post,
    article {
        padding: 1rem !important;
    }
}

/* Override any remaining WordPress styles */
body.wordpress,
body.wp,
.wp-block-group__inner-container,
.wp-block-cover__inner-container {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    background: #ffffff !important;
}

/* Make sure WoltLab blue shows up */
::selection {
    background: #3f88c5 !important;
    color: white !important;
}

/* Debug: Add visible WoltLab branding */
body::before {
    content: 'WoltLab Suite Theme Active' !important;
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    background: #3f88c5 !important;
    color: white !important;
    padding: 0.25rem 0.5rem !important;
    font-size: 0.75rem !important;
    z-index: 9999 !important;
    opacity: 0.8 !important;
}
