/* Quantum Investment Page Styles */

/* Investment Container */
.investment-container {
    min-height: 100vh;
    background: linear-gradient(135deg, #000428 0%, #004e92 100%);
    color: white;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

/* Investment Header */
.investment-header {
    background: rgba(0, 0, 0, 0.3);
    padding: 2rem 0;
    text-align: center;
    border-bottom: 2px solid #00d4ff;
}

.investment-header h1 {
    margin: 0 0 1rem 0;
    font-size: 2.5rem;
}

.investment-header h1 a {
    color: white;
    text-decoration: none;
}

.investment-title h2 {
    font-size: 2.2rem;
    margin: 0 0 0.5rem 0;
    color: #00d4ff;
}

.investment-subtitle {
    font-size: 1.1rem;
    color: #b0c4de;
    margin-bottom: 1rem;
}

.breadcrumb {
    font-size: 0.9rem;
    color: #888;
}

.breadcrumb a {
    color: #00d4ff;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

/* Controls Section */
.investment-controls {
    padding: 2rem;
    background: rgba(0, 0, 0, 0.2);
}

.search-container {
    max-width: 800px;
    margin: 0 auto 1.5rem auto;
}

.search-box {
    position: relative;
}

.search-box input {
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
    border: 2px solid #00d4ff;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    backdrop-filter: blur(10px);
}

.search-box input::placeholder {
    color: #b0c4de;
}

.search-box input:focus {
    outline: none;
    border-color: #00ff9f;
    box-shadow: 0 0 20px rgba(0, 255, 159, 0.3);
}

.filter-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.filter-row select {
    padding: 0.75rem;
    border: 2px solid #444;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 0.95rem;
    backdrop-filter: blur(10px);
}

.filter-row select:focus {
    outline: none;
    border-color: #00d4ff;
}

.filter-row select option {
    background: #1a1a2e;
    color: white;
}

/* Stats Section */
.investment-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.stat-card {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1), rgba(0, 255, 159, 0.1));
    border: 2px solid rgba(0, 212, 255, 0.3);
    border-radius: 16px;
    padding: 1.5rem;
    text-align: center;
    backdrop-filter: blur(10px);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: #00d4ff;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    color: #b0c4de;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Investment Grid */
.investment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 2rem;
    padding: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

/* Investment Cards */
.investment-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border: 2px solid rgba(0, 212, 255, 0.3);
    border-radius: 16px;
    padding: 1.5rem;
    backdrop-filter: blur(15px);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.investment-card:hover {
    border-color: #00d4ff;
    box-shadow: 0 8px 32px rgba(0, 212, 255, 0.2);
    transform: translateY(-4px);
}

.investment-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #00d4ff, #00ff9f);
}

.investment-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.company-name {
    font-size: 1.3rem;
    font-weight: bold;
    margin: 0 0 0.5rem 0;
    color: white;
}

.company-status {
    font-size: 0.85rem;
    padding: 0.3rem 0.6rem;
    border-radius: 20px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.company-status.private {
    background: rgba(255, 165, 0, 0.2);
    color: #ffa500;
    border: 1px solid #ffa500;
}

.company-status.public {
    background: rgba(0, 255, 0, 0.2);
    color: #00ff00;
    border: 1px solid #00ff00;
}

.company-status.acquired {
    background: rgba(128, 0, 128, 0.2);
    color: #da70d6;
    border: 1px solid #da70d6;
}

.company-status.delisted {
    background: rgba(255, 0, 0, 0.2);
    color: #ff6b6b;
    border: 1px solid #ff6b6b;
}

.company-metrics {
    text-align: right;
    font-size: 0.85rem;
}

.metric {
    margin-bottom: 0.3rem;
    color: #b0c4de;
}

.metric-label {
    font-weight: 600;
}

/* Latest Deal */
.latest-deal {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.deal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.deal-type {
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.deal-type.seed,
.deal-type.series-a,
.deal-type.series-b,
.deal-type.series-c,
.deal-type.growth {
    background: rgba(0, 212, 255, 0.2);
    color: #00d4ff;
    border: 1px solid #00d4ff;
}

.deal-type.ipo,
.deal-type.spac,
.deal-type.direct-listing {
    background: rgba(0, 255, 159, 0.2);
    color: #00ff9f;
    border: 1px solid #00ff9f;
}

.deal-type.acquisition,
.deal-type.merger,
.deal-type.strategic {
    background: rgba(255, 215, 0, 0.2);
    color: #ffd700;
    border: 1px solid #ffd700;
}

.deal-amount {
    font-weight: bold;
    color: #00d4ff;
    font-size: 1.1rem;
}

.deal-date {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 0.5rem;
}

.deal-description {
    font-size: 0.9rem;
    color: #b0c4de;
    line-height: 1.4;
    margin-bottom: 0.5rem;
}

.deal-investors {
    font-size: 0.8rem;
    color: #888;
    font-style: italic;
}

/* Card Footer */
.investment-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.deal-count {
    font-size: 0.85rem;
    color: #888;
}

.view-details-btn {
    background: linear-gradient(135deg, #00d4ff, #00ff9f);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.view-details-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 212, 255, 0.4);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    margin: 5% auto;
    padding: 2rem;
    border: 2px solid #00d4ff;
    border-radius: 16px;
    width: 90%;
    max-width: 800px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
}

.close {
    color: #888;
    float: right;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    top: 1rem;
    right: 1.5rem;
}

.close:hover {
    color: #00d4ff;
}

.modal-header h2 {
    margin: 0 0 1rem 0;
    color: #00d4ff;
    font-size: 1.8rem;
}

.modal-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
}

.modal-metric {
    color: #b0c4de;
    font-size: 0.9rem;
}

.modal-deals h3 {
    color: #00d4ff;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid rgba(0, 212, 255, 0.3);
}

.modal-deal {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border-left: 4px solid #00d4ff;
}

.modal-deal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.modal-deal-description {
    color: #b0c4de;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.modal-deal-investors {
    color: #888;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.source-link {
    color: #00d4ff;
    text-decoration: none;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.source-link:hover {
    color: #00ff9f;
}

/* Loading and No Results */
.loading,
.no-results {
    text-align: center;
    padding: 3rem;
    color: #b0c4de;
    font-size: 1.1rem;
}

/* Navigation Footer */
.navigation-footer {
    padding: 2rem;
    text-align: center;
    background: rgba(0, 0, 0, 0.3);
    border-top: 2px solid rgba(0, 212, 255, 0.3);
}

.back-to-main {
    color: #00d4ff;
    text-decoration: none;
    font-size: 1.1rem;
    padding: 0.75rem 1.5rem;
    border: 2px solid #00d4ff;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: inline-block;
}

.back-to-main:hover {
    background: rgba(0, 212, 255, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 212, 255, 0.3);
}

/* Disclaimer Footer */
.investment-disclaimer {
    padding: 2rem 1rem;
    background: rgba(0, 0, 0, 0.4);
    border-top: 1px solid rgba(0, 212, 255, 0.2);
    margin-top: 2rem;
}

.disclaimer-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.disclaimer-text {
    color: #b0bec5;
    font-size: 0.85rem;
    line-height: 1.6;
    margin: 0;
    font-style: italic;
}

.disclaimer-text strong {
    color: #00d4ff;
    font-weight: 600;
    font-style: normal;
}

/* Responsive Design */
@media (max-width: 768px) {
    .investment-grid {
        grid-template-columns: 1fr;
        padding: 1rem;
    }
    
    .investment-card {
        padding: 1rem;
    }
    
    .investment-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .company-metrics {
        text-align: left;
        width: 100%;
    }
    
    .filter-row {
        grid-template-columns: 1fr;
    }
    
    .investment-stats {
        grid-template-columns: repeat(2, 1fr);
        padding: 1rem;
    }
    
    .modal-content {
        margin: 2% auto;
        width: 95%;
        padding: 1.5rem;
    }
    
    .modal-deal-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .investment-disclaimer {
        padding: 1.5rem 1rem;
    }
    
    .disclaimer-text {
        font-size: 0.8rem;
        text-align: left;
    }
}

@media (max-width: 480px) {
    .investment-header {
        padding: 1rem 0;
    }
    
    .investment-title h2 {
        font-size: 1.5rem;
    }
    
    .investment-subtitle {
        font-size: 0.9rem;
    }
    
    .investment-stats {
        grid-template-columns: 1fr;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .investment-disclaimer {
        padding: 1rem;
    }
    
    .disclaimer-text {
        font-size: 0.75rem;
        line-height: 1.5;
    }
}