/* =========================================
   UPDATES PAGE STYLES
   ========================================= */
@import url('base.css');

/* =========================================
   LAYOUT
   ========================================= */

/* =========================================
   HEADER
   ========================================= */
.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 24px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-full);
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 14px;
    transition: var(--transition-normal);
    backdrop-filter: blur(5px);
    text-decoration: none;
}

.back-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    color: var(--text-primary);
}

.back-btn i {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.back-btn:hover i {
    transform: translateX(-3px);
}

.page-titles {
    text-align: center;
    margin-bottom: 60px;
}

.page-titles h1 {
    font-size: 42px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
    background: linear-gradient(to right, var(--text-primary), var(--text-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    margin-bottom: 10px;
}

.page-titles p {
    color: var(--text-secondary);
    font-size: var(--font-lg);
}

.section-label {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 40px;
}

.section-label span {
    color: var(--text-secondary);
    font-weight: var(--font-extrabold);
    font-size: var(--font-xs);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.section-label .line {
    flex: 1;
    height: 1px;
    background: var(--border-primary);
}

/* =========================================
   UPDATES TIMELINE
   ========================================= */
.updates-section {
    margin-bottom: 60px;
}

.updates-timeline {
    position: relative;
    margin-top: 30px;
}

/* Timeline line */
.updates-timeline::before {
    content: '';
    position: absolute;
    left: 60px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--border-primary), transparent);
}

/* Update Items */
.update-item {
    position: relative;
    display: flex;
    gap: 30px;
    margin-bottom: 60px;
    cursor: pointer;
    transition: all 0.3s ease;
}



/* Date Circle */
.update-date-circle {
    position: relative;
    width: 120px;
    height: 120px;
    min-width: 120px;
    background: linear-gradient(135deg, var(--bg-card), var(--bg-secondary));
    border: 2px solid var(--border-primary);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: all 0.3s ease;
}

.update-item:hover .update-date-circle {
    border-color: var(--accent-blue);
    /* Removed scale effect */
}

.date-day {
    font-size: 28px;
    font-weight: 900;
    color: var(--text-primary);
    line-height: 1;
}

.date-month {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 5px;
}

/* Content Wrapper */
.update-content-wrapper {
    flex: 1;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.02), transparent);
    border: 1px solid var(--border-primary);
    border-radius: 20px;
    padding: 30px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.update-content-wrapper::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--accent-blue);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.update-item:hover .update-content-wrapper::before {
    opacity: 1;
}

.update-item:hover .update-content-wrapper {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.05), transparent);
    border-color: var(--accent-blue);
}

/* Update Badge */
.update-badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
}

.update-badge.new {
    background: var(--gradient-gold);
    color: #000;
}

.update-badge.major {
    background: var(--gradient-accent);
    color: #fff;
}

.update-badge.feature {
    background: linear-gradient(135deg, var(--success), var(--accent-green-medium));
    color: #fff;
}

.update-badge.event {
    background: linear-gradient(135deg, var(--accent-purple), #7c3aed);
    color: #fff;
}

/* Update Title */
.update-title {
    font-size: 24px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 15px;
    line-height: 1.3;
}

/* Update Excerpt (Rich text support) */
.update-excerpt {
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 25px;
}

.update-excerpt p {
    margin-bottom: 10px;
}

.update-excerpt ul {
    list-style: disc;
    padding-left: 20px;
    margin-bottom: 15px;
}

.update-excerpt li {
    margin-bottom: 5px;
}

/* Update Visual */
.update-visual {
    margin: 25px 0;
    border-radius: 16px;
    overflow: hidden;
}

.update-visual img {
    width: 100%;
    max-height: 400px;
    height: auto;
    object-fit: contain;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 16px;
    transition: opacity 0.3s ease;
}

.update-item:hover .update-visual img {
    opacity: 0.9;
}

.visual-placeholder {
    width: 100%;
    height: 200px;
    background: var(--gradient-primary);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 48px;
    opacity: 0.5;
}

/* Update Footer */
.update-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid var(--border-primary);
}


.read-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    background: transparent;
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 8px;
    color: var(--accent-blue);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    margin-left: auto;
}

