/*
 * AAM Good Shopping — Noutati (Blog Listing) Page Styles
 * Extras din: page-noutati.php (linii 90-727)
 * Incarcat pe: is_page_template('page-noutati.php')
 * Partajat si cu: page-gdpr.php, page-termeni-si-conditii.php (reveal animation)
 * ==========================================================================
 */

:root {
    --aam-bg-main: #0a0e1a;
    --aam-bg-panel: #141b2d;
    --aam-bg-panel-hover: #1a2340;
    --aam-accent-blue: #3B82F6;
    --aam-accent-light: #60A5FA;
    --aam-accent-glow: rgba(59, 130, 246, 0.25);
    --aam-text-white: #F1F5F9;
    --aam-text-gray: #94A3B8;
    --aam-text-muted: #64748B;
    --aam-border: rgba(59, 130, 246, 0.15);
    --aam-border-hover: rgba(59, 130, 246, 0.35);
    --font-main: 'Outfit', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

body.aam-blog-dark {
    background-color: var(--aam-bg-main) !important;
    color: var(--aam-text-white) !important;
    font-family: var(--font-main) !important;
    overflow-x: hidden;
}

body.aam-blog-dark .site,
body.aam-blog-dark .site-content,
body.aam-blog-dark .ast-container,
body.aam-blog-dark #primary,
body.aam-blog-dark #content {
    background-color: transparent !important;
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
}

body.aam-blog-dark .ast-article-single .entry-header,
body.aam-blog-dark .ast-post-title,
body.aam-blog-dark .entry-title {
    display: none !important;
}

#aam-blog-wrapper {
    position: relative;
    width: 100%;
    min-height: 100vh;
    padding: 120px 0 80px 0;
    overflow: hidden;
    z-index: 1;
}

.aam-bg-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(59, 130, 246, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(59, 130, 246, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    z-index: -2;
    pointer-events: none;
}

.aam-bg-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -1;
    pointer-events: none;
}

.aam-bg-orb-1 {
    width: 500px;
    height: 500px;
    background: rgba(59, 130, 246, 0.08);
    top: -100px;
    right: -150px;
    animation: aamOrbFloat 20s ease-in-out infinite;
}

.aam-bg-orb-2 {
    width: 400px;
    height: 400px;
    background: rgba(16, 185, 129, 0.05);
    bottom: 20%;
    left: -100px;
    animation: aamOrbFloat 25s ease-in-out infinite reverse;
}

@keyframes aamOrbFloat {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(-30px, 40px) scale(1.1);
    }
}

.aam-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 10;
}

.aam-header {
    text-align: center;
    margin-bottom: 4rem;
}

.aam-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--aam-accent-light);
    margin-bottom: 1rem;
}

.aam-label::before,
.aam-label::after {
    content: '';
    width: 24px;
    height: 1px;
    background: var(--aam-accent-blue);
}

.aam-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--aam-text-white);
}

