/* Exchange Detail Page Styles */

/* Hero Section */
.exchange-hero {
    background: linear-gradient(to right, var(--dark-color), #2a3a80);
    color: var(--light-color);
    padding: 60px 0;
}

.exchange-hero-content {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
}

.exchange-logo {
    width: 120px;
    height: auto;
    background-color: white;
    padding: 15px;
    border-radius: 12px;
}

.exchange-intro {
    flex: 1;
    min-width: 300px;
}

.exchange-intro h1 {
    font-size: 36px;
    margin-bottom: 15px;
}

.exchange-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
}

.tag {
    background-color: rgba(255, 255, 255, 0.2);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 14px;
    color: var(--light-color);
}

.exchange-rating {
    display: flex;
    align-items: center;
    gap: 10px;
}

.stars {
    color: #FFD700;
}

.rating-value {
    font-weight: 600;
    font-size: 18px;
}

.reviews-count {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

.exchange-cta {
    display: flex;
    gap: 15px;
}

/* Navigation */
.exchange-navigation {
    background-color: var(--light-color);
    box-shadow: var(--box-shadow);
    position: sticky;
    top: 80px;
    z-index: 90;
}

.exchange-nav ul {
    display: flex;
    list-style: none;
    overflow-x: auto;
    padding: 0;
    margin: 0;
}

.exchange-nav li {
    flex-shrink: 0;
}

.exchange-nav a {
    display: block;
    padding: 15px 20px;
    color: var(--text-color);
    font-weight: 500;
    border-bottom: 3px solid transparent;
    transition: var(--transition);
}

.exchange-nav a:hover {
    color: var(--primary-color);
}

.exchange-nav a.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

/* Section Styles */
.exchange-section {
    padding: 60px 0;
}

.grey-bg {
    background-color: var(--grey-color);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.section-header h2 {
    font-size: 28px;
    margin: 0;
}

.last-updated {
    color: var(--text-secondary);
    font-size: 14px;
}

/* Key Metrics */
.key-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.metric-card {
    background-color: var(--light-color);
    padding: 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    text-align: center;
}

.metric-card i {
    font-size: 24px;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.metric-card h3 {
    font-size: 16px;
    margin-bottom: 5px;
    color: var(--text-secondary);
}

.metric-card p {
    font-size: 18px;
    font-weight: 600;
}

.overview-content {
    line-height: 1.8;
}

.overview-content p {
    margin-bottom: 20px;
}

/* Features Section */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.feature-item {
    background-color: var(--light-color);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 30px;
    display: flex;
    align-items: flex-start;
    gap: 20px;
    transition: var(--transition);
}

.feature-item:hover {
    transform: translateY(-5px);
}

.feature-icon {
    background-color: var(--primary-color);
    color: var(--light-color);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.feature-icon i {
    font-size: 20px;
}

.feature-content h3 {
    margin-bottom: 10px;
}

/* Fees Section */
.fee-table-container {
    overflow-x: auto;
    margin-bottom: 30px;
}

.fee-table {
    width: 100%;
    border-collapse: collapse;
}

.fee-table th, .fee-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid var(--grey-color);
}

.fee-table th {
    background-color: var(--grey-color);
    font-weight: 600;
}

.fee-table tr:last-child td {
    border-bottom: none;
}

.fee-notes h3 {
    margin-bottom: 15px;
}

.fee-notes ul {
    padding-left: 20px;
    line-height: 1.6;
}

.fee-notes li {
    margin-bottom: 10px;
}

/* Security Section */
.security-features {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.security-item {
    background-color: var(--light-color);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 30px;
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.security-icon {
    background-color: var(--primary-color);
    color: var(--light-color);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.security-content h3 {
    margin-bottom: 10px;
}

.security-rating {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.security-rating h3 {
    margin-bottom: 15px;
}

.progress-bar {
    height: 10px;
    background-color: var(--grey-color);
    border-radius: 5px;
    margin-bottom: 15px;
    overflow: hidden;
}

.progress {
    height: 100%;
    background-color: var(--primary-color);
    border-radius: 5px;
}

/* Registration Steps */
.registration-steps {
    margin-bottom: 30px;
}

.step {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
}

.step:last-child {
    margin-bottom: 0;
}

.step-number {
    background-color: var(--primary-color);
    color: var(--light-color);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 18px;
    flex-shrink: 0;
}

.step-content h3 {
    margin-bottom: 10px;
}

.step-image {
    max-width: 100%;
    border-radius: var(--border-radius);
    margin-top: 15px;
    box-shadow: var(--box-shadow);
}

.verification-levels {
    margin-top: 15px;
    padding-left: 20px;
}

.verification-levels li {
    margin-bottom: 10px;
}

.registration-note {
    background-color: rgba(255, 193, 7, 0.1);
    border-left: 4px solid #ffc107;
    padding: 15px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.registration-note i {
    color: #ffc107;
    font-size: 20px;
}

/* Pros and Cons */
.pros-cons-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.pros-box, .cons-box {
    background-color: var(--light-color);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 30px;
}

.pros-box h3, .cons-box h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    color: var(--text-color);
}

.pros-box h3 i {
    color: #28a745;
}

.cons-box h3 i {
    color: #dc3545;
}

.pros-box ul, .cons-box ul {
    padding-left: 20px;
    line-height: 1.7;
}

.pros-box li, .cons-box li {
    margin-bottom: 10px;
}

.suitability h3 {
    margin-bottom: 15px;
}

.suitability-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.suitability-tag {
    background-color: var(--primary-color);
    color: var(--light-color);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
}

/* FAQ Section */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background-color: var(--light-color);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin-bottom: 15px;
    overflow: hidden;
}

.faq-question {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: var(--transition);
}

.faq-question:hover {
    background-color: rgba(0, 0, 0, 0.02);
}

.faq-question h3 {
    font-size: 18px;
    margin: 0;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    padding: 0 20px;
}

.faq-answer.active {
    max-height: 1000px;
    padding: 0 20px 20px;
}

.faq-answer p {
    line-height: 1.7;
}

.faq-answer ol, .faq-answer ul {
    padding-left: 20px;
    margin: 10px 0;
    line-height: 1.7;
}

.faq-answer li {
    margin-bottom: 5px;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    color: var(--light-color);
    padding: 60px 0;
    text-align: center;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: 32px;
    margin-bottom: 15px;
}

.cta-content p {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.9;
}

/* Latest Articles Section */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.article-card {
    background-color: var(--light-color);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
    transition: transform 0.3s ease;
}

.article-card:hover {
    transform: translateY(-5px);
}

.article-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.article-content {
    padding: 20px;
}

.article-date {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 10px;
}

.article-content h3 {
    margin-bottom: 10px;
    font-size: 18px;
    line-height: 1.4;
}

.article-content p {
    color: var(--text-secondary);
    margin-bottom: 15px;
    line-height: 1.6;
}

.read-more {
    color: var(--primary-color);
    font-weight: 500;
    text-decoration: none;
    display: inline-block;
    transition: color 0.3s ease;
}

.read-more:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

.view-all {
    color: var(--primary-color);
    font-weight: 500;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: color 0.3s ease;
}

.view-all:hover {
    color: var(--secondary-color);
}

.view-all i {
    font-size: 12px;
}

/* Random Articles Section */
.random-articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.random-article {
    background-color: var(--light-color);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 25px;
    transition: transform 0.3s ease, opacity 0.3s ease;
    display: flex;
    flex-direction: column;
    opacity: 1;
}

.random-article:hover {
    transform: translateY(-5px);
}

.random-article-tag {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--light-color);
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 15px;
    margin-bottom: 15px;
}

.random-article h3 {
    font-size: 18px;
    margin-bottom: 10px;
    line-height: 1.4;
}

.random-article p {
    color: var(--text-secondary);
    margin-bottom: 15px;
    line-height: 1.6;
    flex-grow: 1;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    color: var(--text-secondary);
    font-size: 13px;
    margin-bottom: 15px;
}

.article-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.outline-btn {
    display: inline-block;
    background-color: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    padding: 8px 16px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 500;
    text-align: center;
    transition: all 0.3s ease;
}

.outline-btn:hover {
    background-color: var(--primary-color);
    color: var(--light-color);
}

.refresh-btn {
    background-color: var(--light-color);
    border: 1px solid var(--grey-color);
    padding: 8px 16px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.refresh-btn:hover {
    background-color: var(--grey-color);
}

.refresh-btn i {
    font-size: 14px;
}

/* Responsive styles for articles sections */
@media (max-width: 992px) {
    .articles-grid, .random-articles-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .articles-grid, .random-articles-grid {
        grid-template-columns: 1fr;
    }
    
    .article-image img {
        height: 180px;
    }
}

/* Responsive Styles */
@media (max-width: 992px) {
    .pros-cons-container {
        grid-template-columns: 1fr;
    }
    
    .exchange-hero-content {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .exchange-cta {
        width: 100%;
        flex-direction: column;
    }
    
    .exchange-nav {
        overflow-x: auto;
    }
}

@media (max-width: 768px) {
    .exchange-section {
        padding: 40px 0;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .feature-item, .security-item {
        flex-direction: column;
    }
    
    .feature-icon, .security-icon {
        margin-bottom: 15px;
    }
    
    .step {
        flex-direction: column;
    }
    
    .step-number {
        margin-bottom: 15px;
    }
}

@media (max-width: 576px) {
    .exchange-hero {
        padding: 40px 0;
    }
    
    .exchange-intro h1 {
        font-size: 28px;
    }
    
    .key-metrics {
        grid-template-columns: 1fr;
    }
    
    .features-grid, .security-features {
        grid-template-columns: 1fr;
    }
    
    .faq-question h3 {
        font-size: 16px;
    }
    
    .cta-content h2 {
        font-size: 26px;
    }
    
    .cta-content p {
        font-size: 16px;
    }
} 