.read-more i {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.read-more:hover {
    background: var(--accent-blue);
    border-color: var(--accent-blue);
    color: #fff;
    box-shadow: 0 5px 15px rgba(239, 68, 68, 0.3);
    transform: translateY(-2px);
}

.read-more:hover i {
    transform: translateX(4px);
}

/* =========================================
   UPDATE DETAILS SECTION
   ========================================= */
.update-details {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.5s ease;
    margin-top: 0;
}

.update-details.active {
    max-height: 2000px;
    opacity: 1;
    margin-top: 20px;
}

.details-content {
    padding: 25px;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.05), transparent);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 16px;
    margin-top: 20px;
}

.details-content .content-section {
    margin-bottom: 30px;
}

.details-content .content-section:last-child {
    margin-bottom: 0;
}

.details-content .section-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.details-content .section-title i {
    color: var(--accent-blue);
    font-size: 16px;
}

.details-content .text-content {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 20px;
}


.details-content .changelog-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.details-content .changelog-item {
    padding: 10px 0;
    border-bottom: 1px solid var(--border-primary);
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.5;
    position: relative;
    padding-left: 20px;
}

.details-content .changelog-item:before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--accent-blue);
    font-weight: bold;
    font-size: 16px;
}

.details-content .changelog-item:last-child {
    border-bottom: none;
}

.details-footer {
    display: flex;
    gap: 12px;
    padding: 20px 0 0 0;
    border-top: 1px solid var(--border-primary);
    margin-top: 20px;
}

.details-footer .interaction-btn {
    padding: 8px 16px;
    background: var(--bg-primary);
    border: 1px solid var(--border-primary);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
}

.details-footer .interaction-btn:hover {
    background: var(--accent-blue);
    border-color: var(--accent-blue);
    color: #fff;
}

.details-footer .shop-link {
    background: var(--accent-blue);
    border-color: var(--accent-blue);
    color: #fff;
    margin-left: auto;
}

.details-footer .shop-link:hover {
    background: var(--accent-blue-medium);
    border-color: var(--accent-blue-medium);
}

/* Read more button active state */
.read-more.active {
    background: linear-gradient(135deg, var(--accent-blue), rgba(239, 68, 68, 0.8));
    border-color: var(--accent-blue);
    color: #fff;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
}

.read-more.active i {
    transform: rotate(180deg);
}

/* Back button in header for detail view */
.back-to-list {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 24px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-full);
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 14px;
    transition: var(--transition-normal);
    backdrop-filter: blur(5px);
    text-decoration: none;
    cursor: pointer;
}

.back-to-list:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

/* =========================================
   DETAIL VIEW STYLES
   ========================================= */
.updates-detail-view {
    padding: 0;
    max-width: 1200px;
    width: 90%;
    margin: 0 auto;
    padding: 40px 0 80px 0;
}

.detail-header {
    margin-bottom: 30px;
}

.back-to-list {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 24px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-full);
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 14px;
    transition: var(--transition-normal);
    backdrop-filter: blur(5px);
    text-decoration: none;
    cursor: pointer;
}

.back-to-list:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.detail-content {
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    border-radius: 24px;
    overflow: hidden;
}

.detail-hero {
    position: relative;
    height: 400px;
    overflow: hidden;
}

.detail-hero img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: rgba(0, 0, 0, 0.3);
}

.hero-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #050a10 0%, #111 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 80px;
    opacity: 0.3;
}

.detail-header-info {
    padding: 40px 40px 0 40px;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), transparent);
    position: relative;
}

