/**
 * CRYPTO TEK AI - TRADING IDEAS
 * Ultra Modern, Glassmorphism Design
 */

.ideas-container {
    padding: 20px 16px 100px;
    background: linear-gradient(135deg, #0a0e1a 0%, #1a1f2e 100%);
    min-height: 100vh;
}

/* ==================== HEADER ==================== */

.ideas-header {
    text-align: center;
    margin-bottom: 24px;
    padding: 20px;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.1) 0%, rgba(59, 130, 246, 0.1) 100%);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.ideas-header::before {
    display: none;
}

.ideas-header h1 {
    font-size: 28px;
    font-weight: 800;
    background: linear-gradient(135deg, #FF6B35 0%, #3B82F6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
    position: relative;
    z-index: 1;
}

.ideas-header p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    position: relative;
    z-index: 1;
}

/* ==================== SEARCH BAR ==================== */

.ideas-search {
    margin-bottom: 24px;
    position: relative;
}

.ideas-search-wrapper {
    position: relative;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    padding: 4px;
    /* backdrop-filter removed */
    transition: all 0.3s ease;
}

.ideas-search-wrapper:focus-within {
    border-color: #FF6B35;
    box-shadow: 0 0 20px rgba(255, 107, 53, 0.3);
}

.ideas-search-input {
    width: 100%;
    padding: 14px 50px 14px 50px;
    background: transparent;
    border: none;
    color: white;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.ideas-search-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
    text-transform: none;
    letter-spacing: normal;
}

.ideas-search-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.5);
    font-size: 18px;
    pointer-events: none;
}

.ideas-search-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    padding: 10px 20px;
    background: linear-gradient(135deg, #FF6B35 0%, #FF8C42 100%);
    border: none;
    border-radius: 12px;
    color: white;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.ideas-search-btn:active {
    transform: translateY(-50%) scale(0.95);
}

/* ==================== QUICK SYMBOLS ==================== */

.ideas-quick-symbols {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 12px;
    margin-bottom: 24px;
    scrollbar-width: none;
}

.ideas-quick-symbols::-webkit-scrollbar {
    display: none;
}

.quick-symbol-btn {
    flex-shrink: 0;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s ease;
    /* backdrop-filter removed */
    white-space: nowrap;
}

.quick-symbol-btn:hover,
.quick-symbol-btn.active {
    background: linear-gradient(135deg, #FF6B35 0%, #FF8C42 100%);
    border-color: #FF6B35;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.4);
}

/* ==================== CHART CARD ==================== */

.ideas-chart-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 20px;
    margin-bottom: 24px;
    /* backdrop-filter removed */
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.ideas-chart-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #FF6B35 0%, #3B82F6 100%);
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.chart-symbol {
    display: flex;
    align-items: center;
    gap: 12px;
}

.chart-symbol h2 {
    font-size: 24px;
    font-weight: 800;
    color: white;
    margin: 0;
}

.chart-price-badge {
    padding: 8px 16px;
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.2) 0%, rgba(0, 200, 100, 0.2) 100%);
    border: 1px solid rgba(0, 255, 136, 0.3);
    border-radius: 12px;
    color: #00ff88;
    font-weight: 700;
    font-size: 14px;
    white-space: nowrap;
}

.chart-price-badge.negative {
    background: linear-gradient(135deg, rgba(255, 59, 105, 0.2) 0%, rgba(255, 20, 80, 0.2) 100%);
    border-color: rgba(255, 59, 105, 0.3);
    color: #ff3b69;
}

.chart-actions {
    display: flex;
    gap: 8px;
}

.chart-action-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
}

.chart-action-btn:hover {
    background: rgba(255, 107, 53, 0.2);
    border-color: #FF6B35;
    color: #FF6B35;
    transform: scale(1.1);
}

.chart-action-btn:active {
    transform: scale(0.95);
}

/* Chart Image Container */
.chart-image-wrapper {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 20px;
    background: #0d1117;
    transition: all 0.3s ease;
    cursor: pointer;
}

.chart-image-wrapper:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 24px rgba(255, 107, 53, 0.3);
}

.chart-image-wrapper:active {
    transform: scale(0.98);
}

.chart-image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 16px;
    transition: opacity 0.3s ease;
}

.chart-image-wrapper:hover img {
    opacity: 0.95;
}

/* Zoom Hint */
.chart-zoom-hint {
    position: absolute;
    bottom: 16px;
    right: 16px;
    background: rgba(0, 0, 0, 0.7);
    /* backdrop-filter removed */
    padding: 8px 16px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: white;
    font-size: 13px;
    font-weight: 600;
    opacity: 0.8;
    transition: all 0.3s ease;
    pointer-events: none;
}

