/*
Theme Name: Clothing Graphic Artist Theme
Theme URI: [example.com](https://example.com/clothing-graphic-artist-theme)
Author: Twoje Imię
Author URI: [example.com](https://example.com)
Description: Elegancki, minimalistyczny motyw 2-kolumnowy dla grafika specjalizuj±cego się w projektowaniu grafik na ubrania. Inspirowany estetyk± Bard Pro.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: [gnu.org](https://www.gnu.org/licenses/gpl-2.0.html)
Text Domain: clothing-graphic-artist
Tags: two-columns, custom-menu, featured-images, theme-options, portfolio
*/

/* ==========================================================================
   1. CSS RESET & PODSTAWY
   ========================================================================== */

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    font-size: 1rem;
    line-height: 1.7;
    color: #2d2d2d;
    background-color: #fafafa;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.3s ease, opacity 0.3s ease;
}

a:hover {
    color: #6b6b6b;
}

/* ==========================================================================
   2. TYPOGRAFIA — STYL BARD PRO
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', 'Georgia', 'Times New Roman', serif;
    font-weight: 600;
    line-height: 1.3;
    color: #1a1a1a;
    margin-bottom: 0.75em;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
    margin-bottom: 1.5em;
}

/* ==========================================================================
   3. LAYOUT — KONTENER GŁÓWNY
   ========================================================================== */

.site-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
}

.content-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 60px;
    padding: 60px 0;
}

/* Główna kolumna — 70% */
.main-content {
    flex: 1 1 70%;
    min-width: 0;
}

/* Sidebar — 25% */
.sidebar {
    flex: 0 0 25%;
    min-width: 280px;
}

/* ==========================================================================
   4. HEADER — NAGŁÓWEK STRONY
   ========================================================================== */

.site-header {
    background-color: #ffffff;
    border-bottom: 1px solid #eaeaea;
    padding: 30px 0;
}

.header-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
}

/* Logo */
.site-branding {
    text-align: center;
}

.site-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin: 0;
}

.site-title a {
    color: #1a1a1a;
}

.site-title a:hover {
    color: #6b6b6b;
}

.site-description {
    font-size: 0.85rem;
    color: #888;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-top: 8px;
}

.custom-logo {
    max-height: 80px;
    width: auto;
}

/* ==========================================================================
   5. NAWIGACJA — MENU GŁÓWNE
   ========================================================================== */

.main-navigation {
    width: 100%;
}

.main-navigation ul {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 40px;
    list-style: none;
}

.main-navigation li {
    position: relative;
}

.main-navigation a {
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #1a1a1a;
    padding: 10px 0;
    display: inline-block;
    position: relative;
}

.main-navigation a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: #1a1a1a;
    transition: width 0.3s ease;
}

.main-navigation a:hover::after,
.main-navigation .current-menu-item a::after {
    width: 100%;
}

/* Podmenu */
.main-navigation ul ul {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    flex-direction: column;
    gap: 0;
    background: #fff;
    border: 1px solid #eaeaea;
    padding: 15px 25px;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.main-navigation li:hover > ul {
    opacity: 1;
    visibility: visible;
}

.main-navigation ul ul a {
    padding: 8px 0;
    font-size: 0.75rem;
}

/* ==========================================================================
   6. FEATURED GALLERY — GALERIA WYRÓŻNIONA
   ========================================================================== */

.featured-gallery {
    margin-bottom: 60px;
}

.featured-gallery-title {
    text-align: center;
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #888;
    margin-bottom: 30px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    background-color: #f5f5f5;
}

.gallery-item img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    transition: transform 0.5s ease, opacity 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
    opacity: 0.9;
}

.gallery-item-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 25px;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    color: #fff;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.gallery-item:hover .gallery-item-overlay {
    opacity: 1;
}

.gallery-item-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    margin: 0;
}

/* ==========================================================================
   7. WPISY — PĘTLA (THE LOOP)
   ========================================================================== */

.posts-list {
    display: flex;
    flex-direction: column;
    gap: 50px;
}

