@media (min-width: 480px) {
    .blog-page-header {
        margin-top: 80px;
    }
}


.blog-page-header h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    background: var(--gradient-primary);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease-out;
    position: relative;
}

.blog-page-header p {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    animation: fadeInUp 1s ease-out 0.3s both;
    font-style: italic;
    position: relative;
}


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

/* Blog Container */
.blog-list-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 1rem;
    /*display: grid;*/
    /*grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));*/
    gap: 2rem;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Blog Post Cards */
.blog-post-item {
    width: 70%;
    min-height: 400px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 70px 2.5rem 30px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
    box-shadow: var(--shadow);
    animation: fadeInUp 0.6s ease-out forwards;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    justify-content: end;
    align-items: start;
    text-align: left !important;
    background: linear-gradient(0deg, #1f1505, transparent);
}


.blog-post-cover {
    position: absolute;
    z-index: -1;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0.2
}

.blog-tag {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin: 16px 0;
    font-size: .75rem;
    letter-spacing: .08em;
    color: var(--accent-2);
    background: rgba(255, 209, 102, .12);
    border: 1px solid rgba(255, 209, 102, .35);
    padding: 6px 8px;
    border-radius: 8px;
    white-space: nowrap;
    width: fit-content;
    backdrop-filter: blur(12px);
}

.blog-tag a {
    color: #ff7a18;
}

/*.blog-post-item:nth-child(1) {*/
/*    animation-delay: 0.1s;*/
/*}*/

/*.blog-post-item:nth-child(2) {*/
/*    animation-delay: 0.2s;*/
/*}*/

/*.blog-post-item:nth-child(3) {*/
/*    animation-delay: 0.3s;*/
/*}*/

/*.blog-post-item:nth-child(4) {*/
/*    animation-delay: 0.4s;*/
/*}*/

/*.blog-post-item::before {*/
/*    content: '';*/
/*    position: absolute;*/
/*    top: 0;*/
/*    left: 0;*/
/*    right: 0;*/
/*    height: 4px;*/
/*    background: var(--gradient-primary);*/
/*    transform: scaleX(0);*/
/*    transform-origin: left;*/
/*    transition: transform 0.4s ease;*/
/*}*/

/*.blog-post-item:hover::before {*/
/*    transform: scaleX(1);*/
/*}*/

/*.blog-post-item::after {*/
/*    content: '';*/
/*    position: absolute;*/
/*    top: 0;*/
/*    left: 0;*/
/*    right: 0;*/
/*    bottom: 0;*/
/*    background: linear-gradient(135deg, rgba(212, 182, 144, 0.05) 0%, transparent 50%);*/
/*    opacity: 0;*/
/*    transition: opacity 0.4s ease;*/
/*}*/

/*.blog-post-item:hover::after {*/
/*    opacity: 1;*/
/*}*/

.blog-post-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-gold);
}

.blog-post-item--featured {
    width: 78%;
    border-color: var(--primary-gold);
}

.blog-featured-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 2;
    padding: 0.5rem 1rem;
    border: 1px solid rgba(212, 182, 144, 0.4);
    border-radius: 8px;
    color: var(--primary-gold);
    background: rgba(10, 10, 10, 0.72);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.blog-photo-note {
    max-width: 760px;
    margin-top: 12px;
    padding: 10px 12px;
    border-left: 3px solid var(--primary-gold);
    background: rgba(212, 182, 144, 0.08);
}

.blog-post-item .blog-post-item-heading {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.3rem, 2vw, 1.6rem);
    color: var(--primary-gold);
    margin-bottom: 1.5rem;
    line-height: 1.3;
    position: relative;
    z-index: 2;
    transition: color 0.3s ease;
}

.blog-post-item:hover .blog-post-item-heading {
    color: var(--light-gold);
}

.blog-post-item p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.7;
    position: relative;
    z-index: 2;
    transition: color 0.3s ease;
}

.blog-post:hover p {
    color: var(--text-primary);
}

/* Read More Button */
.blog-post-item .read-more {
    margin-top: 1.5rem;
    padding: 0.8rem 1.5rem;
    background: transparent;
    color: var(--primary-gold);
    border: 2px solid var(--primary-gold);
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
    overflow: hidden;
}

.blog-post-item .read-more::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    transition: left 0.3s ease;
    z-index: -1;
}

