/*
Theme Name: Akademia Milionerów
Theme URI: https://akademiamilionerow.pl
Author: Akademia Milionerów
Author URI: https://akademiamilionerow.pl
Description: Premium Block Theme for Akademia Milionerów.
Version: 1.1.8
License: GPL-2.0-or-later
Text Domain: akademia-milionerow
*/

body {
    background-color: #000 !important;
    color: #fff;
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
    position: relative;
    min-height: 100vh;
}

/* Global Background Grid */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px), 
        linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 4rem 4rem;
    z-index: -1;
    pointer-events: none;
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 0%, rgba(193, 179, 146, 0.05) 0%, transparent 70%);
    z-index: -1;
    pointer-events: none;
}

/* Ensure full width for blocks */
.wp-site-blocks > .alignfull {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

/* --- HEADER --- */
.am-site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 15px 0;
}

.am-site-header__container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.am-site-header__nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 30px;
}

.am-site-header__nav a {
    color: #fff;
    text-transform: uppercase;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.1em;
    font-family: 'Rajdhani', sans-serif;
    transition: color 0.3s ease;
}

.am-site-header__nav a:hover {
    color: #C1B392;
    text-decoration: none !important;
}

.am-mobile-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1000;
}

.am-mobile-toggle span {
    width: 100%;
    height: 2px;
    background-color: #fff;
    transition: all 0.3s ease;
}

.am-mobile-toggle.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.am-mobile-toggle.active span:nth-child(2) {
    opacity: 0;
}

.am-mobile-toggle.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

@media (max-width: 992px) {
    .am-mobile-toggle {
        display: flex;
    }

    .am-site-header__nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: rgba(10, 10, 10, 0.95);
        backdrop-filter: blur(20px);
        display: flex;
        align-items: center;
        justify-content: center;
        transition: right 0.4s ease;
        z-index: 999;
    }

    .am-site-header__nav.active {
        right: 0;
    }

    .am-site-header__nav ul {
        flex-direction: column;
        align-items: center;
        gap: 40px;
    }

    .am-site-header__nav a {
        font-size: 24px;
    }

    .am-site-header__cta {
        display: none;
    }
}

.am-btn-nav {
    background: #C1B392;
    color: #000;
    padding: 10px 28px;
    border-radius: 12px;
    font-weight: 900;
    font-size: 12px;
    text-transform: uppercase;
    font-family: 'Rajdhani', sans-serif;
    transition: all 0.3s ease;
    display: inline-block;
}

.am-btn-nav:hover {
    background: #D6C8A9;
    text-decoration: none !important;
}

/* --- FOOTER --- */
.am-site-footer {
    background: #0a0a0a;
    border-top: 1px solid #262626;
    padding: 80px 0 40px;
    color: #a3a3a3;
}

.am-site-footer__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.am-site-footer__grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

@media (max-width: 768px) {
    .am-site-footer__grid { grid-template-columns: 1fr; gap: 40px; }
}

.am-site-footer__logo img, 
.am-site-footer__logo .custom-logo { 
    max-height: 50px; 
    width: auto; 
    margin-bottom: 20px; 
    display: block;
}

/* Fix for header logo as well */
.am-site-header__logo img,
.am-site-header__logo .custom-logo {
    max-height: 40px;
    width: auto;
    display: block;
}

.am-site-footer__title { 
    color: #fff; 
    font-size: 14px; 
    text-transform: uppercase; 
    letter-spacing: 0.1em; 
    margin-bottom: 24px; 
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
}

.am-site-footer__links { 
    list-style: none; 
    padding: 0; 
    margin: 0; 
}

.am-site-footer__links li,
.am-site-footer__links .menu-item { 
    margin-bottom: 12px; 
    list-style: none;
}

