/* ASEMOPT Financial Reports - Frontend Styles */

:root {
    --asemopt-orange: #FF6B35;
    --asemopt-yellow: #FFC107;
    --asemopt-black: #2c2c2c;
    --asemopt-light-orange: #fff5f0;
}

.asemopt-reports-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.asemopt-reports-header {
    text-align: center;
    margin-bottom: 50px;
}

.asemopt-reports-header h2 {
    font-size: 36px;
    color: var(--asemopt-black);
    margin-bottom: 10px;
    font-weight: 700;
}

.asemopt-subtitle {
    font-size: 18px;
    color: #666;
}

.asemopt-subtitle strong {
    color: var(--asemopt-orange);
    font-weight: 600;
}

/* Year Title */
.year-title {
    font-size: 28px;
    color: var(--asemopt-black);
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--asemopt-orange);
    font-weight: 600;
    position: relative;
}

.year-title::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 100px;
    height: 3px;
    background: var(--asemopt-yellow);
}

/* Current Year Section */
.asemopt-current-year {
    margin-bottom: 60px;
}

/* Reports List - Diseño de Rows (Lista completa) */
.reports-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 30px;
}

/* Report Card - Diseño Row completo */
.report-card {
    background: white;
    border-radius: 10px;
    padding: 10px 25px;
    display: flex;
    align-items: center;
    gap: 20px;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    width: 100%;
}

.report-card:hover {
    transform: translateX(8px);
    box-shadow: 0 4px 20px rgba(255, 107, 53, 0.2);
    background: var(--asemopt-light-orange);
}

.report-card-icon {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, var(--asemopt-orange) 0%, #ff8c5a 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.report-card:hover .report-card-icon {
    transform: scale(1.1) rotate(-5deg);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.4);
}

.report-card-icon svg {
    width: 24px;
    height: 24px;
    color: white;
}

.report-card-content {
    flex: 1;
    min-width: 0;
}

.report-card-content h4 {
    margin: 0 0 3px 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--asemopt-black);
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
}

.report-card-date {
    font-size: 13px;
    color: #999;
    display: flex;
    align-items: center;
    gap: 5px;
}

.report-card-date::before {
    content: '📅';
    font-size: 11px;
}

.report-card-arrow {
    width: 35px;
    height: 35px;
    background: var(--asemopt-light-orange);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.report-card:hover .report-card-arrow {
    background: var(--asemopt-orange);
    transform: translateX(5px);
}

.report-card-arrow svg {
    width: 18px;
    height: 18px;
    color: var(--asemopt-orange);
    transition: all 0.3s ease;
}

.report-card:hover .report-card-arrow svg {
    color: white;
}

/* Previous Years Section */
.asemopt-previous-years {
    margin-top: 60px;
}

.section-title {
    font-size: 28px;
    color: var(--asemopt-black);
    margin-bottom: 25px;
    font-weight: 600;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 3px;
    background: var(--asemopt-yellow);
}

/* Accordion */
.years-accordion {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.accordion-item {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: all 0.3s ease;
    border: none;
    outline: none;
}

.accordion-item:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

.accordion-item.active {
    box-shadow: 0 4px 20px rgba(255, 107, 53, 0.2);
}

.accordion-header {
    width: 100%;
    padding: 20px 25px;
    background: white;
    border: none;
    outline: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
    gap: 15px;
}

.accordion-header:hover {
    background: var(--asemopt-light-orange);
}

.accordion-header:focus {
    outline: none;
}

.accordion-item.active .accordion-header {
    background: linear-gradient(135deg, var(--asemopt-orange) 0%, #ff8c5a 100%);
}

.accordion-year {
    font-weight: 600;
    color: var(--asemopt-black);
    font-size: 18px;
    flex: 1;
}

.accordion-item.active .accordion-year {
    color: white;
}

.accordion-count {
    background: var(--asemopt-light-orange);
    color: var(--asemopt-orange);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

.accordion-item.active .accordion-count {
    background: rgba(255,255,255,0.25);
    color: white;
}

.accordion-icon {
    width: 24px;
    height: 24px;
    color: var(--asemopt-orange);
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.accordion-item.active .accordion-icon {
    transform: rotate(180deg);
    color: white;
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.accordion-item.active .accordion-content {
    max-height: 5000px;
    padding: 20px;
    background: #fafafa;
}

/* Empty Message */
.asemopt-empty-message {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.asemopt-empty-message p {
    color: #718096;
    font-size: 16px;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .asemopt-reports-header h2 {
        font-size: 28px;
    }
    
    .asemopt-subtitle {
        font-size: 16px;
    }
    
    .year-title,
    .section-title {
        font-size: 22px;
    }
    
    .report-card {
        padding: 10px 20px;
        gap: 15px;
    }
    
    .report-card-icon {
        width: 40px;
        height: 40px;
    }
    
    .report-card-icon svg {
        width: 22px;
        height: 22px;
    }
    
    .report-card-content h4 {
        font-size: 15px;
    }
    
    .report-card-date {
        font-size: 12px;
    }
    
    .accordion-header {
        padding: 18px 20px;
        flex-wrap: wrap;
    }
    
    .accordion-year {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .asemopt-reports-container {
        padding: 0 15px;
    }
    
    .report-card {
        padding: 8px 15px;
        gap: 12px;
    }
    
    .report-card-icon {
        width: 38px;
        height: 38px;
    }
    
    .report-card-icon svg {
        width: 20px;
        height: 20px;
    }
    
    .report-card-content h4 {
        font-size: 14px;
    }
    
    .report-card-arrow {
        width: 32px;
        height: 32px;
    }
    
    .report-card-arrow svg {
        width: 16px;
        height: 16px;
    }
}

/* Animation */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.report-card {
    animation: slideInLeft 0.5s ease forwards;
    opacity: 0;
}

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

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}