/* Performance Hero Section */
.performance-hero {
    background: linear-gradient(rgba(10, 37, 64, 0.85), rgba(10, 37, 64, 0.85)), 
                url('https://plus.unsplash.com/premium_photo-1664304093339-b29b60ebbc2b?q=80&w=870&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D') no-repeat center center/cover;
    color: white;
    padding: 140px 0 80px;
    text-align: center;
    position: relative;
}

.performance-hero .hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.performance-hero h1 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.performance-hero .subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 1.5rem;
}

/* Highlights Section */
.highlights-section {
    padding: 80px 0;
    background-color: white;
}

.highlights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin: 40px 0;
}

.highlight-card {
    background: white;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    display: flex;
    gap: 20px;
}

.highlight-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.highlight-icon {
    width: 50px;
    height: 50px;
    background: rgba(0, 122, 141, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 1.3rem;
    flex-shrink: 0;
}

.highlight-content {
    flex: 1;
}

.highlight-value {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.highlight-value.positive {
    color: #00a86b;
}

.highlight-value.negative {
    color: #ff4d4f;
}

.highlight-label {
    font-size: 0.9rem;
    color: var(--text-medium);
    margin-bottom: 10px;
}

.highlight-comparison {
    font-size: 0.85rem;
    color: var(--text-light);
}

.comparison-difference {
    margin-left: 8px;
    font-weight: 600;
}

.comparison-difference.positive {
    color: #00a86b;
}

/* Performance Toggle */
.performance-toggle {
    display: flex;
    gap: 10px;
    margin: 40px 0 20px;
    flex-wrap: wrap;
}

.toggle-btn {
    padding: 10px 20px;
    background: rgba(0, 0, 0, 0.03);
    border: none;
    border-radius: 6px;
    font-weight: 500;
    color: var(--text-medium);
    cursor: pointer;
    transition: all 0.3s ease;
}

.toggle-btn.active {
    background: var(--accent);
    color: white;
}

/* Performance Table */
.performance-table-container {
    overflow-x: auto;
    margin-bottom: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
}

.performance-table {
    width: 100%;
    border-collapse: collapse;
    display: none;
}

.performance-table.active {
    display: table;
}

.performance-table th {
    background: var(--primary);
    color: white;
    padding: 15px 20px;
    text-align: left;
    font-weight: 500;
}

.performance-table td {
    padding: 12px 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.performance-table tr:last-child td {
    border-bottom: none;
}

.performance-table tr:hover td {
    background: rgba(0, 122, 141, 0.03);
}

.positive {
    color: #00a86b;
    font-weight: 500;
}

.negative {
    color: #ff4d4f;
    font-weight: 500;
}

.highlight-row {
    background: rgba(0, 122, 141, 0.05);
}

/* Quarterly Performance Section */
.quarterly-section {
    padding: 80px 0;
    background: var(--light-bg);
}

.quarterly-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 40px;
}

.quarterly-chart {
    background: white;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.chart-legend {
    display: flex;
    gap: 15px;
}

.legend-item {
    display: flex;
    align-items: center;
    font-size: 0.85rem;
    color: var(--text-medium);
}

.legend-color {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 3px;
    margin-right: 6px;
}

.legend-color.tcd {
    background-color: var(--accent);
}

.legend-color.benchmark {
    background-color: var(--text-light);
}

.chart-container {
    height: 300px;
    position: relative;
    margin: 20px 0;
}

.chart-zoom {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.zoom-btn {
    padding: 6px 12px;
    background: rgba(0, 0, 0, 0.03);
    border: none;
    border-radius: 4px;
    font-size: 0.85rem;
    color: var(--text-medium);
    cursor: pointer;
}

.zoom-btn.active {
    background: var(--accent);
    color: white;
}

/* Quarterly Commentary */
.quarterly-commentary {
    background: white;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
}

.commentary-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.commentary-date {
    font-size: 0.9rem;
    color: var(--text-medium);
}

.commentary-content p {
    margin-bottom: 1.5em;
    line-height: 1.7;
}

.performance-drivers {
    margin: 30px 0;
}

.performance-drivers h4 {
    margin-bottom: 15px;
    color: var(--primary);
}

.performance-drivers ul {
    list-style: none;
    padding-left: 0;
}

.performance-drivers li {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.driver-impact.positive {
    color: #00a86b;
    font-weight: 500;
}

.driver-impact.negative {
    color: #ff4d4f;
    font-weight: 500;
}

.outlook {
    background: rgba(0, 122, 141, 0.03);
    border-left: 3px solid var(--accent);
    padding: 20px;
    border-radius: 0 6px 6px 0;
    margin: 30px 0;
}

.outlook-author {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 15px;
}

.outlook-author img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.outlook-author strong {
    display: block;
    margin-bottom: 3px;
}

.outlook-author span {
    font-size: 0.85rem;
    color: var(--text-medium);
}

.commentary-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.btn-download, .btn-video {
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 0.95rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.btn-download {
    background: var(--accent);
    color: white;
}

.btn-download:hover {
    background: var(--hover-accent);
    transform: translateY(-2px);
}

.btn-video {
    background: white;
    color: var(--primary);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.btn-video:hover {
    background: rgba(0, 0, 0, 0.02);
    border-color: rgba(0, 0, 0, 0.2);
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
    .quarterly-grid {
        grid-template-columns: 1fr;
    }
    
    .chart-container {
        height: 250px;
    }
}

@media (max-width: 768px) {
    .performance-hero h1 {
        font-size: 2.2rem;
    }
    
    .highlight-card {
        flex-direction: column;
    }
    
    .highlight-icon {
        margin-bottom: 15px;
    }
    
    .performance-table th, 
    .performance-table td {
        padding: 10px 15px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .performance-hero {
        padding: 100px 0 60px;
    }
    
    .performance-hero h1 {
        font-size: 1.8rem;
    }
    
    .commentary-actions {
        flex-direction: column;
    }
    
    .btn-download, .btn-video {
        justify-content: center;
    }
}

/* Historical Performance Section */
.historical-section {
    padding: 80px 0;
    background: white;
}

.historical-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 40px;
}

.historical-chart {
    background: white;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
}

.chart-title-group {
    margin-bottom: 5px;
}

.chart-period {
    font-size: 0.9rem;
    color: var(--text-medium);
}

.historical-metrics {
    background: white;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
}

.metrics-header {
    margin-bottom: 25px;
}

.metrics-period {
    font-size: 0.9rem;
    color: var(--text-medium);
    margin-top: 5px;
}

.metrics-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 25px;
}

.metric-card {
    background: rgba(0, 122, 141, 0.03);
    border-radius: 8px;
    padding: 20px;
}

.metric-value {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.metric-value.positive {
    color: #00a86b;
}

.metric-value.negative {
    color: #ff4d4f;
}

.metric-label {
    font-size: 0.9rem;
    color: var(--text-medium);
    margin-bottom: 8px;
}

.metric-comparison {
    font-size: 0.85rem;
    color: var(--text-light);
}

.comparison-value.positive {
    color: #00a86b;
    font-weight: 500;
}

.metrics-disclaimer {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-bottom: 25px;
}

.btn-metrics {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: var(--accent);
    color: white;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-metrics:hover {
    background: var(--hover-accent);
    transform: translateY(-2px);
}

/* Portfolio Composition Section */
.composition-section {
    padding: 80px 0;
    background: var(--light-bg);
}

.composition-tabs {
    display: flex;
    gap: 10px;
    margin: 30px 0;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 10px 20px;
    background: rgba(0, 0, 0, 0.03);
    border: none;
    border-radius: 6px;
    font-weight: 500;
    color: var(--text-medium);
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-btn.active {
    background: var(--accent);
    color: white;
}

.composition-content {
    margin-top: 20px;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.composition-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.composition-chart {
    background: white;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
}

.composition-table {
    background: white;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
    overflow-x: auto;
}

.composition-table table {
    width: 100%;
    border-collapse: collapse;
}

.composition-table th {
    background: rgba(0, 122, 141, 0.05);
    color: var(--primary);
    padding: 12px 15px;
    text-align: left;
    font-weight: 500;
}

.composition-table td {
    padding: 12px 15px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.composition-table tr:last-child td {
    border-bottom: none;
}

/* Top Holdings */
.holdings-section {
    margin-top: 60px;
}

.holdings-header {
    margin-bottom: 25px;
}

.holdings-summary {
    font-size: 0.95rem;
    color: var(--text-medium);
    margin-top: 5px;
}

.holdings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.holding-card {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s ease;
}

.holding-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.holding-logo {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(0, 122, 141, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.holding-logo img {
    width: 30px;
    height: 30px;
    object-fit: contain;
}

.holding-details {
    flex: 1;
}

.holding-details h4 {
    margin-bottom: 5px;
    font-size: 1rem;
}

.holding-meta {
    display: flex;
    gap: 10px;
    font-size: 0.85rem;
    color: var(--text-medium);
}

.holding-ticker {
    font-weight: 500;
    color: var(--primary);
}

.holding-stats {
    text-align: right;
}

.holding-allocation {
    font-weight: 600;
    margin-bottom: 5px;
}

.holding-change {
    font-size: 0.85rem;
    font-weight: 500;
}

.holding-change.positive {
    color: #00a86b;
}

.holding-change.negative {
    color: #ff4d4f;
}

.holdings-disclaimer {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-top: 30px;
    max-width: 800px;
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
    .historical-grid,
    .composition-grid {
        grid-template-columns: 1fr;
    }
    
    .metrics-grid {
        grid-template-columns: 1fr;
    }
    
    .composition-chart {
        max-width: 500px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .historical-section,
    .composition-section {
        padding: 60px 0;
    }
    
    .holdings-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .composition-tabs {
        overflow-x: auto;
        white-space: nowrap;
        padding-bottom: 10px;
    }
    
    .holding-card {
        flex-direction: column;
        text-align: center;
    }
    
    .holding-stats {
        text-align: center;
        width: 100%;
        margin-top: 10px;
        padding-top: 10px;
        border-top: 1px solid rgba(0, 0, 0, 0.05);
    }
}