/* Wallet Card - Merhaba Yazısı ve Dinamik Açıklama Responsive Font */

/* Büyük ekranlar için (Desktop) */
.wallet-card .balance .left .title {
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.wallet-card .balance .left .total#aiMotivationMessage {
    font-size: 0.95rem;
    line-height: 1.5;
    font-weight: 500;
}

/* Orta büyük ekranlar için */
@media (max-width: 1200px) {
    .wallet-card .balance .left .title {
        font-size: 1rem;
    }

    .wallet-card .balance .left .total#aiMotivationMessage {
        font-size: 0.9rem;
        line-height: 1.45;
    }
}

/* Tablet için */
@media (max-width: 992px) {
    .wallet-card .balance .left .title {
        font-size: 0.95rem;
    }

    .wallet-card .balance .left .total#aiMotivationMessage {
        font-size: 0.85rem;
        line-height: 1.4;
    }
}

/* Mobil için */
@media (max-width: 768px) {
    .wallet-card .balance .left .title {
        font-size: 0.9rem;
    }

    .wallet-card .balance .left .total#aiMotivationMessage {
        font-size: 0.8rem;
        line-height: 1.35;
    }
}

/* Küçük ekranlar için */
@media (max-width: 576px) {
    .wallet-card .balance .left .title {
        font-size: 0.85rem;
    }

    .wallet-card .balance .left .total#aiMotivationMessage {
        font-size: 0.75rem;
        line-height: 1.35;
    }
}

/* Küçük telefonlar için */
@media (max-width: 480px) {
    .wallet-card .balance .left .title {
        font-size: 0.8rem;
    }

    .wallet-card .balance .left .total#aiMotivationMessage {
        font-size: 0.7rem;
        line-height: 1.3;
    }
}

/* Çok küçük ekranlar için */
@media (max-width: 375px) {
    .wallet-card .balance .left .title {
        font-size: 0.75rem;
    }

    .wallet-card .balance .left .total#aiMotivationMessage {
        font-size: 0.65rem;
        line-height: 1.3;
    }
}

/* iPhone SE ve benzeri çok küçük ekranlar */
@media (max-width: 320px) {
    .wallet-card .balance .left .title {
        font-size: 0.7rem;
    }

    .wallet-card .balance .left .total#aiMotivationMessage {
        font-size: 0.6rem;
        line-height: 1.25;
    }
}

/* Inline threshold slider styling */
#whaleThresholdSlider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #6c5ce7;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
#whaleThresholdSlider::-moz-range-thumb {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #6c5ce7;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* Whale alert transactions container with scroll */
#whaleTradesContainer.transactions {
    max-height: 400px;
    overflow-y: auto;
    overflow-x: hidden;
}

/* Remove link color from whale trade items */
.whale-trade-item {
    color: inherit !important;
    text-decoration: none !important;
    border-left: none !important;
    border: none !important;
}

.whale-trade-item::before,
.whale-trade-item::after {
    display: none !important;
}

.whale-trade-item:hover {
    color: inherit !important;
    border-left: none !important;
}

/* Whale alert animation */
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.whale-trade-item {
    animation: slideInRight 0.4s ease-out;
    padding: 8px 12px !important; /* Reduced height */
    min-height: auto !important;
    transition: all 0.3s ease;
}

.whale-trade-item.slide-out {
    animation: slideOutRight 0.4s ease-in forwards;
}

@keyframes slideOutRight {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(30px);
    }
}

.whale-trade-item .detail img {
    width: 28px !important; /* Smaller logo */
    height: 28px !important;
}

.whale-trade-item .detail p {
    font-size: 0.75rem !important; /* Smaller text */
    margin: 2px 0 0 0 !important;
}

.whale-trade-item .detail strong {
    font-size: 0.9rem !important;
}

/* Status indicator animations */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.whale-status-dot.connecting {
    background: #3498db !important;
    animation: pulse 1.5s ease-in-out infinite;
}