.blog-post-item .read-more:hover::before {
    left: 0;
}

.blog-post-item .read-more:hover {
    color: var(--bg-primary);
    transform: translateY(-2px);
}

/* Date Badge */
.blog-post-item .date-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(212, 182, 144, 0.1);
    color: var(--primary-gold);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid rgba(212, 182, 144, 0.3);
}

.button-read-more {
    margin-top: 24px;
    backdrop-filter: blur(12px);
    cursor: pointer;
    width: fit-content;
    text-decoration: none;
    color: var(--primary-gold);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 500;
    border: 1px solid rgba(212, 182, 144, 0.3);
}

.tcm-blog-guides-title,
.tcm-updates-section-title {
    width: 100%;
    margin: 0 0 18px;
    color: var(--primary-gold);
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    text-align: center;
}

.tcm-blog-updates-panel,
.tcm-updates-main {
    width: min(1100px, calc(100% - 32px));
    margin: 36px auto;
}

.tcm-blog-updates-panel {
    padding: 22px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(251, 191, 36, 0.14), rgba(52, 211, 153, 0.08)),
        rgba(10, 10, 10, 0.86);
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.26);
}

.tcm-blog-updates-panel__header {
    display: grid;
    grid-template-columns: minmax(120px, 180px) 1fr;
    gap: 18px;
    align-items: start;
    margin-bottom: 18px;
}

