/*
Theme Name: ClaudeCodeMade
Theme URI: https://motoinfo.pl
Author: ClaudeCode & MotoInfo Team
Author URI: https://motoinfo.pl
Description: Nowoczesny, minimalistyczny i responsywny motyw dla strony motoryzacyjnej. Prosty, szybki i łatwy w obsłudze.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: claudecodemade
Tags: blog, news, automotive, responsive, clean, minimal
*/

/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Force color override for all article titles */
h3.article-title a,
.article-card h3 a,
.articles-grid article h3 a {
    color: #e0d9ff !important;
}

:root {
    --primary: #a78bfa;
    --primary-dark: #8b5cf6;
    --dark: #1a0f3d;
    --gray-dark: #c4b5fd;
    --gray: #a78bfa;
    --gray-light: #2d1554;
    --white: #e0d9ff;
    --bg: #0f0728;
    --radius: 8px;
    --shadow: 0 2px 8px rgba(0,0,0,0.5);
    --shadow-hover: 0 4px 16px rgba(0,0,0,0.6);
}

html {
    scroll-behavior: smooth;
}

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap');

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--white);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--primary-dark);
}

button {
    cursor: pointer;
    font-family: inherit;
}

.skip-to-content {
    position: absolute;
    top: -100px;
    left: 0;
    background: var(--primary);
    color: white;
    padding: 12px 20px;
    z-index: 9999;
}

.skip-to-content:focus {
    top: 0;
}

/* ===== LAYOUT ===== */
.site-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.site-main {
    min-height: 60vh;
}

.content-area {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 40px;
    margin: 40px 0;
    font-size: 90%;
}

.main-content {
    min-width: 0;
}

/* ===== HEADER ===== */
.site-header {
    background: var(--dark);
    border-bottom: 1px solid var(--gray-light);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow);
}

.header-top {
    background: var(--primary);
    color: white;
    text-align: center;
    padding: 8px;
    font-size: 14px;
    font-weight: 500;
}

.header-main {
    padding: 30px 0;
    transition: all 0.3s ease;
}

.header-main .site-container {
    max-width: 1200px;
}

.header-main.hidden {
    max-height: 0;
    padding: 0;
    overflow: hidden;
    opacity: 0;
}

.header-main-inner {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

.site-branding {
    display: flex;
    flex-direction: row;
    gap: 40px;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1200px;
}

.site-title {
    font-size: 28px;
    font-weight: 700;
    margin: 0;
}

.site-title a {
    color: var(--white);
}

.site-title a:hover {
    color: var(--primary);
}

.site-description {
    font-size: 14px;
    color: var(--gray);
    margin: 0;
}

.custom-logo-link {
    display: block;
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.custom-logo {
    max-height: 180px;
    width: auto;
    max-width: 100%;
    border-radius: var(--radius);
    box-shadow: 0 8px 24px rgba(167, 139, 250, 0.5), 0 4px 8px rgba(167, 139, 250, 0.3);
    transition: all 0.3s ease;
}

.custom-logo:hover {
    box-shadow: 0 12px 32px rgba(167, 139, 250, 0.6), 0 6px 12px rgba(167, 139, 250, 0.4);
    transform: translateY(-4px);
}

.banner-side {
    max-height: 225px !important;
    height: 225px !important;
    width: auto !important;
    flex: 1;
    max-width: 489px !important;
    display: block;
    object-fit: contain !important;
    border-radius: var(--radius);
    box-shadow: 0 8px 24px rgba(167, 139, 250, 0.5), 0 4px 8px rgba(167, 139, 250, 0.3);
    transition: all 0.3s ease;
}

.banner-side:hover {
    box-shadow: 0 12px 32px rgba(167, 139, 250, 0.6), 0 6px 12px rgba(167, 139, 250, 0.4);
    transform: translateY(-4px);
}

.banner-left {
    max-height: 225px !important;
    height: 225px !important;
    margin-left: -18px;
}

.banner-right {
    max-height: 225px !important;
    height: 225px !important;
    margin-right: -18px;
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 28px;
    color: var(--dark);
    padding: 8px;
}

/* ===== NAVIGATION ===== */
.main-navigation {
    background: var(--dark);
    border-top: 1px solid var(--gray-light);
}

.main-menu {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0;
    margin: 0;
}

.main-menu li {
    margin: 0;
}

.main-menu a {
    display: block;
    color: white;
    padding: 12px 20px;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s ease;
    border-radius: var(--radius);
    box-shadow: 0 3px 8px rgba(167, 139, 250, 0.25);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.main-menu a:hover,
.main-menu .current-menu-item > a,
.main-menu .current_page_item > a {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 12px rgba(167, 139, 250, 0.35);
    transform: translateY(-2px);
}

/* ===== ARTICLES GRID ===== */
.section-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 24px;
    color: #a78bfa;
    background: var(--dark);
    padding: 20px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-align: center;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
}

.section-title-icon {
    height: 95px;
    width: auto;
    object-fit: contain;
    border-radius: var(--radius);
    flex-shrink: 0;
    box-shadow: 0 8px 24px rgba(167, 139, 250, 0.5), 0 4px 8px rgba(167, 139, 250, 0.3);
}

.section-title-text {
    flex: 1;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.8), 1px 1px 2px rgba(0, 0, 0, 0.9);
    font-size: 24px;
}

.section-title-arrow {
    font-size: 28px;
    flex-shrink: 0;
    text-shadow: 0 0 6px rgba(167, 139, 250, 0.5), 0 2px 3px rgba(0, 0, 0, 0.3);
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 22px;
    margin-bottom: 36px;
}

.article-card {
    background: var(--dark);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s;
    border: 1px solid var(--gray-light);
}

.article-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.article-thumbnail {
    height: 180px;
    overflow: hidden;
    background: var(--gray-light);
}

.article-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.article-card:hover .article-thumbnail img {
    transform: scale(1.05);
}

.article-content {
    padding: 20px;
}

.article-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
    min-height: 28px;
}

