/*
 Theme Name:   Stefan
 Theme URI:    https://stefan.boeck.name
 Description:  Twenty Fifteen Child Theme with Category Images
 Author:       Stefan Böck
 Author URI:   https://stefan.boeck.name
 Template:     twentyfifteen
 Version:      1.0.2
*/

/* Category with image styling (posts) */
.cat-links-with-image {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.cat-links-with-image .category-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f7f7f7;
    padding: 4px 10px 4px 4px;
    border-radius: 4px;
    text-decoration: none;
    transition: background 0.2s;
}

.cat-links-with-image .category-item:hover {
    background: #eee;
}

.cat-links-with-image .category-image {
    width: 24px !important;
    height: 24px !important;
    max-width: 24px !important;
    max-height: 24px !important;
    border-radius: 3px;
    object-fit: contain;
}

.cat-links-with-image .category-name {
    color: #333;
    font-size: 0.9em;
}

/* Category widget with images (sidebar) - SMALL 16x16 */
.widget_categories li a,
.wp-block-categories li a {
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
}

.widget_categories .cat-widget-img,
.wp-block-categories .cat-widget-img,
img.cat-widget-img {
    width: 24px !important;
    height: 24px !important;
    max-width: 24px !important;
    max-height: 24px !important;
    min-width: 24px !important;
    min-height: 24px !important;
    border-radius: 2px;
    object-fit: contain;
    vertical-align: middle;
    display: inline-block !important;
}

/* Remove bullet points from category list with icons */
.widget_categories ul,
.wp-block-categories {
    list-style: none !important;
    padding-left: 0 !important;
}

.widget_categories li,
.wp-block-categories li {
    list-style: none !important;
}

/* Round profile image */
.custom-logo {
    border-radius: 50% !important;
    object-fit: cover;
}

/* Hide WordPress footer credit */
.site-info {
    display: block;
}

/* Category archive logo */
.archive-category-logo {
    width: 64px;
    height: 64px;
    vertical-align: middle;
    margin-right: 12px;
    border-radius: 6px;
    object-fit: contain;
}

/* Project link on category pages */
.project-link {
    text-decoration: none;
    font-size: 0.7em;
    opacity: 0.6;
    margin-left: 8px;
}

.project-link:hover {
    opacity: 1;
}

/* Project link in sidebar */
.cat-project-link {
    text-decoration: none;
    font-size: 0.8em;
    opacity: 0.5;
    margin-left: 4px;
}

.cat-project-link:hover {
    opacity: 1;
}

/* Footer - force visible for logged-in users */
.site-footer,
.logged-in .site-footer,
.admin-bar .site-footer {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    padding: 20px !important;
    text-align: center !important;
    background: #fff !important;
    border-top: 1px solid #eee !important;
    position: relative !important;
    z-index: 99999 !important;
    clear: both !important;
}

.site-info,
.logged-in .site-info,
.admin-bar .site-info {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.site-info a {
    color: #707070;
    text-decoration: none;
}

.site-info a:hover {
    color: #333;
}

.site-info .sep {
    color: #ccc;
    margin: 0 8px;
}