.whale-status-dot.connected {
    background: #27ae60 !important;
}

.whale-status-dot.disconnected {
    background: #e67e22 !important;
}

.whale-status-dot.error {
    background: #e74c3c !important;
}

/* Coin Selector Styling */
.coin-selector-container {
    display: flex;
    overflow-x: auto;
    white-space: nowrap;
    gap: 8px;
    padding-bottom: 8px; /* Space for scrollbar */
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
    scrollbar-width: thin; /* Firefox */
}

.coin-selector-container::-webkit-scrollbar {
    height: 4px;
}

.coin-selector-container::-webkit-scrollbar-track {
    background: rgba(0,0,0,0.05);
    border-radius: 4px;
}

.coin-selector-container::-webkit-scrollbar-thumb {
    background: rgba(108,92,231,0.3);
    border-radius: 4px;
}

.coin-selector-btn {
    display: flex;
    flex-direction: row; /* Horizontal layout */
    align-items: center;
    gap: 6px;
    padding: 6px 10px; /* Smaller padding */
    background: rgba(108,92,231,0.05); /* More faded background */
    border: 1px solid transparent;
    border-radius: 12px; /* Slightly less rounded */
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
}

.coin-selector-btn.active {
    border-color: rgba(108,92,231,0.3);
    background: rgba(108,92,231,0.15); /* Faded active state */
    box-shadow: none;
}

.coin-selector-btn:hover {
    background: rgba(108,92,231,0.1);
    transform: translateY(-1px);
}

.coin-selector-btn img {
    width: 20px; /* Smaller logo */
    height: 20px;
    border-radius: 50%;
    object-fit: cover;
}

.coin-selector-btn span {
    font-size: 0.75rem;
    font-weight: 500;
    color: #6c5ce7;
    opacity: 0.9;
}

/* Dark mode support */
body.dark-mode #whaleTradeChart {
    background: rgba(255,255,255,0.03) !important;
}

body.dark-mode .coin-selector-btn {
    background: rgba(255,255,255,0.05);
    color: #fff;
}

body.dark-mode #scrollLeftBtn,
body.dark-mode #scrollRightBtn {
    background: rgba(30,30,30,0.9) !important;
    border-color: rgba(255,255,255,0.1) !important;
    color: #fff !important;
}

@media (max-width: 768px) {
    #scrollLeftBtn, #scrollRightBtn {
        display: none !important;
    }
}
    background: rgba(255,255,255,0.05);
}

body.dark-mode .coin-selector-btn.active {
    background: rgba(108,92,231,0.2);
    border-color: rgba(108,92,231,0.4);
}

body.dark-mode .coin-selector-btn span {
    color: #a29bfe;
}

/* Highcharts Gauge CSS - Mobil Uyumlu */
/* Highcharts gauge container'ları */
#marketGauge, #altcoinGauge {
    margin: 0 auto;
}

/* Dark mode uyumluluğu */
.dark-mode .highcharts-container {
    filter: brightness(0.9);
}

.dark-mode .highcharts-axis-labels text {
    fill: #ccc !important;
}

/* Mobil optimizasyon */
@media (max-width: 576px) {
    #marketGauge, #altcoinGauge {
        height: 90px !important;
    }
}

/* WebView optimizasyon */
@media (max-width: 480px) {
    #marketGauge, #altcoinGauge {
        height: 80px !important;
    }
}

/* Yearly Upgrade Modal Styles */
.yearly-upgrade-modal .modal-content {
    border: none;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(123, 110, 255, 0.3);
}

.yearly-upgrade-modal .modal-header {
    background: linear-gradient(135deg, #7B6EFF 0%, #9C27B0 50%, #667eea 100%);
    border-bottom: none;
    padding: 20px 25px;
}

.yearly-upgrade-modal .modal-header h5 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
}