.detail-badges {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.detail-badges .badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.detail-badges .badge.new {
    background: linear-gradient(135deg, var(--accent-gold), #f59e0b);
    color: #000;
}

.detail-badges .badge.major {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: #fff;
}

.detail-badges .badge.feature {
    background: linear-gradient(135deg, #10b981, #059669);
    color: #fff;
}

.detail-badges .badge.event {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    color: #fff;
}

.detail-title {
    font-size: 32px;
    font-weight: 900;
    color: #fff;
    margin-bottom: 15px;
    line-height: 1.2;
}

.detail-meta {
    display: flex;
    align-items: center;
}

.detail-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.author-details {
    display: flex;
    flex-direction: column;
}

.author-name {
    color: #fff;
    font-weight: 600;
    font-size: 14px;
}

.article-date {
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
}

.detail-body {
    padding: 40px 50px;
}

.content-wrapper {
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.8;
}

.content-wrapper h2,
.content-wrapper h3 {
    color: #fff;
    margin-top: 40px;
    margin-bottom: 20px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 12px;
}

.content-wrapper h2 {
    font-size: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 10px;
}

.content-wrapper h3 {
    font-size: 20px;
}

/* Heading Icons */
.content-wrapper h2::before,
.content-wrapper h3::before {
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: var(--accent-primary);
    font-size: 0.8em;
}

.content-wrapper h2::before {
    content: "\f06d";
}

/* Fire icon for h2 */

.content-wrapper h3::before {
    content: "\f058";
}

/* Check icon for h3 */

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

.content-wrapper ul,
.content-wrapper ol {
    margin-bottom: 30px;
    padding-left: 5px;
    list-style: none;
}

.content-wrapper li {
    margin-bottom: 12px;
    position: relative;
    padding-left: 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    padding-bottom: 8px;
}

.content-wrapper li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 10px;
    width: 6px;
    height: 6px;
    background: var(--accent-primary);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-primary);
}

.content-wrapper strong {
    color: #fff;
    font-weight: 700;
}

.content-wrapper blockquote {
    background: rgba(255, 255, 255, 0.03);
    border-left: 4px solid var(--accent-primary);
    padding: 20px 30px;
    border-radius: 0 16px 16px 0;
    margin: 30px 0;
    font-style: italic;
    color: var(--text-primary);
}

.detail-footer {
    display: flex;
    gap: 15px;
    padding: 20px 40px;
    background: var(--bg-card);
    border-top: 1px solid var(--border-primary);
}

.detail-footer .interaction-btn {
    padding: 10px 20px;
    background: var(--bg-primary);
    border: 1px solid var(--border-primary);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.detail-footer .interaction-btn:hover {
    background: var(--accent-blue);
    border-color: var(--accent-blue);
    color: #fff;
}

.detail-footer .shop-link {
    background: var(--accent-blue);
    border-color: var(--accent-blue);
    color: #fff;
    margin-left: auto;
}

.detail-footer .shop-link:hover {
    background: var(--accent-blue-medium);
    border-color: var(--accent-blue-medium);
}

/* Mobile Responsive for Detail View */
@media (max-width: 600px) {
    .updates-detail-view {
        width: 95%;
        padding: 20px 0 60px 0;
    }

    .detail-hero {
        height: 250px;
    }

    .detail-title {
        font-size: 24px;
    }

    .detail-body {
        padding: 20px;
    }


    .detail-footer {
        flex-wrap: wrap;
        gap: 10px;
    }

    .detail-footer .shop-link {
        width: 100%;
        justify-content: center;
        margin-left: 0;
    }
}


/* =========================================
   MOBILE RESPONSIVE
   ========================================= */
@media (max-width: 900px) {
    .updates-timeline::before {
        left: 40px;
    }

    .update-date-circle {
        width: 80px;
        height: 80px;
        min-width: 80px;
    }

    .date-day {
        font-size: 20px;
    }

    .date-month {
        font-size: 10px;
    }

    .update-item {
        gap: 20px;
        margin-bottom: 40px;
    }

    .update-content-wrapper {
        padding: 20px;
    }

    .update-title {
        font-size: 20px;
    }

    .update-visual img {
        height: 150px;
    }

    .visual-placeholder {
        height: 150px;
        font-size: 36px;
    }
}

@media (max-width: 600px) {

    .updates-timeline::before {
        left: 20px;
    }

    .update-item {
        flex-direction: column;
        gap: 15px;
        padding-left: 50px;
    }

    .update-date-circle {
        position: absolute;
        left: 0;
        top: 0;
        width: 40px;
        height: 40px;
        min-width: 40px;
    }

    .date-day {
        font-size: 16px;
    }

    .date-month {
        font-size: 8px;
        margin-top: 2px;
    }

    .update-content-wrapper {
        padding: 15px;
    }

    .update-title {
        font-size: 18px;
    }

    .update-excerpt {
        font-size: 14px;
    }

    .update-visual img {
        height: 120px;
    }

    .visual-placeholder {
        height: 120px;
        font-size: 28px;
    }

    .update-footer {
        flex-direction: column;
        gap: 10px;
        align-items: stretch;
    }

    .read-more {
        margin-left: 0;
        width: 100%;
    }

    .modal-content {
        width: 95%;
        max-height: 95vh;
    }

    .modal-header {
        height: 200px;
    }

    .modal-title {
        font-size: 24px;
    }

    .modal-body-content {
        padding: 20px;
    }


    .modal-footer {
        flex-wrap: wrap;
        gap: 10px;
    }

    .shop-link {
        width: 100%;
        justify-content: center;
        margin-left: 0;
    }
}