/*
Theme Name: BCF Starter
Theme URI: https://b-cf.de/
Author: BCF GmbH
Author URI: https://b-cf.de/
Description: A modern, lightweight starter theme built with Bootstrap 5. Features customizable header layouts, top bar, footer widgets, and full color scheme control via the WordPress Customizer.
Version: 1.6
Text Domain: bcf-starter
*/

/* ==========================================================================
CSS Variables
   ========================================================================== */

:root {
    --theme-primary: #0d6efd;
    --theme-secondary: #6c757d;
    --theme-header-bg: #ffffff;
    --theme-header-text: #333333;
    --theme-topbar-bg: #1a1a2e;
    --theme-topbar-text: #ffffff;
    --theme-footer-top-bg: #1a1a2e;
    --theme-footer-top-text: #ffffff;
    --theme-footer-bottom-bg: #12121c;
    --theme-footer-bottom-text: #aaaaaa;
    --theme-logo-height: 50px;
    --theme-header-padding-top: 15px;
    --theme-header-padding-right: 0px;
    --theme-header-padding-bottom: 15px;
    --theme-header-padding-left: 0px;
    --theme-header-margin-top: 0px;
    --theme-header-margin-right: 0px;
    --theme-header-margin-bottom: 0px;
    --theme-header-margin-left: 0px;
    --theme-footer-margin-top: 0px;
    --theme-footer-margin-right: 0px;
    --theme-footer-margin-bottom: 0px;
    --theme-footer-margin-left: 0px;
    --theme-footer-top-padding-top: 50px;
    --theme-footer-top-padding-right: 0px;
    --theme-footer-top-padding-bottom: 50px;
    --theme-footer-top-padding-left: 0px;
    --theme-footer-bottom-padding-top: 20px;
    --theme-footer-bottom-padding-right: 0px;
    --theme-footer-bottom-padding-bottom: 20px;
    --theme-footer-bottom-padding-left: 0px;
    --theme-footer-logo-height: 60px;
}

/* ==========================================================================
    Base Styles
   ========================================================================== */

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.site-content {
    flex: 1;
}

img {
    max-width: 100%;
    height: auto;
}

/* ==========================================================================
   Top Bar
   ========================================================================== */

.top-bar {
    background-color: var(--theme-topbar-bg);
    color: var(--theme-topbar-text);
    font-size: 0.875rem;
}

.top-bar a {
    color: var(--theme-topbar-text);
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.top-bar a:hover {
    opacity: 1;
    text-decoration: none;
}

.top-bar .social-icons .social-link {
    color: var(--theme-topbar-text);
    opacity: 0.9;
}

.top-bar .social-icons .social-link:hover {
    opacity: 1;
}

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
    background-color: var(--theme-header-bg);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: relative;
    z-index: 1000;
    padding: var(--theme-header-padding-top) var(--theme-header-padding-right) var(--theme-header-padding-bottom) var(--theme-header-padding-left);
    margin: var(--theme-header-margin-top) var(--theme-header-margin-right) var(--theme-header-margin-bottom) var(--theme-header-margin-left);
}

.site-header.sticky-header {
    position: sticky;
    top: 0;
    transition: box-shadow 0.3s ease;
}

.site-header.sticky-header.is-scrolled {
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.site-header .navbar-brand,
.site-header .nav-link {
    color: var(--theme-header-text);
}

.site-header .nav-link:hover,
.site-header .nav-link:focus {
    color: var(--theme-primary);
}

.site-header .nav-link.active {
    color: var(--theme-primary);
}

.site-branding .custom-logo {
    max-height: var(--theme-logo-height);
    width: auto;
}

.site-branding a:hover {
    opacity: 1;
}

.site-branding .navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
}

.site-description {
    font-size: 0.875rem;
}

/* ==========================================================================
   Header Extra Area
   ========================================================================== */

