/* Investor Relations Shareholding Page Styles */

/* Investor Option Cards */
.investor-option-card {
    position: relative;
    background: white;
    cursor: pointer;
}

.investor-option-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: #3b82f6;
}

/* Active Investor Option Card */
.investor-option-card.active {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-color: #fbbf24 !important;
    box-shadow: 0 4px 12px rgba(251, 191, 36, 0.3);
}

.investor-option-card.active:hover {
    background: linear-gradient(135deg, #fde68a 0%, #fcd34d 100%);
}

/* Content Sections */
.content-section {
    display: none;
    animation: fadeIn 0.5s ease;
}

.content-section.active {
    display: block;
}

/* Sub Option Buttons (Left Sidebar) */
.sub-option-btn {
    color: #6b7280;
    background: transparent;
    border-left: 3px solid transparent;
    transition: all 0.3s ease;
}

.sub-option-btn:hover {
    background: #f9fafb;
    color: #1e3a8a;
    border-left-color: #3b82f6;
}

.sub-option-btn.active {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #1e3a8a;
    border-left-color: #fbbf24;
    font-weight: 600;
}

/* Sub Content Sections */
.sub-content {
    display: none;
    animation: fadeIn 0.5s ease;
}

.sub-content.active {
    display: block;
}

/* Financial Year Accordion */
.fy-accordion {
    transition: all 0.3s ease;
}

.fy-header {
    cursor: pointer;
}

.fy-header:hover h3 {
    color: #1e3a8a;
}

/* FY Icon Rotation */
.fy-icon {
    transition: transform 0.3s ease;
}

.fy-accordion.active .fy-icon {
    transform: rotate(180deg);
}

/* FY Content */
.fy-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease, opacity 0.3s ease;
    opacity: 0;
}

.fy-content.show {
    max-height: 2000px;
    opacity: 1;
}

/* Document Links */
.document-link {
    transition: all 0.3s ease;
}

.document-link:hover {
    transform: translateX(5px);
}

/* PDF Icon */
.pdf-icon-wrapper {
    transition: all 0.3s ease;
}

.document-link:hover .pdf-icon-wrapper {
    background-color: #fecaca;
    transform: scale(1.1);
}

/* Arrow Icon Animation */
.document-link svg:last-child {
    transition: all 0.3s ease;
}

.document-link:hover svg:last-child {
    transform: translateX(4px);
    color: #1e3a8a;
}

/* Animation Keyframes */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Sticky Sidebar */
.sticky {
    position: sticky;
    top: 6rem;
}

/* Card Animations */
.investor-option-card {
    animation: fadeInUp 0.5s ease forwards;
    opacity: 0;
}

.investor-option-card:nth-child(1) { animation-delay: 0.1s; }
.investor-option-card:nth-child(2) { animation-delay: 0.15s; }
.investor-option-card:nth-child(3) { animation-delay: 0.2s; }
.investor-option-card:nth-child(4) { animation-delay: 0.25s; }
.investor-option-card:nth-child(5) { animation-delay: 0.3s; }
.investor-option-card:nth-child(6) { animation-delay: 0.35s; }
.investor-option-card:nth-child(7) { animation-delay: 0.4s; }
.investor-option-card:nth-child(8) { animation-delay: 0.45s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .sticky {
        position: relative;
        top: 0;
    }
    
    .investor-option-card h3 {
        font-size: 0.875rem;
    }
}

@media (max-width: 768px) {
    .fy-header h3 {
        font-size: 1rem;
    }
    
    .document-link {
        padding: 0.75rem;
    }
    
    .document-link p {
        font-size: 0.813rem;
    }
}

/* Focus States */
.investor-option-card:focus,
.sub-option-btn:focus,
.fy-header:focus {
    outline: 2px solid #fbbf24;
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .fy-accordion.active .fy-content {
        max-height: none;
        opacity: 1;
    }
    
    .investor-option-card:hover {
        transform: none;
    }
}

/* Loading State */
.loading {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

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

/* Scrollbar Styling */
.fy-content::-webkit-scrollbar {
    width: 6px;
}

.fy-content::-webkit-scrollbar-track {
    background: #f1f5f9;
}

.fy-content::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

.fy-content::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}