/**
 * Layout Components CSS
 * Central CSS file for layout components used across templates
 * Replaces inline styles previously in template files
 */

/* ===== Container & Width Control ===== */
.content-container {
    max-width: var(--container-max-width, 1200px);
    margin: 0 auto;
    padding: 0 var(--container-padding, 2rem);
}

/* ===== Breadcrumb Navigation ===== */
.breadcrumb-separator {
    margin: 0 8px;
}

/* ===== Buttons ===== */
.back-to-archive-btn {
    display: inline-block;
    padding: 14px 32px;
    background: white;
    color: #1e293b;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    border: 2px solid #e2e8f0;
    transition: all 0.3s ease;
}

.back-to-archive-btn:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: #0f172a;
}

.back-to-archive-btn.alt-style {
    background: #f1f5f9;
    border: none;
}

.back-to-archive-btn.alt-style:hover {
    background: #e2e8f0;
}

.back-to-archive-wrapper {
    text-align: center;
    margin-top: 40px;
}

/* ===== Event Display Styles ===== */
.event-meta-info {
    margin-bottom: 1rem;
    font-size: 0.875rem;
    color: #64748b;
}

.event-price-free {
    color: var(--event-accent, #a78bfa);
}

.event-online-link {
    color: var(--event-primary, #7c3aed);
}

/* ===== Company Labels ===== */
.company-label-name.no-pointer {
    cursor: default;
}

/* ===== Filter Panels ===== */
.filter-panel-hidden,
.filter-count-hidden,
.password-strength.hidden,
.password-match.hidden {
    display: none;
}

.filter-count {
    display: flex;
}

.filter-count.filter-count-hidden {
    display: none;
}

.clear-search {
    display: none;
}

.clear-search.visible {
    display: flex;
}

/* ===== Dashboard Button Link ===== */
a.btn-submit {
    display: inline-block;
    text-decoration: none;
}

/* ===== Grid Layouts ===== */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.dashboard-wrapper {
    padding: 60px 20px;
}

.dashboard-stat-label {
    font-size: 1rem;
    color: #64748b;
    margin: 0 0 10px 0;
}

.dashboard-stat-value {
    margin: 0;
    font-size: 1.125rem;
    color: #64748b;
}

.dashboard-stat-value.bold {
    font-weight: 600;
}

.dashboard-wrapper.centered {
    text-align: center;
}

.dashboard-tips-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.dashboard-tips-list li {
    padding: 15px 0;
    border-bottom: 1px solid #e2e8f0;
}

.dashboard-tips-list li:last-child {
    border-bottom: none;
}

/* ===== Archive Header (shared between theme and plugin) ===== */
/* Note: These styles are used by the plugin's class-archive-header.php
   but are defined here to ensure consistency with theme styling and
   to avoid duplication. The plugin relies on these classes being available. */

/* Der Archive Header liegt INNERHALB des Containers und nutzt dessen volle Breite */
.it-expert-archive-header {
    width: 100%;
    margin: 0 0 40px 0;
    padding: 40px;
    border-radius: 12px;
    box-sizing: border-box;
}

.it-expert-archive-header .header-container {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 30px;
}

.it-expert-archive-header .header-logo {
    flex-shrink: 0;
}

.it-expert-archive-header .header-logo img {
    max-width: 120px;
    max-height: 120px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.it-expert-archive-header .header-content {
    flex: 1;
}

.it-expert-archive-header .header-title {
    margin: 0 0 10px 0;
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
}

.it-expert-archive-header .header-description {
    margin: 0;
    font-size: 1.125rem;
    line-height: 1.6;
}

/* Responsive adjustments for archive header */
@media (max-width: 768px) {
    .it-expert-archive-header .header-container {
        flex-direction: column;
        text-align: center;
    }
    
    .it-expert-archive-header .header-title {
        font-size: 1.875rem !important;
    }
    
    .it-expert-archive-header .header-description {
        font-size: 1rem !important;
    }
}

/* Responsive adjustments for buttons */
@media (max-width: 768px) {
    .back-to-archive-btn {
        padding: 12px 24px;
        font-size: 0.9rem;
    }
}

/* Responsive adjustments for dashboard grid */
@media (max-width: 768px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .dashboard-wrapper {
        padding: 40px 15px;
    }
}
