/* SolanaScope Custom Styles */

/* Shimmer Animation for Demo Banner */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 10px 40px rgba(33, 231, 134, 0.2);
    }
    50% {
        box-shadow: 0 15px 60px rgba(33, 231, 134, 0.4);
    }
}

/* Demo Banner Pulse Effect */
.demo-banner {
    animation: pulse-glow 3s ease-in-out infinite;
}

/* Fix for jumping text animation in main slider */
.cd-words-wrapper {
    height: 1.2em; /* Fixed height to prevent jumping */
    overflow: hidden;
    display: inline-block;
    vertical-align: bottom;
    position: relative;
}

.cd-words-wrapper .item-text {
    display: block;
    position: absolute;
    width: 100%;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    height: 1.2em;
    line-height: 1.2em;
}

.cd-words-wrapper .item-text.is-visible {
    opacity: 1;
}

/* Ensure all text elements are properly positioned */
.cd-words-wrapper .item-text {
    z-index: 1;
}

.cd-words-wrapper .item-text.is-visible {
    z-index: 2;
}

/* Token Info Overlay Styles */
.token-info-overlay {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid rgba(33, 231, 134, 0.3);
    color: white;
    width: 300px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.token-info-overlay h3 {
    margin: 0 0 15px 0;
    font-size: 24px;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.token-stats {
    margin-bottom: 15px;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-size: 14px;
}

.stat-item .label {
    color: #ccc;
}

.stat-item .value {
    font-weight: 700;
    font-size: 16px;
}

.stat-item .value.positive {
    color: #21E786;
}

.stat-item .value.negative {
    color: #ff6b6b;
}

.token-actions {
    text-align: center;
}

.analyze-btn {
    background: linear-gradient(135deg, #21E786, #00d2ff);
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    color: #000;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.analyze-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(33, 231, 134, 0.4);
}

/* Responsive Design for Token Info Overlay */
@media (max-width: 768px) {
    .token-info-overlay {
        position: relative;
        bottom: auto;
        left: auto;
        margin-bottom: 20px;
        width: 100%;
    }
    
    .token-info-overlay h3 {
        font-size: 20px;
    }
    
    .stat-item {
        font-size: 13px;
    }
    
    .stat-item .value {
        font-size: 14px;
    }
}

/* Token Card Price Info */
.tf-product .token-price-info {
    padding: 15px;
    margin-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.tf-product .token-price-info .price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.tf-product .token-price-info .price {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-color);
}

.tf-product .token-price-info .change {
    font-size: 16px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 4px;
}

.tf-product .token-price-info .change.positive {
    color: #21E786;
    background: rgba(33, 231, 134, 0.1);
}

.tf-product .token-price-info .change.negative {
    color: #ff6b6b;
    background: rgba(255, 107, 107, 0.1);
}

.tf-product .token-price-info .stats-row {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 5px;
}

.tf-product .analyze-btn {
    margin-top: 15px;
    width: 100%;
    display: block;
    text-align: center;
    padding: 10px 20px;
    font-size: 14px;
}

/* Counter Styles for Stats Bar */
.counter-wrap {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 40px;
}

.tf-counter.text-center {
    text-align: center;
}

.tf-counter .content {
    font-size: 42px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.tf-counter h6 {
    font-size: 16px;
    font-weight: 500;
    opacity: 0.8;
}

/* What We Analyze Section Styles */
.tf-step[style*="text-align: center"] {
    background: rgba(33, 231, 134, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(33, 231, 134, 0.2);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.tf-step[style*="text-align: center"]:hover {
    background: rgba(33, 231, 134, 0.1);
    border-color: rgba(33, 231, 134, 0.4);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(33, 231, 134, 0.2);
}

/* Make all analyze blocks equal height */
.row[style*="margin-top: 40px"] .col-xl-4,
.row[style*="margin-top: 40px"] .col-lg-6 {
    display: flex;
    margin-bottom: 30px !important;
    margin-top: 0 !important;
}

.row[style*="margin-top: 40px"] .tf-step {
    width: 100%;
    min-height: 520px;
}

/* Override inline styles for equal heights */
.row[style*="margin-top: 40px"] .col-xl-4[style*="margin-top"],
.row[style*="margin-top: 40px"] .col-lg-6[style*="margin-top"] {
    margin-top: 0 !important;
}

@media (max-width: 1200px) {
    .row[style*="margin-top: 40px"] .tf-step {
        min-height: 550px;
    }
}

@media (max-width: 991px) {
    .row[style*="margin-top: 40px"] .tf-step {
        min-height: 500px;
    }
}

@media (max-width: 767px) {
    .row[style*="margin-top: 40px"] .tf-step {
        min-height: auto;
    }
}

.section-bg-1 {
    background: linear-gradient(180deg, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.1) 100%);
    padding: 80px 0;
}

.tf-step .sub-number {
    margin-bottom: 20px;
}

/* Testimonial Styles */
.tf-team p[style*="padding: 20px"] {
    min-height: 140px;
    display: flex;
    align-items: center;
}

/* Collection Slider Heading */
.tf-heading.text-center {
    text-align: center;
}

.tf-heading.text-center .heading {
    margin-bottom: 15px;
}

.tf-heading.text-center .sub-heading {
    max-width: 800px;
    margin: 0 auto;
}

/* Responsive Design */
@media (max-width: 991px) {
    .counter-wrap {
        gap: 30px;
    }

    .tf-counter .content {
        font-size: 36px;
    }

    .tf-product .token-price-info .price {
        font-size: 16px;
    }

    .tf-product .token-price-info .change {
        font-size: 14px;
    }
}

@media (max-width: 767px) {
    .counter-wrap {
        flex-direction: column;
        gap: 25px;
    }

    .tf-counter .content {
        font-size: 32px;
    }

    .tf-step[style*="text-align: center"] {
        padding: 30px 20px !important;
    }
}

/* Loading State */
.tf-product.loading {
    opacity: 0.6;
    pointer-events: none;
}

.tf-product.loading::after {
    content: "Loading...";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 14px;
    color: var(--primary-color);
}

/* Error State */
.tf-product.error .token-price-info {
    color: #ff6b6b;
}

.tf-product.error .token-price-info::before {
    content: "⚠ ";
}

/* Section Spacing - Consistent margins between sections */
.tf-section {
    padding: 80px 0;
}

.tf-section:first-of-type {
    padding-top: 60px;
}

.tf-section:last-of-type {
    padding-bottom: 80px;
}

/* Page Title Section */
.page-title,
.tf-page-title {
    padding: 80px 0 60px;
    background: linear-gradient(180deg, rgba(33, 231, 134, 0.05) 0%, rgba(0,0,0,0.1) 100%);
    border-bottom: 1px solid rgba(33, 231, 134, 0.1);
    margin-bottom: 60px;
}

.page-title-inner {
    text-align: center;
}

.page-title-inner .heading {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.page-title-inner .sub-heading {
    font-size: 18px;
    opacity: 0.8;
}

/* Footer Links */
.footer-links {
    display: inline-flex;
    gap: 0;
}

.footer .bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

/* Footer Action Box Button Alignment */
.action-box .group-btn {
    display: flex;
    align-items: center;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.action-box .group-btn .tf-button,
.action-box .group-btn a.tf-button,
.action-box .group-btn button.tf-button,
.action-box .group-btn .tf-button.style-2,
.action-box .group-btn a.tf-button.style-2 {
    margin: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 56px !important;
    min-height: 56px !important;
    max-height: 56px !important;
    padding: 0 30px !important;
    line-height: 56px !important;
    vertical-align: middle !important;
    box-sizing: border-box !important;
}

@media (max-width: 767px) {
    .page-title-inner .heading {
        font-size: 32px;
    }

    .page-title-inner .sub-heading {
        font-size: 16px;
    }

    .footer .bottom {
        flex-direction: column;
        gap: 15px;
    }
}

/* Fix token images in ALL partner sliders - remove brightness filter */
.partner .tf-partner img,
.partner-2 .tf-partner img,
.tf-partner img {
    filter: none !important;
    opacity: 1 !important;
}

.is_dark .partner .tf-partner img,
.is_dark .partner-2 .tf-partner img,
.is_dark .tf-partner img {
    filter: none !important;
    opacity: 1 !important;
}

/* Hide Holdings table on mobile devices (dashboard.html) */
@media (max-width: 767px) {
    .holdings-section,
    .holdings-table-container,
    #holdings-table-container {
        display: none !important;
    }
}