.article-category-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
}

.article-category {
    display: inline-block;
    background: var(--primary);
    color: white;
    padding: 6px 14px;
    border-radius: var(--radius);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 3px 8px rgba(167, 139, 250, 0.25);
    transition: all 0.3s ease;
}

.article-category:hover {
    box-shadow: 0 4px 12px rgba(167, 139, 250, 0.35);
    transform: translateY(-2px);
}

.article-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
    line-height: 1.4;
}

.article-title a {
    color: var(--white);
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.9), 2px 2px 4px rgba(0, 0, 0, 1);
}

.article-title a:hover {
    color: var(--primary);
}

.article-icon {
    font-size: 24px;
    opacity: 0.7;
    flex-shrink: 0;
    margin-left: 12px;
}

.article-excerpt {
    color: var(--gray);
    font-size: 15px;
    margin-bottom: 12px;
    line-height: 1.6;
}

.article-meta {
    display: flex;
    gap: 12px;
    font-size: 13px;
    color: var(--gray);
    flex-wrap: wrap;
}

.read-more {
    color: var(--primary);
    font-weight: 600;
    font-size: 14px;
}

.read-more:hover {
    text-decoration: underline;
}

/* ===== SINGLE POST ===== */
.post-header {
    margin-bottom: 32px;
}

.post-header .article-category {
    margin-bottom: 16px;
    display: inline-block;
}

.post-title {
    font-size: 36px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 20px;
    margin-top: 0;
}

.post-meta {
    display: flex;
    gap: 20px;
    color: var(--gray);
    font-size: 14px;
    padding: 16px 0;
    border-top: 1px solid var(--gray-light);
    border-bottom: 1px solid var(--gray-light);
    flex-wrap: wrap;
}

.post-thumbnail {
    margin: 32px 0;
    border-radius: var(--radius);
    overflow: hidden;
}

.post-thumbnail img {
    width: 100%;
    height: auto;
}

.post-content {
    font-size: 18px;
    line-height: 1.8;
    color: var(--gray-dark);
}

.post-content h2 {
    font-size: 28px;
    font-weight: 700;
    margin: 40px 0 20px;
    color: var(--dark);
}

.post-content h3 {
    font-size: 24px;
    font-weight: 600;
    margin: 32px 0 16px;
    color: var(--dark);
}

.post-content p {
    margin-bottom: 20px;
}

.post-content ul,
.post-content ol {
    margin: 20px 0 20px 24px;
}

.post-content li {
    margin-bottom: 8px;
}

.post-content img {
    margin: 32px 0;
    border-radius: var(--radius);
}

.post-content a {
    text-decoration: underline;
}

/* ===== SIDEBAR ===== */
.sidebar {
    position: sticky;
    top: 120px;
    align-self: start;
}

.widget {
    background: var(--dark);
    padding: 24px;
    border-radius: var(--radius);
    margin-bottom: 24px;
    box-shadow: var(--shadow);
    border: 1px solid var(--gray-light);
}

