/* Chart Analysis Page Styles */
/* This file contains additional styles specific to the chart analysis page */

.chart-analysis-content {
    padding: 120px 0 80px;
}

.chart-hero {
    text-align: center;
    margin-bottom: 3rem;
}

.chart-hero h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    margin-bottom: 1rem;
}

.chart-hero p {
    font-size: 1.2rem;
    color: #e0e0e0;
    max-width: 800px;
    margin: 0 auto 2rem;
    line-height: 1.8;
}

/* How it works section */
.how-it-works {
    padding: 80px 0;
}

.how-it-works .section-title {
    font-size: clamp(2rem, 5vw, 3rem);
    text-align: center;
    margin-bottom: 1rem;
}

.how-it-works .section-description {
    font-size: 1.1rem;
    color: #e0e0e0;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
    line-height: 1.8;
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.step {
    text-align: center;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.step:hover {
    background: rgba(15, 15, 35, 0.4);
    border-color: rgba(100, 255, 218, 0.4);
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.step-number {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #64ffda, #3f51b5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 1.5rem;
    color: #000000;
}

.step h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: #ffffff;
}

.step p {
    color: #e0e0e0;
    line-height: 1.6;
}

/* Upload Container */
.upload-container {
    background: rgba(15, 15, 35, 0.3);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(100, 255, 218, 0.2);
    border-radius: 20px;
    padding: 2.5rem;
    margin: 2rem 0;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(100, 255, 218, 0.1);
    text-align: center;
}

.upload-area {
    border: 2px dashed rgba(100, 255, 218, 0.3);
    border-radius: 20px;
    padding: 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 1.5rem;
    position: relative;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: rgba(15, 15, 35, 0.4);
}

.upload-area:hover {
    border-color: #64ffda;
    background: rgba(15, 15, 35, 0.6);
}

.upload-area.active {
    border-color: #64ffda;
    background: rgba(15, 15, 35, 0.6);
}

.upload-icon {
    font-size: 4rem;
    color: #64ffda;
    margin-bottom: 1.5rem;
}

.upload-text {
    font-size: 1.1rem;
    color: #e0e0e0;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.btn-group {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem 2rem;
    background: rgba(15, 15, 35, 0.4);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(100, 255, 218, 0.3);
    border-radius: 50px;
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.4s ease;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    position: relative;
    overflow: hidden;
}

.btn:hover {
    background: linear-gradient(135deg, #64ffda, #3f51b5);
    border: 1px solid rgba(100, 255, 218, 0.5);
    box-shadow: 0 8px 30px rgba(100, 255, 218, 0.4);
    transform: translateY(-2px);
    color: #000000;
}

.btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-loader {
    display: none;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.btn-loader.show {
    display: inline-block;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.image-preview {
    max-width: 100%;
    max-height: 250px;
    border-radius: 15px;
    margin: 1rem 0;
    display: none;
}

.close-preview {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1rem;
    display: none;
}

.error-message {
    color: #ff6b6b;
    margin-top: 1rem;
    display: none;
    padding: 1rem;
    background: rgba(255, 107, 107, 0.1);
    border-radius: 10px;
    border: 1px solid rgba(255, 107, 107, 0.3);
}

.loader {
    display: none;
    width: 50px;
    height: 50px;
    border: 4px solid rgba(100, 255, 218, 0.3);
    border-top: 4px solid #64ffda;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 2rem auto;
}

/* Results Container */
.results-container {
    display: none;
    background: rgba(15, 15, 35, 0.3);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(100, 255, 218, 0.2);
    border-radius: 20px;
    padding: 2.5rem;
    margin: 2rem 0;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(100, 255, 218, 0.1);
}

.results-container.show {
    display: block;
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(100, 255, 218, 0.2);
}

.results-title {
    font-size: 1.8rem;
    margin: 0;
}

.chart-header {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    align-items: center;
    flex-wrap: wrap;
}

.chart-image-container {
    width: 120px;
    height: 120px;
    border-radius: 15px;
    overflow: hidden;
    flex-shrink: 0;
    border: 2px solid rgba(100, 255, 218, 0.3);
}

.chart-result-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.chart-info h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.chart-info p {
    color: #e0e0e0;
    margin-bottom: 0.5rem;
}

.market-indicator {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.bullish {
    background: rgba(76, 175, 80, 0.2);
    color: #4CAF50;
    border: 1px solid rgba(76, 175, 80, 0.4);
}

.bearish {
    background: rgba(244, 67, 54, 0.2);
    color: #F44336;
    border: 1px solid rgba(244, 67, 54, 0.4);
}

.neutral {
    background: rgba(158, 158, 158, 0.2);
    color: #9E9E9E;
    border: 1px solid rgba(158, 158, 158, 0.4);
}

.analysis-box {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border-left: 3px solid #64ffda;
}

.analysis-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.analysis-title {
    font-size: 1.3rem;
    margin: 0;
    color: #64ffda;
}

.price-tag {
    font-size: 1.2rem;
    font-weight: 600;
    color: #64ffda;
}

.analytics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.analytics-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: 15px;
    display: flex;
    align-items: center;
    gap: 1rem;
    border: 1px solid rgba(100, 255, 218, 0.1);
    transition: all 0.3s ease;
}

.analytics-item:hover {
    border-color: rgba(100, 255, 218, 0.3);
    transform: translateY(-2px);
}

.analytics-icon {
    font-size: 2rem;
    color: #64ffda;
}

.analytics-content h4 {
    font-size: 1.1rem;
    margin: 0 0 0.5rem 0;
    color: #64ffda;
}

.analytics-content p {
    margin: 0;
    color: #e0e0e0;
    font-size: 0.95rem;
    line-height: 1.5;
}

.levels-table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    overflow: hidden;
}

.levels-table th {
    background: rgba(100, 255, 218, 0.1);
    color: #64ffda;
    text-align: left;
    padding: 1rem;
    font-weight: 600;
}

.levels-table td {
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: #e0e0e0;
}

.strategy-section {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 1.5rem;
    margin: 2rem 0;
}

.strategy-title {
    font-size: 1.3rem;
    margin: 0 0 1rem 0;
    color: #64ffda;
}

.strategy-text {
    color: #e0e0e0;
    line-height: 1.7;
    margin: 0;
}

.additional-info {
    color: #e0e0e0;
    line-height: 1.7;
    margin: 1rem 0 0 0;
    padding-top: 1rem;
    border-top: 1px solid rgba(100, 255, 218, 0.1);
}

.confidence-score {
    color: #64ffda;
    font-weight: 600;
    margin: 0.5rem 0 0 0;
}

.trend-arrow {
    margin-left: 0.5rem;
}

.trend-up {
    color: #4CAF50;
}

.trend-down {
    color: #F44336;
}

/* Responsive Design */
@media (max-width: 768px) {
    .chart-analysis-content {
        padding: 100px 0 60px;
    }
    
    .upload-container {
        padding: 1.5rem;
    }
    
    .upload-area {
        height: 250px;
        padding: 1.5rem;
    }
    
    .btn-group {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .chart-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .chart-image-container {
        width: 100%;
        height: 200px;
        margin-bottom: 1rem;
    }
    
    .analytics-grid {
        grid-template-columns: 1fr;
    }
    
    .results-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .results-container {
        padding: 1.5rem;
    }
}

/* Nifty VIX Styles */
.bullish {
    color: #4CAF50;
    font-weight: bold;
}

.bearish {
    color: #F44336;
    font-weight: bold;
}

.neutral {
    color: #FFC107;
    font-weight: bold;
}

/* Animation for VIX volatility indicator */
@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(100, 255, 218, 0.7);
    }
    
    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(100, 255, 218, 0);
    }
    
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(100, 255, 218, 0);
    }
}

.vix-high {
    animation: pulse 2s infinite;
    border-color: #F44336 !important;
}

.vix-medium {
    animation: pulse 3s infinite;
    border-color: #FFC107 !important;
}

.vix-low {
    border-color: #4CAF50 !important;
}