.chart-zoom-hint i {
    font-size: 16px;
    color: #FF6B35;
}

.chart-image-wrapper:hover .chart-zoom-hint {
    opacity: 1;
    transform: scale(1.05);
    background: rgba(255, 107, 53, 0.2);
    border: 1px solid rgba(255, 107, 53, 0.5);
}

.chart-loading {
    width: 100%;
    height: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 16px;
}

.chart-loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-top-color: #FF6B35;
    border-radius: 50%;
    margin-bottom: 16px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.chart-loading-text {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    font-weight: 600;
}

/* ==================== ANALYSIS SECTION ==================== */

.ideas-analysis {
    margin-top: 20px;
}

.analysis-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    overflow-x: auto;
    scrollbar-width: none;
}

.analysis-tabs::-webkit-scrollbar {
    display: none;
}

.analysis-tab {
    flex-shrink: 0;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.analysis-tab.active {
    background: linear-gradient(135deg, #FF6B35 0%, #FF8C42 100%);
    border-color: #FF6B35;
    color: white;
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.4);
}

.analysis-content {
    display: none;
}

.analysis-content.active {
    display: block;
}

/* AI Analysis Card */
.ai-analysis-card {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 16px;
}

.ai-analysis-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.ai-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #3B82F6 0%, #8B5CF6 100%);
    border-radius: 12px;
    font-size: 20px;
}

.ai-analysis-header h3 {
    font-size: 18px;
    font-weight: 700;
    color: white;
    margin: 0;
}

.ai-analysis-content p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 8px;
}

.ai-analysis-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ai-analysis-content li {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    line-height: 1.8;
    padding-left: 24px;
    position: relative;
    margin-bottom: 8px;
}

.ai-analysis-content li::before {
    content: '•';
    position: absolute;
    left: 8px;
    color: #3B82F6;
    font-size: 18px;
    font-weight: bold;
}

/* Stats Grid */
.ideas-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 16px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 16px;
    text-align: center;
}

.stat-label {
    color: rgba(255, 255, 255, 0.5);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.stat-value {
    color: white;
    font-size: 20px;
    font-weight: 800;
}

.stat-value.positive {
    color: #00ff88;
}

.stat-value.negative {
    color: #ff3b69;
}

.stat-value.neutral {
    color: #fbbf24;
}

/* ==================== EMPTY STATE ==================== */

.ideas-empty-state {
    text-align: center;
    padding: 60px 20px;
    margin-top: 40px;
}

.empty-icon {
    font-size: 80px;
    margin-bottom: 20px;
    opacity: 0.3;
}

.ideas-empty-state h3 {
    font-size: 20px;
    font-weight: 700;
    color: white;
    margin-bottom: 12px;
}

.ideas-empty-state p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    line-height: 1.6;
}

/* ==================== ERROR STATE ==================== */

.ideas-error {
    background: rgba(255, 59, 105, 0.1);
    border: 1px solid rgba(255, 59, 105, 0.3);
    border-radius: 16px;
    padding: 20px;
    text-align: center;
    margin-top: 20px;
}

.ideas-error i {
    font-size: 48px;
    color: #ff3b69;
    margin-bottom: 16px;
}

.ideas-error h3 {
    font-size: 18px;
    font-weight: 700;
    color: white;
    margin-bottom: 8px;
}

.ideas-error p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

/* ==================== RESPONSIVE ==================== */

@media (max-width: 768px) {
    .ideas-container {
        padding: 16px 12px 100px;
    }

    .ideas-header h1 {
        font-size: 24px;
    }

    .chart-symbol h2 {
        font-size: 20px;
    }

    .ideas-stats-grid {
        grid-template-columns: 1fr;
    }
}

/* ==================== FULLSCREEN CHART OVERLAY ==================== */

.ideas-fullscreen-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.98);
    z-index: 100000;
    display: flex;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.ideas-fullscreen-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Fullscreen Header */
.fullscreen-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: rgba(13, 17, 23, 0.95);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

.fullscreen-title {
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
    font-size: 18px;
    font-weight: 700;
}

.fullscreen-title i {
    color: #FF6B35;
    font-size: 20px;
}

.fullscreen-close-btn {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(244, 67, 54, 0.2);
    border: 1px solid rgba(244, 67, 54, 0.4);
    border-radius: 50%;
    color: #f44336;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.fullscreen-close-btn:active {
    transform: scale(0.9);
    background: rgba(244, 67, 54, 0.4);
}

/* Image Container */
.fullscreen-image-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 20px;
    touch-action: none;
}