.widget-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--white);
    padding-bottom: 12px;
    border-bottom: 3px solid var(--primary);
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.9), 2px 2px 4px rgba(0, 0, 0, 1);
}

.widget_search .widget-title,
.wp-block-search__label,
.sidebar .wp-block-search h2,
.sidebar form[role="search"] + h2,
.sidebar h2:has(+ form[role="search"]) {
    display: none !important;
}

.widget ul {
    list-style: none;
}

.widget ul li {
    padding: 8px 0;
    border-bottom: 1px solid var(--gray-light);
}

.widget ul li:last-child {
    border-bottom: none;
}

.widget ul li a {
    color: var(--white);
    display: block;
    transition: all 0.2s;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.9), 2px 2px 4px rgba(0, 0, 0, 1);
}

.widget ul li a:hover {
    color: var(--primary);
    padding-left: 8px;
}

/* Popular Posts Widget */
.popular-posts-widget {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.popular-post-item {
    display: flex;
    gap: 12px;
}

.popular-post-thumbnail {
    flex-shrink: 0;
    width: 80px;
    height: 60px;
    border-radius: var(--radius);
    overflow: hidden;
}

.popular-post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.popular-post-content {
    flex: 1;
    min-width: 0;
}

.popular-post-title {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 4px;
}

.popular-post-title a {
    color: var(--white);
}

.popular-post-title a:hover {
    color: var(--primary);
}

.popular-post-date {
    font-size: 12px;
    color: var(--gray);
}

/* Categories Widget */
.categories-widget li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.category-count {
    background: var(--gray-light);
    color: var(--gray);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

/* ===== FOOTER ===== */
.site-footer {
    background: #0a0420;
    color: var(--white);
    padding: 40px 20px 24px;
    margin-top: 60px;
    border-top: 2px solid var(--primary);
}

.footer-widgets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 32px;
    margin-bottom: 32px;
}

.footer-widget-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 16px;
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 14px;
}

.footer-menu {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.footer-menu a {
    color: var(--white);
    font-size: 14px;
}

.footer-menu a:hover {
    color: var(--primary);
}

/* ===== FORMS ===== */
input[type="text"],
input[type="email"],
input[type="search"],
input[type="url"],
textarea {
    width: 100%;
    padding: 12px 16px;
    border: 3px solid rgba(0, 0, 0, 0.2);
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 15px;
    background: #dcc5f7;
    color: #1a0f3d;
    transition: border-color 0.2s;
    text-align: center;
}

input[type="search"]::placeholder {
    color: white;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    font-weight: 500;
    font-size: 10px;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: transparent;
}

button,
input[type="submit"],
.btn {
    padding: 12px 24px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 15px;
    box-shadow: 0 3px 8px rgba(167, 139, 250, 0.25);
    transition: all 0.3s ease;
}

button:hover,
input[type="submit"]:hover,
.btn:hover {
    background: var(--primary-dark);
    box-shadow: 0 4px 12px rgba(167, 139, 250, 0.35);
    transform: translateY(-2px);
}

/* Search Form */
.search-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.search-form input[type="search"] {
    width: 100%;
}

.search-form input[type="submit"],
.search-form .search-submit {
    width: 100%;
}

/* ===== PAGINATION ===== */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 40px 0;
    flex-wrap: wrap;
}

.page-numbers {
    padding: 10px 16px;
    background: white;
    border-radius: var(--radius);
    color: var(--dark);
    font-weight: 500;
    transition: all 0.2s;
    box-shadow: var(--shadow);
}

.page-numbers:hover,
.page-numbers.current {
    background: var(--primary);
    color: white;
}

/* ===== TODAY'S POSTS LIST ===== */
.today-posts-list {
    display: flex;
    flex-direction: column;
    background: white;
    padding: 24px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.today-post-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    padding: 16px 0;
    border-bottom: 1px solid var(--gray-light);
    transition: all 0.2s;
}

.today-post-item:last-child {
    border-bottom: none;
}

.today-post-item:hover {
    background: rgba(220, 38, 38, 0.02);
}

.today-post-time {
    flex-shrink: 0;
    width: 60px;
}

.time-badge {
    display: inline-block;
    background: var(--primary);
    color: white;
    padding: 6px 12px;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 600;
}

.today-post-thumbnail {
    flex-shrink: 0;
    width: 120px;
    height: 90px;
    border-radius: var(--radius);
    overflow: hidden;
}

.today-post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.today-post-content {
    flex: 1;
    min-width: 0;
}

.today-category {
    display: inline-block;
    background: var(--gray-light);
    color: var(--gray-dark);
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.today-post-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.4;
}