.header-extra {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.header-cta .header-btn {
    white-space: nowrap;
    padding: 0.5rem 1.25rem;
    border-radius: 4px;
    font-weight: 500;
}

.header-social .social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    color: var(--theme-header-text);
    transition: all 0.3s ease;
}

.header-social .social-link:hover {
    color: var(--theme-primary);
    background-color: rgba(0, 0, 0, 0.05);
}

/* ==========================================================================
   Header Layouts
   ========================================================================== */

/* Extra Above Layout */
.header-layout-extra-above .header-row-top {
    border-bottom: 1px solid #e9ecef;
}

.header-layout-extra-above .header-row-nav {
    background-color: var(--theme-header-bg);
}

.header-layout-extra-above .header-row-nav .navbar-nav {
    width: 100%;
}

.header-layout-extra-above .header-row-nav .nav-link {
    padding: 1rem 1.25rem;
}

/* Extra Below Layout */
.header-layout-extra-below .header-row-extra {
    background-color: rgba(0, 0, 0, 0.02);
}

.header-layout-extra-below .header-row-nav {
    border-bottom: none;
}

/* Stacked Layout */
.header-layout-stacked .header-stacked {
    min-height: 80px;
}

.header-layout-stacked .site-branding .custom-logo {
    max-height: calc(var(--theme-logo-height) + 20px);
}

.header-layout-stacked .header-right-stacked {
    text-align: right;
}

.header-layout-stacked .header-right-stacked .navbar-nav {
    gap: 0.25rem;
}

.header-layout-stacked .header-right-stacked .nav-link {
    padding: 0.4rem 1rem;
    font-weight: 500;
}

.header-layout-stacked .header-right-stacked .nav-link:last-child {
    padding-right: 0;
}

.header-layout-stacked .header-extra {
    justify-content: flex-end;
}

/* ==========================================================================
   Navigation
   ========================================================================== */

.navbar-toggler {
    border: none;
    padding: 0.5rem;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.dropdown-menu {
    border: none;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
    border-radius: 0.375rem;
}

.dropdown-item {
    padding: 0.5rem 1rem;
}

.dropdown-item:hover {
    background-color: rgba(var(--theme-primary), 0.1);
    color: var(--theme-primary);
}

/* ==========================================================================
   Content Area
   ========================================================================== */

.entry-title {
    margin-bottom: 1rem;
}

.entry-meta {
    color: var(--theme-secondary);
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.entry-content {
    margin-bottom: 2rem;
}

.entry-footer {
    padding-top: 1rem;
    border-top: 1px solid #e9ecef;
    color: var(--theme-secondary);
    font-size: 0.875rem;
}

/* ==========================================================================
   Sidebar
   ========================================================================== */

.widget {
    margin-bottom: 2rem;
}

.widget-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--theme-primary);
}

/* ==========================================================================
   Footer Layouts
   ========================================================================== */

/* Default Layout - Footer Brand */
.footer-brand .custom-logo {
    max-height: var(--theme-footer-logo-height);
    width: auto;
}

.footer-brand .footer-site-title {
    color: var(--theme-footer-top-text);
}