.yearly-upgrade-modal .modal-body {
    padding: 30px;
    background: linear-gradient(180deg, #ffffff 0%, #f8f9ff 100%);
}

.yearly-upgrade-modal .savings-badge {
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #333;
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 700;
    display: inline-block;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
    animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% { transform: scale(1); box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4); }
    50% { transform: scale(1.02); box-shadow: 0 6px 20px rgba(255, 215, 0, 0.6); }
}

.yearly-upgrade-modal .price-container {
    margin: 25px 0;
}

.yearly-upgrade-modal .original-price {
    font-size: 1.2rem;
    color: #999;
    text-decoration: line-through;
    margin-bottom: 5px;
}

.yearly-upgrade-modal .discount-price {
    font-size: 4rem;
    font-weight: 900;
    background: linear-gradient(135deg, #7B6EFF, #9C27B0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.yearly-upgrade-modal .discount-price span {
    font-size: 1.5rem;
}

.yearly-upgrade-modal .period-text {
    font-size: 1rem;
    color: #666;
    margin-top: 5px;
}

.yearly-upgrade-modal .features-list {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 20px;
    margin: 20px 0;
    text-align: left;
}

.yearly-upgrade-modal .feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 0.95rem;
}

.yearly-upgrade-modal .feature-item:last-child {
    margin-bottom: 0;
}

.yearly-upgrade-modal .feature-item ion-icon {
    color: #28a745;
    font-size: 1.4rem;
    flex-shrink: 0;
}

.yearly-upgrade-modal .countdown-box {
    background: linear-gradient(135deg, #fff3cd, #ffeeba);
    border-radius: 12px;
    padding: 15px;
    margin: 20px 0;
}

.yearly-upgrade-modal .countdown-label {
    font-size: 0.85rem;
    color: #856404;
    margin-bottom: 5px;
}

.yearly-upgrade-modal .countdown-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: #856404;
}

.yearly-upgrade-modal .action-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.yearly-upgrade-modal .btn-primary-upgrade {
    background: linear-gradient(135deg, #7B6EFF, #9C27B0);
    border: none;
    padding: 16px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(123, 110, 255, 0.4);
}

.yearly-upgrade-modal .btn-primary-upgrade:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(123, 110, 255, 0.5);
}

.yearly-upgrade-modal .btn-secondary-upgrade {
    background: transparent;
    border: 2px solid #ddd;
    padding: 14px;
    border-radius: 12px;
    font-weight: 600;
    color: #666;
    transition: all 0.3s ease;
}

.yearly-upgrade-modal .btn-secondary-upgrade:hover {
    border-color: #7B6EFF;
    color: #7B6EFF;
}

.yearly-upgrade-modal .dismiss-text {
    font-size: 0.8rem;
    color: #999;
    margin-top: 15px;
}

/* Dark mode support */
body.dark-mode .yearly-upgrade-modal .modal-body {
    background: linear-gradient(180deg, #1a1a2e 0%, #16213e 100%);
}

body.dark-mode .yearly-upgrade-modal .features-list {
    background: rgba(255, 255, 255, 0.05);
}

body.dark-mode .yearly-upgrade-modal .feature-item {
    color: #fff;
}

body.dark-mode .yearly-upgrade-modal .period-text {
    color: #aaa;
}

body.dark-mode .yearly-upgrade-modal .btn-secondary-upgrade {
    border-color: rgba(255, 255, 255, 0.2);
    color: #aaa;
}

body.dark-mode .yearly-upgrade-modal .dismiss-text {
    color: #666;
}

/* Mobile responsive */
@media (max-width: 576px) {
    .yearly-upgrade-modal .modal-body {
        padding: 20px;
    }

    .yearly-upgrade-modal .discount-price {
        font-size: 3rem;
    }

    .yearly-upgrade-modal .discount-price span {
        font-size: 1.2rem;
    }

    .yearly-upgrade-modal .features-list {
        padding: 15px;
    }

    .yearly-upgrade-modal .feature-item {
        font-size: 0.9rem;
    }
}
