/* ============================================
   Investor Profile Page Styles
   ============================================ */

/* Breadcrumb */
.breadcrumb {
    background: var(--bg-gray, #f1f5f9);
    padding: 1rem 0;
    margin-top: 80px;
}

.breadcrumb__nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-secondary, #475569);
}

.breadcrumb__nav a {
    color: var(--primary-color, #2563eb);
    transition: color 0.2s ease;
}

.breadcrumb__nav a:hover {
    color: var(--primary-dark, #1e40af);
}

.breadcrumb__separator {
    color: var(--gray-400, #94a3b8);
}

.breadcrumb__current {
    color: var(--text-primary, #0f172a);
    font-weight: 500;
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, var(--primary-color, #2563eb) 0%, var(--primary-dark, #1e40af) 100%);
    color: white;
    padding: 4rem 0 3rem;
    text-align: center;
}

.page-header__title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.page-header__subtitle {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    opacity: 0.95;
}

.heritage-text {
    font-size: 1rem;
    font-style: italic;
    opacity: 0.85;
    display: block;
    margin-top: 0.5rem;
}

.page-header__description {
    font-size: 1.125rem;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
    opacity: 0.9;
}

/* Investor Content */
.investor-content {
    background: white;
}

.investor-section {
    margin-bottom: 4rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid var(--gray-200, #e2e8f0);
}

.investor-section:last-child {
    border-bottom: none;
}

.investor-section__title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary, #0f172a);
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.investor-section__title svg {
    color: var(--primary-color, #2563eb);
    flex-shrink: 0;
}

.investor-section__title--collapsible {
    cursor: pointer;
    user-select: none;
    transition: color 0.2s ease;
    justify-content: space-between;
    padding: 1.5rem;
    background: var(--bg-gray, #f1f5f9);
    border-radius: 0.75rem;
    margin-bottom: 1.5rem;
}

.investor-section__title--collapsible:hover {
    color: var(--primary-color, #2563eb);
    background: var(--gray-200, #e2e8f0);
}

.toggle-icon {
    font-size: 1.5rem;
    transition: transform 0.3s ease;
    color: var(--primary-color, #2563eb);
}

.investor-section__title--collapsible.active .toggle-icon {
    transform: rotate(180deg);
}

/* Collapsible Content */
.collapsible-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.collapsible-content.active {
    max-height: 10000px;
}

/* Financial Year Sections */
.financial-year {
    margin-bottom: 3rem;
}

.financial-year__title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary, #0f172a);
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--primary-color, #2563eb);
    display: inline-block;
}

/* Documents Grid */
.documents-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

.documents-grid--compact {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}

/* Document Cards */
.document-card {
    display: flex;
    gap: 1.25rem;
    padding: 1.5rem;
    background: white;
    border: 1px solid var(--gray-200, #e2e8f0);
    border-radius: 0.75rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.document-card:hover {
    border-color: var(--primary-color, #2563eb);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.1);
    transform: translateY(-2px);
}

.document-card--compact {
    padding: 1.25rem;
    gap: 1rem;
}

.document-card--featured {
    background: linear-gradient(135deg, var(--primary-color, #2563eb) 0%, var(--primary-dark, #1e40af) 100%);
    border-color: var(--primary-dark, #1e40af);
    color: white;
}

.document-card--featured:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3);
}

.document-card--featured .document-card__content h3,
.document-card--featured .document-card__content h4,
.document-card--featured .document-card__meta {
    color: white;
}

.document-card--featured svg {
    color: white;
}

.document-card__icon {
    width: 48px;
    height: 48px;
    background: var(--bg-gray, #f1f5f9);
    color: var(--primary-color, #2563eb);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.document-card--compact .document-card__icon {
    width: 40px;
    height: 40px;
}

.document-card:hover .document-card__icon {
    background: var(--primary-color, #2563eb);
    color: white;
}

.document-card--featured .document-card__icon {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.document-card__content {
    flex: 1;
    min-width: 0;
}

.document-card__content h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary, #0f172a);
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.document-card__content h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary, #0f172a);
    margin-bottom: 0.25rem;
    line-height: 1.4;
}

.document-card__meta {
    font-size: 0.875rem;
    color: var(--text-secondary, #475569);
    display: block;
}

/* Responsive Design */
@media screen and (max-width: 968px) {
    .page-header__title {
        font-size: 2.5rem;
    }

    .investor-section__title {
        font-size: 1.75rem;
    }

    .financial-year__title {
        font-size: 1.25rem;
    }

    .documents-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
}

@media screen and (max-width: 768px) {
    .breadcrumb {
        margin-top: 70px;
    }

    .page-header {
        padding: 3rem 0 2rem;
    }

    .page-header__title {
        font-size: 2rem;
    }

    .page-header__subtitle {
        font-size: 1.125rem;
    }

    .page-header__description {
        font-size: 1rem;
    }

    .investor-section {
        margin-bottom: 3rem;
        padding-bottom: 2rem;
    }

    .investor-section__title {
        font-size: 1.5rem;
        flex-wrap: wrap;
    }

    .investor-section__title svg {
        width: 24px;
        height: 24px;
    }

    .documents-grid,
    .documents-grid--compact {
        grid-template-columns: 1fr;
    }

    .document-card {
        padding: 1.25rem;
    }
}

@media screen and (max-width: 480px) {
    .page-header__title {
        font-size: 1.75rem;
    }

    .investor-section__title {
        font-size: 1.25rem;
        gap: 0.75rem;
    }

    .investor-section__title--collapsible {
        padding: 1rem;
    }

    .document-card {
        padding: 1rem;
        gap: 1rem;
    }

    .document-card__icon {
        width: 40px;
        height: 40px;
    }

    .document-card--compact .document-card__icon {
        width: 36px;
        height: 36px;
    }

    .document-card__content h3 {
        font-size: 1rem;
    }

    .document-card__content h4 {
        font-size: 0.9375rem;
    }

    .document-card__meta {
        font-size: 0.8125rem;
    }
}

/* Print Styles */
@media print {
    .breadcrumb,
    .nav,
    .footer {
        display: none;
    }

    .page-header {
        background: none;
        color: black;
        padding: 1rem 0;
    }

    .document-card {
        break-inside: avoid;
        border: 1px solid #ccc;
        box-shadow: none;
    }

    .investor-section {
        page-break-inside: avoid;
    }
}