.tcm-blog-updates-panel__eyebrow,
.tcm-updates-hero__eyebrow {
    margin: 0;
    color: #34d399;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.tcm-blog-updates-panel__title,
.tcm-updates-title {
    margin: 0;
    color: #ffffff;
    font-family: 'Playfair Display', serif;
    line-height: 1.08;
}

.tcm-blog-updates-panel__title {
    font-size: 2rem;
}

.tcm-blog-updates-panel__intro,
.tcm-blog-updates-panel__empty,
.tcm-updates-intro {
    margin: 8px 0 0;
    color: var(--text-secondary);
    line-height: 1.65;
}

.tcm-blog-updates-panel__list {
    display: grid;
    gap: 0;
    margin-bottom: 18px;
}

.tcm-mini-update {
    padding: 14px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.tcm-mini-update__meta,
.tcm-update-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin: 0 0 7px;
}

.tcm-mini-update__type,
.tcm-update-card__type {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 3px 8px;
    border: 1px solid color-mix(in srgb, var(--tcm-update-accent, #fbbf24) 42%, transparent);
    border-radius: 8px;
    color: var(--tcm-update-accent, #fbbf24);
    font-size: 0.74rem;
    font-weight: 800;
    text-transform: uppercase;
}

.tcm-mini-update__date,
.tcm-update-card__date {
    color: #b9bac4;
    font-size: 0.82rem;
}

.tcm-mini-update__title,
.tcm-update-card__title {
    margin: 0 0 7px;
    line-height: 1.28;
}

.tcm-mini-update__title {
    font-size: 1.08rem;
}

.tcm-mini-update__title a,
.tcm-update-card__title a {
    color: #ffffff;
    text-decoration: none;
}

.tcm-mini-update__title a:hover,
.tcm-update-card__title a:hover {
    color: var(--tcm-update-accent, var(--primary-gold));
}

.tcm-mini-update__description,
.tcm-update-card__text {
    margin: 0;
    color: var(--text-secondary);
    line-height: 1.62;
}

.tcm-updates-button,
.tcm-update-card__link,
.tcm-updates-browse__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 16px;
    border-radius: 8px;
    font-weight: 800;
    text-decoration: none;
}

.tcm-updates-button {
    color: #070707;
    background: linear-gradient(135deg, #fbbf24, #34d399);
    box-shadow: 0 14px 32px rgba(52, 211, 153, 0.18);
}

.tcm-updates-button:hover {
    transform: translateY(-2px);
}

.tcm-updates-main {
    padding-bottom: 48px;
}

.tcm-updates-hero {
    padding: 44px 0 28px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.tcm-updates-title {
    margin-top: 8px;
    font-size: 3.5rem;
}

.tcm-updates-intro {
    max-width: 760px;
    font-size: 1.04rem;
}

.tcm-updates-categories,
.tcm-updates-feed,
.tcm-updates-browse {
    margin-top: 34px;
}

.tcm-updates-categories__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.tcm-updates-category {
    --tcm-update-accent: #fbbf24;
    display: grid;
    gap: 4px;
    min-height: 128px;
    padding: 18px;
    border: 1px solid color-mix(in srgb, var(--tcm-update-accent) 34%, rgba(255, 255, 255, 0.08));
    border-radius: 8px;
    background: linear-gradient(180deg, color-mix(in srgb, var(--tcm-update-accent) 13%, rgba(255, 255, 255, 0.03)), rgba(255, 255, 255, 0.02));
}

.tcm-updates-category--review {
    --tcm-update-accent: #60a5fa;
}

.tcm-updates-category--model {
    --tcm-update-accent: #f472b6;
}

.tcm-updates-category--promo {
    --tcm-update-accent: #34d399;
}

.tcm-updates-category__label,
.tcm-updates-category__note {
    color: var(--text-secondary);
}

.tcm-updates-category__count {
    color: var(--tcm-update-accent);
    font-size: 2.5rem;
    line-height: 1;
}

.tcm-updates-timeline {
    display: grid;
    gap: 14px;
}

.tcm-update-card {
    --tcm-update-accent: #fbbf24;
    display: grid;
    grid-template-columns: minmax(140px, 220px) 1fr;
    gap: 18px;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-left: 4px solid var(--tcm-update-accent);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.035);
}

.tcm-update-card--no-image {
    grid-template-columns: 1fr;
}

.tcm-mini-update--review,
.tcm-update-card--review {
    --tcm-update-accent: #60a5fa;
}

.tcm-mini-update--model,
.tcm-update-card--model {
    --tcm-update-accent: #f472b6;
}

.tcm-mini-update--promo,
.tcm-update-card--promo {
    --tcm-update-accent: #34d399;
}

.tcm-update-card__media,
.tcm-update-card__image {
    display: block;
}

.tcm-update-card__media {
    overflow: hidden;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
}

.tcm-update-card__image {
    width: 100%;
    aspect-ratio: 4 / 3;
    height: 100%;
    object-fit: cover;
}

.tcm-update-card__body {
    min-width: 0;
}

.tcm-update-card__title {
    font-size: 1.24rem;
}

.tcm-update-card__text {
    margin-bottom: 12px;
}

.tcm-update-card__link,
.tcm-updates-browse__link {
    min-height: 38px;
    color: var(--tcm-update-accent, var(--primary-gold));
    border: 1px solid color-mix(in srgb, var(--tcm-update-accent, #fbbf24) 38%, transparent);
}

.tcm-update-card__link:hover,
.tcm-updates-browse__link:hover {
    color: #070707;
    background: var(--tcm-update-accent, var(--primary-gold));
}

.tcm-updates-browse__list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.tcm-updates-browse__title {
    margin: 0 0 14px;
    color: var(--primary-gold);
    font-size: 1.4rem;
}

@media (max-width: 820px) {
    .tcm-blog-updates-panel__header,
    .tcm-update-card {
        grid-template-columns: 1fr;
    }

    .tcm-updates-categories__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .tcm-blog-updates-panel,
    .tcm-updates-main {
        width: min(100% - 20px, 1100px);
    }

    .tcm-blog-updates-panel {
        padding: 16px;
    }

    .tcm-updates-title {
        font-size: 2.4rem;
    }

    .tcm-updates-categories__grid {
        grid-template-columns: 1fr;
    }
}


/* Responsive Design */
@media (max-width: 768px) {
    .nav-container {
        flex-wrap: wrap;
        gap: 1rem;
    }

    .nav-container a {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }

    .blog-page-header {
        padding: 2rem 0 1rem;
    }

    .blog-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 2rem 1rem;
    }

    .blog-post-item {
        width: 100%;
        padding: 2rem 1.5rem;
    }

    .blog-post-item .date-badge {
        position: static;
        display: inline-block;
        margin-bottom: 1rem;
    }
}

@media (max-width: 480px) {
    .blog-container {
        padding: 1.5rem 0.5rem;
    }

    .blog-post-item {
        padding: 1.5rem;
        border-radius: 15px;
    }

    .blog-page-header h1 {
        font-size: 2rem;
    }

    .blog-page-header p {
        font-size: 1rem;
    }

    .blog-post-item {
        align-items: center;
        text-align: center;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus states for accessibility */
.blog-post:focus-visible {
    outline: 2px solid var(--primary-gold);
    outline-offset: 2px;
}
