/* Trade News Page Styles */

/* ========================================
   Trade News Hero Section
   ======================================== */
.trade-news-hero {
    padding: 120px 0 60px;
    background-color: #f8f8f5;
    position: relative;
}

.trade-news-hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
}

.trade-news-hero-left {
    flex: 1;
    max-width: 600px;
}

.trade-news-title {
    font-size: 72px;
    font-weight: 700;
    line-height: 1.1;
    color: var(--primary-black);
    margin-bottom: 30px;
}

.trade-news-cross-ring {
    position: absolute;
    width: 80px;
    height: 80px;
    opacity: 0.15;
    top: 140px;
    left: 300px;
}

.trade-news-cross-ring img {
    width: 100%;
    height: 100%;
    filter: brightness(0);
}

.trade-news-desc {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-gray);
    padding: 20px;
    background-color: var(--bg-white);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.trade-news-hero-right {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Laptop Mockup */
.laptop-mockup {
    position: relative;
    width: 380px;
    height: 240px;
    background: linear-gradient(135deg, #f0f0f0 0%, #e0e0e0 100%);
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.laptop-mockup::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 120%;
    height: 20px;
    background: linear-gradient(135deg, #d0d0d0 0%, #c0c0c0 100%);
    border-radius: 0 0 20px 20px;
}

.laptop-screen {
    width: 100%;
    height: 100%;
    background-color: var(--bg-white);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.chart-placeholder {
    width: 80%;
    height: 80%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chart-placeholder svg {
    width: 100%;
    height: auto;
}

/* ========================================
   Breadcrumb Section
   ======================================== */
.breadcrumb-section {
    background-color: var(--bg-white);
    padding: 15px 0;
    border-bottom: 1px solid var(--border-gray);
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

.breadcrumb a {
    color: var(--text-gray);
    display: flex;
    align-items: center;
    gap: 5px;
}

.breadcrumb a:hover {
    color: var(--primary-green);
}

.breadcrumb .separator {
    color: var(--text-gray);
}

.breadcrumb .current {
    color: var(--primary-black);
    font-weight: 500;
}

/* ========================================
   News Filter Section
   ======================================== */
.news-filter-section {
    background-color: var(--bg-white);
    padding: 20px 0;
}

.news-filter-tabs {
    display: flex;
    gap: 15px;
}

.filter-tab {
    padding: 10px 20px;
    background-color: var(--primary-green);
    color: var(--primary-black);
    border: none;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.filter-tab:hover,
.filter-tab.active {
    background-color: var(--primary-green);
    color: var(--primary-black);
}

/* ========================================
   News Grid Section
   ======================================== */
.news-grid-section {
    background-color: var(--bg-white);
    padding: 40px 0 80px;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

/* News Card */
.news-card {
    background-color: var(--bg-white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.news-card-image {
    position: relative;
    display: block;
    height: 180px;
    overflow: hidden;
}

.news-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.news-card:hover .news-card-image img {
    transform: scale(1.05);
}

.news-card-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background-color: var(--primary-green);
    padding: 6px 12px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.news-card-badge img {
    width: 20px;
    height: 20px;
    filter: brightness(0);
}

.news-card-badge.ultima-badge {
    background-color: var(--primary-green);
}

.news-card-badge.ultima-badge span {
    font-size: 12px;
    font-weight: 700;
    color: var(--primary-black);
}

.news-card-content {
    padding: 20px;
}

.news-card-date {
    font-size: 13px;
    color: var(--text-gray);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.news-card-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--primary-black);
    line-height: 1.5;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 48px;
}

.news-card-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-black);
    padding: 10px 20px;
    background-color: var(--bg-light);
    border-radius: 25px;
    transition: var(--transition);
}

.news-card-link:hover {
    background-color: var(--primary-green);
    gap: 12px;
}

/* ========================================
   Pagination
   ======================================== */
.news-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.pagination-item {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-gray);
    background-color: var(--bg-light);
    border-radius: 50%;
    transition: var(--transition);
}

.pagination-item:hover,
.pagination-item.active {
    background-color: var(--primary-green);
    color: var(--primary-black);
}

.pagination-dots {
    color: var(--text-gray);
    font-size: 14px;
    padding: 0 5px;
}

.pagination-next {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-light);
    border-radius: 50%;
    color: var(--text-gray);
    transition: var(--transition);
}

.pagination-next:hover {
    background-color: var(--primary-green);
    color: var(--primary-black);
}

/* ========================================
   Trading Steps Section
   ======================================== */
.trading-steps-section {
    background-color: var(--bg-white);
    padding: 80px 0;
}

.trading-steps-section .section-header {
    text-align: center;
    margin-bottom: 60px;
}

.trading-steps-section .section-header h2 {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary-black);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

.step-item {
    text-align: center;
    padding: 30px 20px;
    position: relative;
}

.step-number {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-green);
    margin-bottom: 20px;
}

.step-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background-color: var(--bg-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.step-icon img {
    width: 40px;
    height: 40px;
}

.step-item:hover .step-icon {
    background-color: var(--primary-green);
    transform: scale(1.1);
}

.step-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-black);
    margin-bottom: 8px;
}

.step-desc {
    font-size: 14px;
    color: var(--text-gray);
}

.steps-cta {
    text-align: center;
}

.btn-lg {
    padding: 16px 36px;
    font-size: 16px;
}

/* ========================================
   Start Trading Section
   ======================================== */
.start-trading-section {
    background-color: var(--bg-light);
    padding: 80px 0;
}

.start-trading-content {
    text-align: center;
}

.start-trading-visual {
    margin-bottom: 40px;
}

.laptop-cta-mockup {
    display: inline-block;
    width: 100%;
    max-width: 700px;
    background: linear-gradient(135deg, #2d2d2d 0%, #1a1a1a 100%);
    border-radius: 20px;
    padding: 60px 40px;
    position: relative;
    overflow: hidden;
}

.laptop-cta-mockup::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23333' fill-opacity='0.3'%3E%3Ccircle cx='3' cy='3' r='3'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.3;
}

.laptop-cta-screen {
    position: relative;
    z-index: 1;
}

.cta-title {
    font-size: 48px;
    font-weight: 700;
    color: var(--primary-green);
    margin-bottom: 15px;
}

.cta-subtitle {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    margin-bottom: 40px;
}

.trading-bars-animation {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 12px;
    height: 60px;
}

.trading-bars-animation .bar {
    width: 40px;
    background-color: var(--primary-green);
    border-radius: 4px 4px 0 0;
    animation: barGrow 1.5s ease-in-out infinite;
}

.trading-bars-animation .bar:nth-child(1) {
    height: 30px;
    animation-delay: 0s;
}

.trading-bars-animation .bar:nth-child(2) {
    height: 45px;
    animation-delay: 0.1s;
}

.trading-bars-animation .bar:nth-child(3) {
    height: 35px;
    animation-delay: 0.2s;
}

.trading-bars-animation .bar:nth-child(4) {
    height: 55px;
    animation-delay: 0.3s;
}

.trading-bars-animation .bar:nth-child(5) {
    height: 40px;
    animation-delay: 0.4s;
}

.trading-bars-animation .bar:nth-child(6) {
    height: 50px;
    animation-delay: 0.5s;
}

@keyframes barGrow {
    0%, 100% {
        transform: scaleY(1);
    }
    50% {
        transform: scaleY(0.6);
    }
}

.start-trading-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.btn-outline-dark {
    background-color: transparent;
    border: 2px solid var(--primary-black);
    color: var(--primary-black);
}

.btn-outline-dark:hover {
    background-color: var(--primary-black);
    color: var(--text-light);
}

/* ========================================
   Join CTA Section
   ======================================== */
.join-cta-section {
    background-color: var(--primary-black);
    padding: 80px 0;
}

.join-cta-content {
    text-align: center;
}

.join-cta-content h2 {
    font-size: 36px;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 30px;
}

.join-cta-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* Footer apps section */
.footer-apps-section {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    padding: 30px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-apps-section img {
    height: 45px;
}

/* ========================================
   Responsive Styles
   ======================================== */
@media (max-width: 1200px) {
    .trade-news-title {
        font-size: 56px;
    }
}

@media (max-width: 992px) {
    .trade-news-hero-content {
        flex-direction: column;
        text-align: center;
    }
    
    .trade-news-hero-left {
        max-width: 100%;
    }
    
    .trade-news-cross-ring {
        display: none;
    }
    
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .steps-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .trade-news-hero {
        padding: 100px 0 40px;
    }
    
    .trade-news-title {
        font-size: 42px;
    }
    
    .laptop-mockup {
        width: 300px;
        height: 190px;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .steps-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .cta-title {
        font-size: 36px;
    }
    
    .start-trading-actions,
    .join-cta-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .footer-apps-section {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .trade-news-title {
        font-size: 36px;
    }
    
    .trading-steps-section .section-header h2 {
        font-size: 24px;
    }
    
    .join-cta-content h2 {
        font-size: 28px;
    }
    
    .laptop-cta-mockup {
        padding: 40px 20px;
    }
    
    .cta-title {
        font-size: 28px;
    }
    
    .trading-bars-animation .bar {
        width: 30px;
    }
}
