/**
 * CHART MODAL COMPONENT STYLES
 * Trend ve Fikir Analiz Grafiği Modal
 */

.chart-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 100001;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    overflow-y: auto;
    padding: 10px;
}

.chart-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.chart-modal-container {
    background: linear-gradient(135deg, #1a1d29 0%, #0d1117 100%);
    border-radius: 16px;
    max-width: 95%;
    width: 100%;
    max-height: 95vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transform: scale(0.9) translateY(20px);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
}

.chart-modal-overlay.active .chart-modal-container {
    transform: scale(1) translateY(0);
}

/* Header */
.chart-modal-header {
    position: sticky;
    top: 0;
    background: rgba(13, 17, 23, 0.95);
    backdrop-filter: blur(10px);
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10;
}

.chart-modal-title {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.chart-modal-title h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 8px;
}

.chart-modal-title .subtitle {
    font-size: 12px;
    color: #8b949e;
    font-weight: 400;
}

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

.chart-modal-close:hover {
    background: rgba(244, 67, 54, 0.25);
    transform: rotate(90deg);
}

/* Body */
.chart-modal-body {
    padding: 20px;
}

/* Chart Image Container */
.chart-image-container {
    background: #0a0e1a;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    cursor: zoom-in;
    transition: all 0.3s ease;
}

.chart-image-container:hover {
    border-color: rgba(255, 107, 53, 0.3);
    box-shadow: 0 0 20px rgba(255, 107, 53, 0.2);
}

.chart-image-container img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

/* Zoom hint removed - using pinch-to-zoom instead */

/* Fullscreen zoom view with pinch-to-zoom */
.chart-zoom-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.98);
    z-index: 99999;
    display: none;
    visibility: hidden;
    align-items: center;
    justify-content: center;
    cursor: default;
    padding: 20px;
    overflow: hidden;
}

.chart-zoom-overlay.active {
    display: flex;
    visibility: visible;
}

.chart-zoom-overlay img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.8);
    touch-action: none;
    transition: transform 0.2s ease-out;
    cursor: grab;
}

.chart-zoom-overlay img:active {
    cursor: grabbing;
}

.chart-zoom-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(244, 67, 54, 0.9);
    border: none;
    color: #fff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100000;
}

.chart-zoom-close:hover {
    background: rgba(244, 67, 54, 1);
    transform: rotate(90deg);
}

.chart-zoom-download {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #4CAF50, #2196F3);
    border: none;
    color: #fff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100000;
    box-shadow: 0 4px 20px rgba(76, 175, 80, 0.4);
}

.chart-zoom-download:hover {
    transform: translateX(-50%) scale(1.1);
    box-shadow: 0 6px 30px rgba(76, 175, 80, 0.6);
}

.chart-zoom-download:active {
    transform: translateX(-50%) scale(0.95);
}

.chart-loading {
    padding: 60px 20px;
    text-align: center;
    color: #8b949e;
}

.chart-loading i {
    font-size: 48px;
    color: #FF6B35;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.chart-loading p {
    margin: 16px 0 0;
    font-size: 14px;
}

/* Chart Info Section */
.chart-info-section {
    background: rgba(255, 107, 53, 0.05);
    border: 1px solid rgba(255, 107, 53, 0.2);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
}

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

.chart-symbol {
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
}

.chart-price-info {
    text-align: right;
}

.chart-price {
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
}

.chart-change {
    font-size: 14px;
    font-weight: 600;
    margin-top: 4px;
}

.chart-change.positive {
    color: #00ff88;
}

.chart-change.negative {
    color: #ff3b69;
}

.chart-trend {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
}

.chart-trend-icon {
    font-size: 24px;
}

.chart-trend-text {
    font-size: 15px;
    font-weight: 600;
    color: #ffffff;
}

/* AI Analysis Section */
.chart-ai-section {
    background: rgba(33, 150, 243, 0.05);
    border: 1px solid rgba(33, 150, 243, 0.2);
    border-radius: 12px;
    padding: 16px;
}

.chart-ai-section h3 {
    margin: 0 0 12px;
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 8px;
}

.chart-ai-section h3 i {
    color: #2196F3;
}

.chart-ai-content {
    background: rgba(0, 0, 0, 0.3);
    padding: 14px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.7;
    color: #c9d1d9;
    white-space: pre-line;
}

/* Chart Layers Info */
.chart-layers {
    margin-top: 12px;
    padding: 12px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    font-size: 13px;
    color: #8b949e;
}

/* Share Button */
.chart-share-section {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-share-chart {
    width: 100%;
    padding: 16px 20px;
    background: linear-gradient(135deg, #FF6B35, #F7931E);
    border: none;
    border-radius: 12px;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.btn-share-chart:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
}

.btn-share-chart:active {
    transform: translateY(0);
}

.btn-share-chart i {
    font-size: 18px;
}

/* Share Options Menu */
.share-options {
    display: none;
    margin-top: 12px;
    padding: 12px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.share-options.active {
    display: block;
    animation: slideDown 0.3s ease;
}

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

.share-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.share-option:last-child {
    margin-bottom: 0;
}

.share-option:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 107, 53, 0.3);
    transform: translateX(5px);
}

.share-option i {
    font-size: 24px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

.share-option .share-label {
    flex: 1;
}

.share-option .share-label strong {
    display: block;
    font-size: 14px;
    color: #fff;
    margin-bottom: 2px;
}

.share-option .share-label span {
    font-size: 12px;
    color: #8b949e;
}

/* Social media colors */
.share-twitter i {
    background: #1DA1F2;
}

.share-telegram i {
    background: #0088cc;
}

.share-whatsapp i {
    background: #25D366;
}

.share-copy i {
    background: #6c757d;
}

/* Responsive */
@media (max-width: 768px) {
    .chart-modal-container {
        max-width: 100%;
        max-height: 100vh;
        border-radius: 0;
    }

    .chart-modal-header {
        padding: 12px 16px;
    }

    .chart-modal-title h2 {
        font-size: 16px;
    }

    .chart-modal-body {
        padding: 16px;
    }

    .chart-symbol {
        font-size: 18px;
    }

    .chart-price {
        font-size: 16px;
    }
}

/* Error State */
.chart-error {
    padding: 40px 20px;
    text-align: center;
    color: #f44336;
}

.chart-error i {
    font-size: 48px;
    margin-bottom: 16px;
}

.chart-error p {
    font-size: 14px;
    color: #8b949e;
    margin-top: 8px;
}