.aam-title span {
    background: linear-gradient(135deg, var(--aam-accent-blue), var(--aam-accent-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.aam-subtitle {
    font-size: 1.1rem;
    color: var(--aam-text-gray);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

.aam-filter-reset {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    color: var(--aam-accent-light);
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    border-bottom: 1px dashed var(--aam-accent-blue);
    padding-bottom: 2px;
    transition: all 0.3s;
}

.aam-filter-reset:hover {
    color: var(--aam-text-white);
    border-color: var(--aam-text-white);
}

.aam-blog-layout {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

@media (min-width: 992px) {
    .aam-blog-layout {
        flex-direction: row;
    }

    .aam-blog-main {
        width: 65%;
    }

    .aam-blog-sidebar {
        width: 35%;
        display: flex;
        flex-direction: column;
        gap: 30px;
    }
}

/* Featured Post */
.aam-featured-post {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid var(--aam-border);
    margin-bottom: 40px;
    transition: all 0.4s ease;
}

.aam-featured-post:hover {
    border-color: var(--aam-border-hover);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.aam-featured-image {
    height: 400px;
    width: 100%;
    overflow: hidden;
    background: var(--aam-bg-panel);
}

@media (min-width: 768px) {
    .aam-featured-image {
        height: 500px;
    }
}

.aam-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.aam-featured-post:hover .aam-featured-image img {
    transform: scale(1.05);
}

.aam-featured-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, #0a0e1a 10%, rgba(10, 14, 26, 0.6) 50%, transparent 100%);
    z-index: 10;
}

.aam-featured-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px;
    z-index: 20;
}

@media (min-width: 768px) {
    .aam-featured-content {
        padding: 40px;
    }
}

.aam-meta-tags {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    font-family: var(--font-mono);
    font-size: 0.8rem;
}

.aam-tag-category {
    background: rgba(59, 130, 246, 0.15);
    color: var(--aam-accent-light);
    padding: 4px 12px;
    border-radius: 6px;
    border: 1px solid rgba(59, 130, 246, 0.3);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
}

.aam-tag-date {
    color: var(--aam-text-muted);
}

.aam-featured-title {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 15px;
}

.aam-featured-title a {
    color: var(--aam-text-white);
    text-decoration: none;
    transition: color 0.3s ease;
}

.aam-featured-title a:hover {
    color: var(--aam-accent-light);
}

.aam-featured-excerpt {
    color: var(--aam-text-gray);
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Posts Grid */
.aam-posts-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

@media (min-width: 768px) {
    .aam-posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.aam-post-card {
    background: var(--aam-bg-panel);
    border: 1px solid var(--aam-border);
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.4s ease;
    height: 100%;
}

.aam-post-card:hover {
    transform: translateY(-5px);
    border-color: var(--aam-border-hover);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.aam-post-thumb-wrapper {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.aam-post-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.aam-post-card:hover .aam-post-thumb {
    transform: scale(1.08);
}

.aam-post-thumb-fallback {
    width: 100%;
    height: 100%;
    background: #0f1629;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--aam-border-hover);
}

.aam-post-tag-floating {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(10, 14, 26, 0.85);
    backdrop-filter: blur(4px);
    color: var(--aam-accent-light);
    padding: 6px 12px;
    border-radius: 6px;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    border: 1px solid rgba(59, 130, 246, 0.3);
    z-index: 5;
}

.aam-post-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.aam-post-date {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--aam-text-muted);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.aam-post-title {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 12px;
}

.aam-post-title a {
    color: var(--aam-text-white);
    text-decoration: none;
    transition: color 0.3s ease;
}

.aam-post-title a:hover {
    color: var(--aam-accent-light);
}

.aam-post-excerpt {
    color: var(--aam-text-gray);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.aam-empty-state {
    grid-column: 1 / -1;
    background: var(--aam-bg-panel);
    border: 1px dashed var(--aam-border-hover);
    border-radius: 20px;
    padding: 60px 20px;
    text-align: center;
}

.aam-empty-state i {
    font-size: 3rem;
    color: var(--aam-text-muted);
    margin-bottom: 20px;
}

.aam-empty-state h3 {
    font-size: 1.5rem;
    color: var(--aam-text-white);
    margin-bottom: 10px;
}

.aam-empty-state p {
    color: var(--aam-text-gray);
    margin-bottom: 20px;
}

/* Sidebar Widgets */
.aam-widget {
    background: rgba(20, 27, 45, 0.6);
    backdrop-filter: blur(12px);
    border: 1px solid var(--aam-border);
    border-radius: 20px;
    padding: 30px;
}

.aam-widget-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--aam-text-white);
    margin-bottom: 20px;
    padding-left: 12px;
    border-left: 3px solid var(--aam-accent-blue);
}

.aam-search-form {
    position: relative;
}

.aam-search-input {
    width: 100%;
    background: rgba(10, 14, 26, 0.7);
    border: 1px solid var(--aam-border);
    color: var(--aam-text-white);
    padding: 12px 40px 12px 16px;
    border-radius: 25px;
    font-family: var(--font-main);
    outline: none;
    transition: all 0.3s ease;
}

.aam-search-input:focus {
    border-color: var(--aam-accent-blue);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.aam-search-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--aam-text-muted);
    cursor: pointer;
    transition: color 0.3s ease;
}

.aam-search-btn:hover {
    color: var(--aam-accent-light);
}

.aam-category-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.aam-category-list li {
    margin-bottom: 12px;
}

.aam-category-list li:last-child {
    margin-bottom: 0;
}

.aam-cat-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-decoration: none;
    color: var(--aam-text-gray);
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.aam-cat-link:hover,
.aam-cat-link.active {
    color: var(--aam-text-white);
}

.aam-cat-link.active {
    font-weight: 700;
    color: var(--aam-accent-light);
}

.aam-cat-name {
    transition: transform 0.3s ease;
}

.aam-cat-link:hover .aam-cat-name {
    transform: translateX(5px);
}

.aam-cat-count {
    background: #0a0e1a;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: 6px;
    border: 1px solid var(--aam-border);
    transition: border-color 0.3s ease;
}

.aam-cat-link:hover .aam-cat-count {
    border-color: var(--aam-border-hover);
}

.aam-cta-widget {
    background: linear-gradient(135deg, #1E3A8A, #0f1629);
    border: 1px solid var(--aam-border-hover);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.aam-cta-widget::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 20px 20px;
    pointer-events: none;
}

.aam-cta-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    margin: 0 auto 20px;
    backdrop-filter: blur(5px);
}

.aam-cta-widget h3 {
    color: white;
    font-size: 1.2rem;
    margin-bottom: 10px;
    position: relative;
    z-index: 2;
}

.aam-cta-widget p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
}

.aam-cta-contact {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--aam-accent-light);
    margin-top: 15px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    position: relative;
    z-index: 2;
}

/* Buttons */
.aam-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-family: var(--font-main);
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    position: relative;
    z-index: 2;
}

.aam-btn-primary {
    background: linear-gradient(135deg, var(--aam-accent-blue), #1E3A8A);
    color: white;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.aam-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
}

.aam-btn-outline {
    background: transparent;
    color: var(--aam-text-white);
    border: 1px solid var(--aam-border-hover);
}

.aam-btn-outline:hover {
    background: rgba(59, 130, 246, 0.1);
    border-color: var(--aam-accent-blue);
    color: var(--aam-accent-light);
}

.aam-btn-white {
    background: white;
    color: #1E3A8A;
    width: 100%;
}

.aam-btn-white:hover {
    background: #f1f5f9;
    transform: translateY(-2px);
}

.aam-view-all {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--aam-text-white);
    font-family: var(--font-mono);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    margin-top: 40px;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

.aam-view-all:hover {
    color: var(--aam-accent-light);
    border-color: var(--aam-accent-light);
}

/* Animations (Shared with GDPR + Termeni) */
.aam-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.aam-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 {
    transition-delay: 0.1s;
}

.delay-2 {
    transition-delay: 0.2s;
}

.delay-3 {
    transition-delay: 0.3s;
}