/* Forex Services Specific Styles */

/* Banner and General Styles */
.text-theme {
    color: var(--color-theme);
}

.bg-theme {
    background-color: var(--color-theme);
}

/* Service Items */
.service-item {
    padding: 30px;
    background: #ff7f2700;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    margin-bottom: 30px;
    transition: all 0.3s ease;
    height: 100%;
    border-left: 4px solid var(--color-theme);
    color: #ffffff;
}

.service-icon i {
    font-size: 28px;
    color: var(--color-theme);
}

.service-title h4 {
    margin-bottom: 15px;
    font-weight: 700;
    color: #ffffff;
}

.service-desc p {
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.85);
}

.feature-list {
    padding-left: 5px;
    list-style: none;
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.85);
}

.feature-list li {
    position: relative;
    padding-left: 0;
    margin-bottom: 10px;
}

.feature-list li i {
    margin-right: 8px;
}

/* Tech Stack */
.tech-stack {
    display: flex;
    flex-wrap: wrap;
    margin-top: 15px;
    gap: 5px;
}

.tech-badge {
    padding: 5px 12px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    font-size: 12px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    margin-right: 5px;
    margin-bottom: 5px;
    display: inline-block;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--color-theme) 0%, #ff9800 100%);
    padding: 60px 0;
    color: white;
    border-radius: 10px;
    margin: 40px 0;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.cta-title {
    font-weight: 700;
    margin-bottom: 15px;
}

.cta-desc {
    margin-bottom: 25px;
    font-size: 18px;
}

/* Portfolio Styles */
.portfolio-item {
    margin-bottom: 30px;
    background: #2a3b4c29;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    color: #ffffff;
    height: 100%; /* Make all cards same height */
    display: flex;
    flex-direction: column;
    position: relative;
}

.portfolio-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
    border-top: 3px solid var(--color-theme);
}

.portfolio-thumb {
    position: relative;
    overflow: hidden;
}

.portfolio-item:hover .portfolio-thumb img {
    transform: scale(1.05);
}

.portfolio-thumb img {
    width: 100%;
    height: 240px; /* Fixed height for images */
    object-fit: cover;
    object-position: center;
    transition: all 0.5s ease;
}

.portfolio-info {
    padding: 25px 20px;
    color: rgba(255, 255, 255, 0.85);
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* Take up remaining space */
}

.portfolio-info p {
    margin-bottom: 20px;
    flex-grow: 1; /* Push button to bottom */
    line-height: 1.6;
}

.portfolio-info h5 {
    margin-bottom: 10px;
    color: #ffffff;
    font-size: 20px;
    font-weight: 600;
}

/* Market Data Styles */
.market-data-section {
    margin-bottom: 60px;
}

.market-card {
    background: rgba(42, 59, 76, 0.16);
    border-radius: 10px;
    overflow: hidden;
    padding: 20px;
    height: 100%;
    border-left: 4px solid var(--color-theme);
    transition: all 0.3s ease;
}

.market-status {
    margin-bottom: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.status-indicator {
    display: inline-flex;
    align-items: center;
    padding: 5px 12px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 600;
    background: rgba(0, 0, 0, 0.2);
    margin-right: 10px;
}

.status-indicator.open {
    color: #4caf50;
}

.status-indicator.closed {
    color: #f44336;
}

.status-indicator span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 6px;
}

.status-indicator.open span {
    background-color: #4caf50;
    box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.2);
}

.status-indicator.closed span {
    background-color: #f44336;
    box-shadow: 0 0 0 2px rgba(244, 67, 54, 0.2);
}

.stock-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.stock-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 15px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

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

.stock-name {
    font-weight: 600;
    font-size: 16px;
    color: #ffffff;
}

.stock-symbol {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
}

.stock-price {
    font-size: 24px;
    font-weight: 700;
    margin: 10px 0;
    color: #ffffff;
}

.stock-change {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 15px;
}

.stock-change.positive {
color: #4caf50;
}

.stock-change.negative {
color: #e74c3c;
}

.stock-change.neutral {
color: #888;
}

.stock-price.loading {
color: #888;
position: relative;
animation: pulse 1.5s infinite;
}

@keyframes pulse {
0% { opacity: 0.6; }
50% { opacity: 1; }
100% { opacity: 0.6; }
}

/* Chart styles */
.stock-chart {
    height: 180px;
    width: 100%;
    position: relative;
    margin-top: 10px;
}

.stock-chart canvas {
    width: 100% !important;
    height: 100% !important;
    display: block;
}

.chart-container {
    height: 100px;
    width: 100%;
    margin-top: 10px;
}

.api-note {
    background-color: rgba(255, 152, 0, 0.1);
    border-left: 4px solid var(--color-theme);
    padding: 15px;
    margin-top: 30px;
    border-radius: 4px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
}

.text-orange {
    color: orange;
}

/* Simulated data indicator */
.simulated-data-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: rgba(255, 152, 0, 0.8);
    color: #fff;
    border-radius: 4px;
    padding: 2px 6px;
    font-size: 11px;
    font-weight: 500;
    z-index: 5;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.simulated-data-badge small {
    opacity: 0.9;
}

.stock-card {
    position: relative; /* Ensure badge positioning works */
}

/* Feature Cards - Modern Design */
.feature-card {
    display: flex;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 25px;
    transition: all 0.3s ease;
    height: 100%;
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
    border-color: var(--color-theme);
}

.feature-icon-wrapper {
    width: 60px;
    height: 60px;
    min-width: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-theme) 0%, #ff9800 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    box-shadow: 0 5px 15px rgba(255, 87, 34, 0.3);
}

.feature-icon-wrapper i {
    font-size: 24px;
    color: #fff;
}

.feature-content {
    flex: 1;
}

.feature-content h4 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 20px;
    color: #ffffff;
    font-weight: 600;
}

.feature-content p {
    margin-bottom: 15px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
}

.feature-link {
    color: var(--color-theme);
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: all 0.2s ease;
}

.feature-link i {
    margin-left: 6px;
    font-size: 12px;
    transition: transform 0.2s ease;
}

.feature-link:hover {
    color: #ff9800;
}

.feature-link:hover i {
    transform: translateX(4px);
}

/* Market status indicators */
.market-status-indicator {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 5px;
}

.market-status-indicator.open {
    background-color: #4caf50;
    box-shadow: 0 0 5px rgba(76, 175, 80, 0.7);
}

.market-status-indicator.closed {
    background-color: #e74c3c;
    box-shadow: 0 0 5px rgba(231, 76, 60, 0.7);
}

.result-value {
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* Mobile responsiveness */
@media (max-width: 767px) {
    .stock-grid {
        grid-template-columns: 1fr;
    }
    
    .market-status {
        flex-direction: column;
        align-items: flex-start;
    }
}
