/*
Theme Name: Astra Info - Modern Minimalist
Theme URI: https://info.extreme-baitboat.pl
Description: Nowoczesny, minimalistyczny motyw dla subdomeny info - WOW effect!
Author: Claude Code AI
Template: astra
Version: 1.0.0
*/

/* ============================================
   MODERN MINIMALIST LAYOUT - WOW EFFECT 🚀
   ============================================ */

:root {
    /* Kolory - Nowoczesna paleta */
    --primary: #2563eb;
    --primary-dark: #1e40af;
    --accent: #f59e0b;
    --text-dark: #0f172a;
    --text-gray: #64748b;
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --border: #e2e8f0;

    /* Typography */
    --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    --font-heading: 'Inter', var(--font-sans);

    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 4rem;
    --space-xl: 6rem;

    /* Border radius */
    --radius-sm: 0.5rem;
    --radius-md: 1rem;
    --radius-lg: 1.5rem;

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 50px rgba(0, 0, 0, 0.15);
}

/* Reset i base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-dark);
    background: var(--bg-light);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Ukryj domyślny sidebar */
.ast-separate-container .ast-article-post,
.ast-separate-container .ast-article-single {
    padding: 0;
    background: transparent;
    border: none;
}

.site-content {
    padding: 0 !important;
}

/* ============================================
   HEADER - Minimalistyczny
   ============================================ */

.site-header {
    background: var(--bg-white);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 999;
    border-bottom: 1px solid var(--border);
}

.main-header-bar {
    padding: 1.5rem 0;
}

.site-branding {
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: -0.02em;
}

.main-navigation {
    font-size: 0.95rem;
    font-weight: 500;
}

.main-navigation a {
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.2s;
}

.main-navigation a:hover {
    color: var(--primary);
}

/* ============================================
   HERO SECTION - Wow effect
   ============================================ */

.info-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: var(--space-xl) 0;
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.info-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="40" height="40" patternUnits="userSpaceOnUse"><path d="M 40 0 L 0 0 0 40" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.info-hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    position: relative;
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.info-hero p {
    font-size: 1.25rem;
    opacity: 0.95;
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}

/* ============================================
   CONTENT CONTAINER
   ============================================ */

.ast-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--space-lg) var(--space-md);
}

/* ============================================
   BLOG GRID - Nowoczesny layout
   ============================================ */

.ast-row {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: var(--space-lg);
    margin-top: var(--space-lg);
}

/* Ukryj sidebar całkowicie */
#secondary {
    display: none !important;
}

.ast-separate-container #primary {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* ============================================
   POST CARD - Nowoczesny design
   ============================================ */

article.post {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
}

article.post:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

/* Featured image */
.post-thumb {
    position: relative;
    width: 100%;
    height: 240px;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

article.post:hover .post-thumb img {
    transform: scale(1.05);
}

/* Post content */
.ast-post-format-standard {
    padding: var(--space-md);
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Meta info */
.entry-meta {
    font-size: 0.875rem;
    color: var(--text-gray);
    margin-bottom: var(--space-sm);
    display: flex;
    gap: var(--space-sm);
    align-items: center;
}

.posted-on,
.cat-links {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

/* Title */
.entry-title {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: var(--space-sm);
    letter-spacing: -0.02em;
}

.entry-title a {
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.2s;
}

.entry-title a:hover {
    color: var(--primary);
}

/* Excerpt */
.entry-content,
.entry-summary {
    color: var(--text-gray);
    margin-bottom: var(--space-md);
    line-height: 1.7;
    flex: 1;
}

/* Read more button */
.ast-button,
.read-more {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    background: var(--primary);
    color: white !important;
    text-decoration: none;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
    margin-top: auto;
}

.ast-button:hover,
.read-more:hover {
    background: var(--primary-dark);
    transform: translateX(4px);
}

/* ============================================
   SINGLE POST
   ============================================ */

.single .entry-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto var(--space-lg);
    padding-top: var(--space-lg);
}

.single .entry-title {
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: var(--space-md);
}

.single .entry-content {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.125rem;
    line-height: 1.8;
}

.single .entry-content p {
    margin-bottom: var(--space-md);
}

.single .entry-content h2 {
    font-size: 2rem;
    margin-top: var(--space-lg);
    margin-bottom: var(--space-md);
    font-weight: 700;
}

.single .entry-content h3 {
    font-size: 1.5rem;
    margin-top: var(--space-md);
    margin-bottom: var(--space-sm);
    font-weight: 600;
}

.single .entry-content img {
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
}

/* ============================================
   FOOTER
   ============================================ */

.site-footer {
    background: var(--text-dark);
    color: rgba(255, 255, 255, 0.8);
    padding: var(--space-lg) 0 var(--space-md);
    margin-top: var(--space-xl);
    text-align: center;
}

.site-footer a {
    color: white;
    text-decoration: none;
    transition: opacity 0.2s;
}

.site-footer a:hover {
    opacity: 0.8;
}

/* ============================================
   PAGINATION
   ============================================ */

.ast-pagination {
    display: flex;
    justify-content: center;
    gap: var(--space-sm);
    margin-top: var(--space-xl);
}

.ast-pagination a,
.ast-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    height: 2.5rem;
    padding: 0 1rem;
    background: var(--bg-white);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
    font-weight: 500;
    transition: all 0.2s;
}

.ast-pagination a:hover {
    background: var(--primary);
    color: white;
}

.ast-pagination .current {
    background: var(--primary);
    color: white;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
    .info-hero h1 {
        font-size: 2rem;
    }

    .info-hero p {
        font-size: 1rem;
    }

    .ast-row {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }

    .single .entry-title {
        font-size: 2rem;
    }

    .single .entry-content {
        font-size: 1rem;
    }

    .ast-container {
        padding: var(--space-md) var(--space-sm);
    }
}

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

article.post {
    animation: fadeInUp 0.6s ease-out;
}

/* Stagger animation for cards */
article.post:nth-child(1) { animation-delay: 0.1s; }
article.post:nth-child(2) { animation-delay: 0.2s; }
article.post:nth-child(3) { animation-delay: 0.3s; }
article.post:nth-child(4) { animation-delay: 0.4s; }
article.post:nth-child(5) { animation-delay: 0.5s; }
article.post:nth-child(6) { animation-delay: 0.6s; }

/* ============================================
   GRADIENT TEXT EFFECT
   ============================================ */

.gradient-text {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============================================
   SCROLL INDICATOR
   ============================================ */

.scroll-indicator {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    z-index: 9999;
    transition: width 0.2s;
}

/* ============================================
   DARK MODE READY (opcjonalnie)
   ============================================ */

@media (prefers-color-scheme: dark) {
    :root {
        --text-dark: #f1f5f9;
        --text-gray: #94a3b8;
        --bg-light: #0f172a;
        --bg-white: #1e293b;
        --border: #334155;
    }

    .site-header {
        background: rgba(30, 41, 59, 0.9);
    }
}