.fullscreen-image-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
    cursor: zoom-in;
    transition: transform 0.1s ease-out;
    touch-action: none;
    user-select: none;
    -webkit-user-drag: none;
}

/* Zoom Controls */
.fullscreen-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 20px;
    background: rgba(13, 17, 23, 0.95);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

.zoom-btn {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 107, 53, 0.15);
    border: 1px solid rgba(255, 107, 53, 0.3);
    border-radius: 12px;
    color: #FF6B35;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.zoom-btn:active {
    transform: scale(0.9);
    background: rgba(255, 107, 53, 0.3);
}

.zoom-level {
    min-width: 60px;
    text-align: center;
    color: white;
    font-size: 14px;
    font-weight: 700;
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
}

/* Fullscreen Hint */
.fullscreen-hint {
    text-align: center;
    padding: 12px 20px;
    background: rgba(59, 130, 246, 0.1);
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
    border-top: 1px solid rgba(59, 130, 246, 0.2);
    flex-shrink: 0;
}

.fullscreen-hint i {
    color: #3B82F6;
    margin-right: 6px;
}

/* Chart Fullscreen Hint (in card) */
.chart-fullscreen-hint {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.75);
    padding: 8px 14px;
    border-radius: 10px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    gap: 6px;
    pointer-events: none;
    transition: all 0.3s ease;
}

.chart-fullscreen-hint i {
    color: #FF6B35;
}

.chart-image-wrapper:hover .chart-fullscreen-hint {
    background: rgba(255, 107, 53, 0.3);
    border: 1px solid rgba(255, 107, 53, 0.5);
}

/* ==================== EXCHANGE SELECTOR ==================== */

.ideas-exchange-selector {
    margin-bottom: 20px;
}

.exchange-selector-label {
    display: block;
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

.exchange-buttons {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 8px;
    scrollbar-width: none;
}

.exchange-buttons::-webkit-scrollbar {
    display: none;
}

.exchange-btn {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.exchange-btn img {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    object-fit: contain;
}

.exchange-btn:hover {
    background: rgba(255, 107, 53, 0.1);
    border-color: rgba(255, 107, 53, 0.3);
    color: white;
}

.exchange-btn.active {
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.2) 0%, rgba(255, 140, 66, 0.2) 100%);
    border-color: #FF6B35;
    color: white;
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

.exchange-btn.active img {
    filter: drop-shadow(0 0 4px rgba(255, 107, 53, 0.5));
}

/* ==================== AUTOCOMPLETE DROPDOWN ==================== */

.ideas-autocomplete-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: rgba(26, 31, 46, 0.98);
    border: 1px solid rgba(255, 107, 53, 0.3);
    border-radius: 16px;
    max-height: 320px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    display: none;
}

.ideas-autocomplete-dropdown.active {
    display: block;
    animation: slideDown 0.2s ease;
}

.ideas-search-autocomplete {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: rgba(26, 31, 46, 0.98);
    border: 1px solid rgba(255, 107, 53, 0.3);
    border-radius: 16px;
    max-height: 320px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    display: none;
}

.ideas-search-autocomplete.active {
    display: block;
    animation: slideDown 0.2s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ideas-search-autocomplete::-webkit-scrollbar {
    width: 6px;
}

.ideas-search-autocomplete::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
}

.ideas-search-autocomplete::-webkit-scrollbar-thumb {
    background: rgba(255, 107, 53, 0.4);
    border-radius: 3px;
}

.autocomplete-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.autocomplete-item:last-child {
    border-bottom: none;
}

.autocomplete-item:hover,
.autocomplete-item.selected {
    background: rgba(255, 107, 53, 0.15);
}

.autocomplete-item.selected {
    border-left: 3px solid #FF6B35;
}

.autocomplete-item-symbol {
    font-size: 15px;
    font-weight: 700;
    color: white;
    letter-spacing: 0.5px;
}

.autocomplete-item-exchange {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    padding: 4px 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
}

.autocomplete-results {
    display: none;
}

.autocomplete-results .coin-symbol {
    font-size: 15px;
    font-weight: 700;
    color: white;
    letter-spacing: 0.5px;
}

.autocomplete-results .coin-pair {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
}

.autocomplete-loading,
.autocomplete-empty {
    display: none;
    padding: 20px;
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.autocomplete-loading i {
    margin-right: 8px;
    animation: spin 1s linear infinite;
}

.autocomplete-empty i {
    display: block;
    font-size: 32px;
    margin-bottom: 10px;
    opacity: 0.3;
}

/* ==================== ANIMATIONS ==================== */
/* All animations removed for performance */

.fade-in {
}

.slide-up {
}