.am-site-footer__links a { 
    color: #a3a3a3; 
    font-size: 14px; 
    transition: color 0.3s ease;
}
.am-site-footer__links a:hover { color: #C1B392; }

/* --- BLOG INDEX --- */
.am-blog-header {
    padding: 120px 0 60px;
    text-align: center;
    position: relative;
}

.am-blog-header__title {
    font-family: 'Rajdhani', sans-serif;
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 900;
    font-style: italic;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.am-blog-header__title .text-gold { color: #C1B392; }

.am-blog-header__subtitle {
    color: #a3a3a3;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.3em;
}

.am-blog-container {
    max-width: 1200px;
    margin: 0 auto 100px;
    padding: 0 20px;
}

.am-blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

@media (max-width: 992px) {
    .am-blog-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
    .am-blog-grid { grid-template-columns: 1fr; }
}

.am-post-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    overflow: hidden;
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
}

.am-post-card:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(193, 179, 146, 0.3);
    transform: translateY(-10px);
}

.am-post-card__image {
    height: 220px;
    overflow: hidden;
}

.am-post-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.am-post-card:hover .am-post-card__image img {
    transform: scale(1.05);
}

.am-post-card__content {
    padding: 30px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.am-post-card__meta {
    margin-bottom: 15px;
}

.am-post-card__date {
    color: #C1B392;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.am-post-card__title {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.am-post-card__title a { color: #fff; }
.am-post-card__title a:hover { text-decoration: none; color: #C1B392; }

.am-post-card__excerpt {
    color: #a3a3a3;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 25px;
}

.am-post-card__more {
    margin-top: auto;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    color: #fff;
    letter-spacing: 0.1em;
}

/* --- SINGLE POST --- */
.am-post-hero {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    text-align: center;
    padding: 100px 20px;
    overflow: hidden;
}

.am-post-hero__container {
    position: relative;
    z-index: 10;
    max-width: 900px;
}

.am-post-hero__title {
    font-family: 'Rajdhani', sans-serif;
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 900;
    text-transform: uppercase;
    font-style: italic;
    line-height: 1;
    margin-top: 20px;
}

.am-post-hero__meta {
    color: #C1B392;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em;
}

.am-post-hero__bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    filter: blur(10px);
    opacity: 0.3;
    transform: scale(1.1);
}

.am-post-hero__overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, transparent, #000);
}

.am-post-content-wrap {
    max-width: 800px;
    margin: -100px auto 100px;
    position: relative;
    z-index: 20;
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 40px;
    padding: 80px 60px;
}

@media (max-width: 768px) {
    .am-post-content-wrap { padding: 40px 20px; border-radius: 0; margin-top: 0; }
}

.am-post-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #d1d1d1;
}

.am-post-content h2, .am-post-content h3 {
    font-family: 'Rajdhani', sans-serif;
    color: #fff;
    margin-top: 40px;
    text-transform: uppercase;
}

.am-post-content img {
    border-radius: 20px;
    margin: 40px 0;
}

.am-pagination {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 60px;
}

.am-pagination .page-numbers {
    padding: 10px 18px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #fff;
}

.am-pagination .page-numbers.current {
    background: #C1B392;
    color: #000;
    border-color: #C1B392;
}

/* --- DEFAULT PAGES (Polityka Prywatności, Regulamin itp.) --- */
.am-page-header {
    padding: 120px 20px 60px;
    text-align: center;
}

.am-page-header__title {
    font-family: 'Rajdhani', sans-serif;
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 900;
    text-transform: uppercase;
    color: #fff;
    margin: 0;
}

.am-page-content-wrap {
    max-width: 900px;
    margin: 0 auto 100px;
    padding: 60px;
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 40px;
}

@media (max-width: 768px) {
    .am-page-content-wrap {
        padding: 40px 20px;
        border-radius: 0;
        border-left: none;
        border-right: none;
    }
}

.am-page-content {
    font-size: 1rem;
    line-height: 1.8;
    color: #d1d1d1;
}

.am-page-content h1, 
.am-page-content h2, 
.am-page-content h3, 
.am-page-content h4 {
    font-family: 'Rajdhani', sans-serif;
    color: #fff;
    margin-top: 40px;
    margin-bottom: 20px;
    text-transform: uppercase;
    font-weight: 700;
}

.am-page-content h1 { font-size: 2.5rem; }
.am-page-content h2 { font-size: 2rem; }
.am-page-content h3 { font-size: 1.5rem; }

.am-page-content p {
    margin-bottom: 20px;
}

.am-page-content ul, 
.am-page-content ol {
    margin-bottom: 20px;
    padding-left: 20px;
}

.am-page-content li {
    margin-bottom: 10px;
}

.am-page-content a {
    color: var(--am-primary, #C1B392);
    text-decoration: none;
}

.am-page-content a:hover {
    text-decoration: underline;
}