.footer-brand .footer-description {
    opacity: 0.8;
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer-brand .footer-social .social-link {
    margin-right: 0.75rem;
}

/* Stacked Layout */
.footer-layout-stacked .footer-logo .custom-logo {
    max-height: var(--theme-footer-logo-height);
    width: auto;
}

.footer-layout-stacked .footer-site-title {
    color: var(--theme-footer-top-text);
}

.footer-menu-stacked {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-menu-stacked li {
    display: inline-block;
    margin: 0 1rem;
}

.footer-menu-stacked li a {
    color: var(--theme-footer-top-text);
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.3s ease;
}

.footer-menu-stacked li a:hover {
    opacity: 0.7;
}

.footer-layout-stacked .footer-social .social-link {
    margin: 0 0.5rem;
}

/* Simple Layout */
.footer-layout-simple .footer-bottom {
    border-top: 3px solid var(--theme-primary);
}

/* Minimal Layout */
.footer-layout-minimal .footer-bottom {
    border-top: 3px solid var(--theme-primary);
}

/* ==========================================================================
   Footer Top (Widget Area)
   ========================================================================== */

.site-footer {
    margin-top: var(--theme-footer-margin-top);
}

.footer-top {
    background-color: var(--theme-footer-top-bg);
    color: var(--theme-footer-top-text);
    padding-top: var(--theme-footer-top-padding-top);
    padding-bottom: var(--theme-footer-top-padding-bottom);
}

.footer-top a {
    color: var(--theme-footer-top-text);
    opacity: 0.8;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.footer-top a:hover {
    color: var(--theme-footer-top-text);
    opacity: 1;
}

.footer-top .widget-title {
    color: var(--theme-footer-top-text);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--theme-primary);
}

.footer-top .widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-top .widget ul li {
    padding: 0.35rem 0;
}

/* ==========================================================================
   Footer Bottom (Copyright Area)
   ========================================================================== */

.footer-bottom {
    background-color: var(--theme-footer-bottom-bg);
    color: var(--theme-footer-bottom-text);
    padding-top: var(--theme-footer-bottom-padding-top);
    padding-bottom: var(--theme-footer-bottom-padding-bottom);
}

.footer-bottom a {
    color: var(--theme-footer-bottom-text);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-bottom a:hover {
    color: #ffffff;
}

.footer-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-menu li {
    display: inline-block;
    margin-right: 1rem;
}

.footer-menu li:last-child {
    margin-right: 0;
}

.footer-social .social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--theme-footer-bottom-text);
    transition: all 0.3s ease;
    margin-left: 0.5rem;
}

.footer-social .social-link:first-child {
    margin-left: 0;
}

.footer-social .social-link:hover {
    background-color: var(--theme-primary);
    color: #ffffff;
    transform: translateY(-2px);
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn-primary {
    background-color: var(--theme-primary);
    border-color: var(--theme-primary);
}

.btn-primary:hover {
    background-color: var(--theme-primary);
    border-color: var(--theme-primary);
    opacity: 0.9;
}

.btn-outline-primary {
    color: var(--theme-primary);
    border-color: var(--theme-primary);
}

.btn-outline-primary:hover {
    background-color: var(--theme-primary);
    border-color: var(--theme-primary);
}

/* ==========================================================================
   Utilities
   ========================================================================== */

.text-primary {
    color: var(--theme-primary) !important;
}

.bg-primary {
    background-color: var(--theme-primary) !important;
}

a {
    color: var(--theme-primary);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--theme-primary);
    opacity: 0.8;
}

/* ==========================================================================
   Accessibility
   ========================================================================== */

.skip-link {
    position: absolute;
    left: -9999px;
    z-index: 9999;
    padding: 0.5rem 1rem;
    background: var(--theme-primary);
    color: #fff;
    text-decoration: none;
}

.skip-link:focus {
    left: 0;
    top: 0;
}

/* ==========================================================================
   Comments
   ========================================================================== */

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

.comment-body {
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    background-color: #f8f9fa;
    border-radius: 0.375rem;
}

.comment-author {
    font-weight: 600;
}

.comment-metadata {
    font-size: 0.875rem;
    color: var(--theme-secondary);
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 991.98px) {
    .navbar-collapse {
        padding: 1rem 0;
    }

    .nav-link {
        padding: 0.5rem 0 !important;
    }

    .dropdown-menu {
        box-shadow: none;
        padding-left: 1rem;
    }

    .header-extra {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
}

@media (max-width: 767.98px) {
    .footer-bottom .row > div {
        text-align: center !important;
    }

    .footer-menu li {
        display: block;
        margin-right: 0;
        margin-bottom: 0.5rem;
    }

    .footer-social {
        margin-top: 1rem;
    }
}
