/* Crypto Cards Styles */
.crypto-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 24px;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
    height: 100%;
    display: flex;
    gap: 20px;
    position: relative;
}

/* CoinGecko Attribution Styles */
.coingecko-attribution-logo {
    transition: opacity 0.2s ease;
}

.coingecko-attribution-logo:hover {
    opacity: 1 !important;
}

.crypto-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.crypto-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.crypto-chart-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 200px;
}

.crypto-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.crypto-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    margin-right: 16px;
    object-fit: cover;
}

.crypto-name {
    flex: 1;
}

.crypto-name h4 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: #2c3e50;
}

.crypto-symbol {
    font-size: 0.875rem;
    color: #6c757d;
    text-transform: uppercase;
    margin: 0;
}

.crypto-price {
    font-size: 1.75rem;
    font-weight: 500;
    color: #333;
    margin-bottom: 16px;
}

.crypto-changes {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 8px;
    margin-bottom: 16px;
}

.change-item {
    text-align: center;
    padding: 8px;
    border-radius: 8px;
    background: #f8f9fa;
    cursor: default;
    transition: none;
    border: 2px solid transparent;
}

.change-item.active {
    background: #f8f9fa;
    color: inherit;
    border-color: transparent;
}

.change-item.active .change-label {
    color: #6c757d;
}

.change-label {
    font-size: 0.75rem;
    color: #6c757d;
    margin-bottom: 4px;
    display: block;
}

.change-value {
    font-size: 0.875rem;
    font-weight: 600;
}

.change-positive {
    color: #28a745;
}

.change-negative {
    color: #dc3545;
}

.change-neutral {
    color: #6c757d;
}

.crypto-market-cap {
    font-size: 1.0rem;
    color: #45515c;
    text-align: center;
    padding-top: 16px;
    border-top: 1px solid #e9ecef;
    margin-top: auto;
}

.crypto-summary {
    padding-right: 10px;
}

.crypto-volume {
    font-size: 0.875rem;
    color: #6c757d;
    text-align: right;
    margin-top: 8px;
}

.crypto-chart {
    width: 100%;
    height: 150px;
    background: #f8f9fa;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    font-size: 0.875rem;
    margin-bottom: 10px;
}

.period-buttons {
    display: flex;
    gap: 5px;
    margin-bottom: 10px;
}

.period-btn {
    padding: 4px 8px;
    border: 1px solid #dee2e6;
    background: #fff;
    border-radius: 4px;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.period-btn:hover {
    background: #C3F53C;
    color: #2c3e50;
}

.period-btn.active {
    background: #C3F53C;
    color: #2c3e50;
    border-color: #C3F53C;
}

.crypto-rank {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #C3F53C;
    color: #2c3e50;
    border-radius: 12px;
    padding: 4px 8px;
    font-size: 0.75rem;
    font-weight: 600;
}

.crypto-card {
    position: relative;
}

@media (max-width: 768px) {
    .crypto-card {
        flex-direction: column;
        padding: 16px;
        gap: 15px;
        position: relative;
    }
    
    .crypto-header {
        margin-bottom: 12px;
    }
    
    .crypto-volume {
        position: absolute;
        top: 16px;
        right: 16px;
        font-size: 14px !important;
        text-align: right;
        margin-top: 0;
        margin-right: 0;
        line-height: 1.2;
    }
    
    .crypto-volume-usd {
        font-size: 13px !important;
        margin-top: 2px;
    }
    
    .crypto-changes {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        justify-content: space-between;
        margin-bottom: 16px;
    }
    
    .change-item {
        flex: 1;
        min-width: calc(33.333% - 6px);
        padding: 8px 6px;
        text-align: center;
    }
    
    .crypto-icon {
        width: 40px;
        height: 40px;
        margin-right: 12px;
    }
    
    .crypto-name h4 {
        font-size: 1.1rem;
    }
    
    .crypto-price {
        font-size: 1.5rem;
    }
    
    .crypto-chart-container {
        min-height: 120px;
    }
    
    .crypto-chart {
        height: 100px;
    }
    
    .change-label {
        font-size: 12px !important;
    }
    
    .change-value {
        font-size: 13px !important;
    }
}

@media (max-width: 480px) {
    .investment-section.bg-custom-color {
        padding-top: 15px !important;
    }
    
    .coingecko-attribution-logo {
        height: 18px !important;
    }
    
    .crypto-header {
        margin-bottom: 8px;
    }
    
    .crypto-changes {
        gap: 6px;
    }
    
    .change-item {
        min-width: calc(33.333% - 4px);
        padding: 6px 4px;
        font-size: 0.85rem;
    }
    
    .crypto-card {
        padding: 12px;
    }
    
    .crypto-volume {
        top: 12px;
        right: 12px;
        font-size: 13px !important;
    }
    
    .crypto-volume-usd {
        font-size: 12px !important;
    }
    
    .change-label {
        font-size: 11px !important;
    }
    
    .change-value {
        font-size: 12px !important;
    }
    
    .crypto-card .crypto-price .crypto-price-us {
        font-size: 0.75rem !important;
    }
    
    .crypto-volume-usd {
        font-size: 0.75rem;
    }
}

.spinner-border {
    width: 3rem;
    height: 3rem;
}

#refresh-btn {
    background-color: transparent !important;
    border-color: transparent !important;
    color: #70a300 !important;
}

#refresh-btn:hover {
    background-color: #C3F53C !important;
    border-color: #C3F53C !important;
    color: #2c3e50 !important;
}

.section-title {
    text-align: center;
    margin: 40px 0 20px;
    color: #006E89 !important;
    position: relative;
    font-family: 'Montserrat', sans-serif;
}
.section-title h2 {
    font-size: 1.8rem;
    color: #006E89 !important;
    font-weight: 500;
    font-family: 'Montserrat', sans-serif;
}
.section-title p {
    font-size: 1rem;
    color: #006E89 !important;
    margin-bottom: 0;
    font-family: 'Montserrat', sans-serif;
}

/* Estilos para valores em dólar */
.crypto-card .crypto-price .crypto-price-us {
    font-size: 1.3rem !important;
    font-weight: 500 !important;
    color: #45515c !important;
    margin-top: 0 !important;
    font-weight: 400 !important;
    display: block !important;
}

.crypto-volume-usd {
    font-size: 0.875rem;
    color: #45515c;
    margin-top: 4px;
    text-align: right;
}

@media (max-width: 768px) {
    .investment-section.bg-custom-color {
        padding-top: 20px !important;
    }
    
    .coingecko-attribution-logo {
        height: 20px !important;
    }
    
    .crypto-card .crypto-price .crypto-price-us {
        font-size: 0.8rem !important;
    }
    
    .crypto-volume-usd {
        font-size: 0.8rem;
    }
}