.today-post-title a {
    color: var(--dark);
}

.today-post-title a:hover {
    color: var(--primary);
}

.today-post-meta {
    font-size: 14px;
    color: var(--gray);
}

.today-author {
    font-weight: 500;
}

/* ===== BREADCRUMBS ===== */
.breadcrumbs {
    padding: 16px 0;
    font-size: 14px;
    color: var(--gray);
}

.breadcrumbs a {
    color: var(--gray);
}

.breadcrumbs a:hover {
    color: var(--primary);
}

/* ===== COMMENTS ===== */
.comments-area {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 2px solid var(--gray-light);
}

.comments-title {
    font-size: 24px;
    margin-bottom: 24px;
}

.comment-list {
    list-style: none;
}

.comment {
    margin-bottom: 24px;
    padding: 20px;
    background: white;
    border-radius: var(--radius);
}

.comment-author {
    font-weight: 600;
    margin-bottom: 8px;
}

.comment-meta {
    font-size: 13px;
    color: var(--gray);
    margin-bottom: 12px;
}

/* ===== UTILITIES ===== */
.screen-reader-text {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.text-center {
    text-align: center;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .content-area {
        grid-template-columns: 1fr 280px;
        gap: 32px;
    }
}

@media (max-width: 1300px) {
    /* Ukryj banery boczne przy węższych ekranach */
    .banner-side {
        display: none !important;
    }

    .site-branding {
        justify-content: center;
    }

    .custom-logo-link {
        flex: 0 0 auto;
    }
}

@media (max-width: 768px) {
    .content-area {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .sidebar {
        position: static;
    }

    .mobile-toggle {
        display: block;
        position: absolute;
        right: 20px;
        top: 50%;
        transform: translateY(-50%);
        color: var(--white);
        z-index: 101;
    }

    .header-main {
        padding: 20px 0;
    }

    .header-main-inner {
        position: relative;
    }

    .custom-logo {
        max-height: 100px;
    }

    .main-navigation {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--dark);
        z-index: 100;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    }

    .main-navigation.active {
        display: block;
    }

    .main-menu {
        flex-direction: column;
        padding: 8px;
    }

    .main-menu a {
        padding: 12px 16px;
    }

    .articles-grid {
        grid-template-columns: 1fr;
    }

    .post-title {
        font-size: 28px;
    }

    .post-content {
        font-size: 17px;
    }

    .section-title {
        font-size: 20px;
    }

    .section-title-icon {
        height: 60px;
    }

    .footer-widgets {
        grid-template-columns: 1fr;
    }

    .site-branding {
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .site-container {
        padding: 0 16px;
    }

    .header-main {
        padding: 15px 0;
    }

    .custom-logo {
        max-height: 80px;
    }

    .header-top {
        font-size: 12px;
        padding: 6px;
    }

    .site-title {
        font-size: 20px;
    }

    .post-title {
        font-size: 22px;
    }

    .article-title {
        font-size: 16px;
    }

    .widget {
        padding: 16px;
    }

    .section-title {
        font-size: 18px;
        padding: 16px;
    }

    .section-title-icon {
        height: 50px;
    }

    .section-title-text {
        font-size: 18px;
    }

    .today-post-item {
        flex-direction: column;
        gap: 12px;
    }

    .today-post-time {
        width: auto;
    }

    .today-post-thumbnail {
        width: 100%;
        height: 180px;
    }

    .today-post-title {
        font-size: 18px;
    }

    .article-content {
        padding: 16px;
    }

    .mobile-toggle {
        font-size: 24px;
        right: 16px;
    }
}

/* ===== PRINT ===== */
@media print {
    .site-header,
    .site-footer,
    .sidebar,
    .mobile-toggle,
    .main-navigation {
        display: none;
    }

    .content-area {
        grid-template-columns: 1fr;
    }

    body {
        background: white;
    }
}
/* Updated Wed Oct  1 03:16:33 PM CEST 2025 */
/* Updated 1759324842 */
/* Dark theme 1759324950 */
/* Better contrast 1759325011 */
/* Header width fix 1759325428 */
/* Full width header 1759325629 */
/* Logo border 1759325739 */
/* Bigger logo and banners 1759325966 */
/* Purple border 1759326117 */
/* Border removed 1759326212 */
/* 15% bigger 1759326285 */
/* Another 15% bigger 1759326383 */
/* Reverted to 180px 1759326468 */
/* Banners 20% bigger 1759326541 */
/* Articles 10% smaller 1759326627 */
/* Aligned top 1759326728 */