.post-card {
    background: #ffffff;
    border: 1px solid #eaeaea;
    border-radius: 4px;
    overflow: hidden;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.post-card:hover {
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    transform: translateY(-3px);
}

/* Zdjęcie wyróżniaj±ce */
.post-thumbnail {
    position: relative;
    overflow: hidden;
}

.post-thumbnail img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.post-card:hover .post-thumbnail img {
    transform: scale(1.03);
}

.post-thumbnail-placeholder {
    width: 100%;
    height: 300px;
    background: linear-gradient(135deg, #f5f5f5 0%, #eaeaea 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ccc;
    font-size: 3rem;
}

/* Meta danych wpisu */
.post-content {
    padding: 35px 40px;
}

.post-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 0.75rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #888;
}

.post-meta a {
    color: #888;
}

.post-meta a:hover {
    color: #1a1a1a;
}

.post-category {
    background-color: #1a1a1a;
    color: #fff;
    padding: 4px 12px;
    border-radius: 2px;
    font-size: 0.65rem;
    font-weight: 600;
}

.post-category:hover {
    background-color: #333;
    color: #fff;
}

.post-meta-separator {
    color: #ddd;
}

/* Tytuł wpisu */
.post-title {
    font-size: 1.6rem;
    margin-bottom: 15px;
    line-height: 1.35;
}

.post-title a {
    color: #1a1a1a;
}

.post-title a:hover {
    color: #6b6b6b;
}

/* Fragment tekstu */
.post-excerpt {
    color: #5a5a5a;
    line-height: 1.8;
    margin-bottom: 25px;
}

/* Przycisk "Czytaj więcej" */
.read-more-btn {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #1a1a1a;
    padding: 12px 30px;
    border: 1px solid #1a1a1a;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.read-more-btn:hover {
    background-color: #1a1a1a;
    color: #fff;
}

/* Brak wpisów */
.no-posts {
    text-align: center;
    padding: 80px 40px;
    background: #fff;
    border: 1px solid #eaeaea;
    border-radius: 4px;
}

.no-posts h2 {
    margin-bottom: 15px;
}

/* Paginacja */
.pagination {
    margin-top: 50px;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 45px;
    height: 45px;
    padding: 0 15px;
    font-size: 0.85rem;
    border: 1px solid #eaeaea;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.pagination .page-numbers:hover,
.pagination .page-numbers.current {
    background-color: #1a1a1a;
    border-color: #1a1a1a;
    color: #fff;
}

/* ==========================================================================
   8. SIDEBAR — PASEK BOCZNY
   ========================================================================== */

.sidebar .widget {
    background: #ffffff;
    border: 1px solid #eaeaea;
    border-radius: 4px;
    padding: 30px;
    margin-bottom: 30px;
}

.sidebar .widget:last-child {
    margin-bottom: 0;
}

.widget-title {
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eaeaea;
}

/* Lista w widgetach */
.sidebar .widget ul {
    list-style: none;
}

.sidebar .widget ul li {
    padding: 10px 0;
    border-bottom: 1px solid #f5f5f5;
}

.sidebar .widget ul li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.sidebar .widget ul li a {
    font-size: 0.9rem;
    color: #5a5a5a;
}

.sidebar .widget ul li a:hover {
    color: #1a1a1a;
}

/* Widget o mnie / About */
.widget-about-image {
    border-radius: 4px;
    margin-bottom: 20px;
}

/* Widget tagów */
.tagcloud a {
    display: inline-block;
    font-size: 0.75rem !important;
    padding: 6px 14px;
    margin: 3px;
    border: 1px solid #eaeaea;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.tagcloud a:hover {
    background-color: #1a1a1a;
    border-color: #1a1a1a;
    color: #fff;
}

/* ==========================================================================
   9. FOOTER — STOPKA
   ========================================================================== */

.site-footer {
    background-color: #1a1a1a;
    color: #888;
    padding: 50px 0;
    margin-top: 60px;
}

.footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    text-align: center;
}

.footer-copyright {
    font-size: 0.8rem;
    letter-spacing: 1px;
}

.footer-copyright a {
    color: #fff;
}

.footer-copyright a:hover {
    color: #ccc;
}

.footer-social {
    display: flex;
    gap: 20px;
}

.footer-social a {
    color: #888;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.footer-social a:hover {
    color: #fff;
}

/* ==========================================================================
   10. RESPONSYWNO¦Ć
   ========================================================================== */

@media (max-width: 1200px) {
    .content-wrapper {
        gap: 40px;
    }
    
    .main-content {
        flex: 1 1 65%;
    }
    
    .sidebar {
        flex: 0 0 30%;
    }
}

@media (max-width: 992px) {
    .content-wrapper {
        flex-direction: column;
    }
    
    .main-content,
    .sidebar {
        flex: 1 1 100%;
        max-width: 100%;
    }
    
    .post-thumbnail img {
        height: 350px;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 15px;
    }
    
    .site-container {
        padding: 0 20px;
    }
    
    .header-inner {
        padding: 0 10px;
    }
    
    .site-title {
        font-size: 1.6rem;
    }
    
    .main-navigation ul {
        gap: 20px;
    }
    
    .main-navigation a {
        font-size: 0.7rem;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-item img {
        height: 280px;
    }
    
    .post-content {
        padding: 25px;
    }
    
    .post-title {
        font-size: 1.3rem;
    }
    
    .post-thumbnail img {
        height: 280px;
    }
    
    .content-wrapper {
        padding: 40px 0;
        gap: 30px;
    }
}

@media (max-width: 480px) {
    .main-navigation ul {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .post-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .post-meta-separator {
        display: none;
    }
}

/* ==========================================================================
   11. UTILITY CLASSES
   ========================================================================== */

.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
}

.clearfix::after {
    content: '';
    display: table;
    clear: both;
}
