/* pages/quality-assurance/view.css */

/* ========================================
   Hero Section
   ======================================== */
.qa-hero {
    background: linear-gradient(135deg, #89287f 0%, #9B4A9D 100%);
    padding: 80px 0 60px;
    position: relative;
    overflow: hidden;
}

.qa-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="60" height="60" xmlns="http://www.w3.org/2000/svg"><rect width="60" height="60" fill="none"/><circle cx="30" cy="30" r="1.5" fill="rgba(255,255,255,0.1)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    text-align: center;
    position: relative;
    z-index: 1;
}

.hero-title {
    color: #fff;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.hero-title i {
    margin-right: 1rem;
    font-size: 2.5rem;
}

.hero-subtitle {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ========================================
   Content Section
   ======================================== */
.qa-content {
    padding: 60px 0;
    background: #f8f9fa;
}

/* ========================================
   QA Grid
   ======================================== */
.qa-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

/* ========================================
   QA Card
   ======================================== */
.qa-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
    transition: all 0.3s ease;
    height: 100%;
}

.qa-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.card-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

/* Card Icon */
.card-icon {
    padding: 40px 30px 30px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.card-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.qa-card:hover .card-icon::before {
    opacity: 1;
}

.card-icon i {
    font-size: 4rem;
    color: #fff;
    transition: transform 0.3s ease;
}

.qa-card:hover .card-icon i {
    transform: scale(1.1) rotate(5deg);
}

/* Dynamic Icon Colors - Bootstrap-like colors */
.card-icon.primary {
    background: linear-gradient(135deg, #4e73df 0%, #224abe 100%);
}

.card-icon.success {
    background: linear-gradient(135deg, #1cc88a 0%, #13855c 100%);
}

.card-icon.info {
    background: linear-gradient(135deg, #36b9cc 0%, #258391 100%);
}

.card-icon.warning {
    background: linear-gradient(135deg, #f6c23e 0%, #dda20a 100%);
}

.card-icon.danger {
    background: linear-gradient(135deg, #e74a3b 0%, #be2617 100%);
}

.card-icon.secondary {
    background: linear-gradient(135deg, #858796 0%, #60616f 100%);
}

.card-icon.purple {
    background: linear-gradient(135deg, #89287f 0%, #9B4A9D 100%);
}

.card-icon.dark {
    background: linear-gradient(135deg, #5a5c69 0%, #373840 100%);
}

/* Additional colors for hardcoded cards */
.card-icon.financial {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.card-icon.strategy {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}


/* Card Content */
.card-content {
    padding: 30px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 1rem;
    transition: color 0.3s ease;
}

.qa-card:hover .card-title {
    color: #89287f;
}

.card-description {
    color: #718096;
    font-size: 0.95rem;
    line-height: 1.7;
    flex: 1;
    margin-bottom: 1.5rem;
}

/* Card Footer */
.card-footer {
    padding-top: 1rem;
    border-top: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.doc-count {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #718096;
    font-size: 0.9rem;
}

.doc-count i {
    color: #89287f;
}

.view-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #89287f;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.view-link i {
    transition: transform 0.3s ease;
}

.qa-card:hover .view-link {
    color: #6b1f64;
}

.qa-card:hover .view-link i {
    transform: translateX(5px);
}

/* ========================================
   Info Section
   ======================================== */
.info-section {
    margin-top: 40px;
    margin-bottom: 60px;
}

.info-card {
    background: linear-gradient(135deg, #89287f 0%, #9B4A9D 100%);
    border-radius: 16px;
    padding: 40px;
    display: flex;
    align-items: center;
    gap: 30px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
}

.info-card > i {
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.9);
    flex-shrink: 0;
}

.info-content {
    flex: 1;
}

.info-content h4 {
    color: #fff;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.info-content p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-outline {
    background: transparent;
    border: 2px solid #fff;
    color: #fff;
}

.btn-outline:hover {
    background: #fff;
    color: #89287f;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* ========================================
   Statistics Section
   ======================================== */
.stats-section {
    margin-top: 40px;
}

.stat-card {     
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.3s ease;
    margin-bottom: 20px;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.stat-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #89287f 0%, #9B4A9D 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-icon i {
    font-size: 2rem;
    color: #fff;
}

.stat-content {
    flex: 1;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2d3748;
    margin: 0;
    line-height: 1;
}

.stat-label {
    font-size: 1rem;
    color: #718096;
    margin: 0.5rem 0 0;
}

/* ========================================
   Alert (No Data)
   ======================================== */
.alert {
    padding: 3rem 2rem;
    border-radius: 12px;
    background: #e3f2fd;
    border: 1px solid #90caf9;
    color: #1565c0;
}

.alert-info {
    background: #e3f2fd;
    border-color: #90caf9;
    color: #1565c0;
}

.alert h4 {
    margin-bottom: 1rem;
    color: inherit;
}

.alert p {
    margin: 0;
}

/* ========================================
   Responsive Design
   ======================================== */

/* Tablet */
@media (max-width: 992px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .qa-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 20px;
    }
    
    .card-icon i {
        font-size: 3.5rem;
    }
    
    .info-card {
        padding: 30px;
        gap: 20px;
    }
    
    .stat-card {
        padding: 20px;
    }
    
    .stat-number {
        font-size: 2rem;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .qa-hero {
        padding: 60px 0 40px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-title i {
        font-size: 1.8rem;
        margin-right: 0.5rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .qa-content {
        padding: 40px 0;
    }
    
    .qa-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-bottom: 40px;
    }
    
    .card-icon {
        padding: 30px 20px 20px;
    }
    
    .card-icon i {
        font-size: 3rem;
    }
    
    .card-content {
        padding: 20px;
    }
    
    .card-title {
        font-size: 1.3rem;
    }
    
    .card-description {
        font-size: 0.9rem;
    }
    
    .card-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .info-card {
        flex-direction: column;
        text-align: center;
        padding: 30px 20px;
    }
    
    .info-card > i {
        font-size: 2.5rem;
    }
    
    .info-content h4 {
        font-size: 1.3rem;
    }
    
    .info-content p {
        font-size: 0.95rem;
        margin-bottom: 1rem;
    }
    
    .stats-section .row {
        gap: 0;
    }
    
    .stat-card {
        flex-direction: column;
        text-align: center;
        padding: 25px 20px;
    }
    
    .stat-icon {
        width: 60px;
        height: 60px;
    }
    
    .stat-icon i {
        font-size: 1.5rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .hero-title {
        font-size: 1.5rem;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
    }
    
    .card-icon i {
        font-size: 2.5rem;
    }
    
    .card-title {
        font-size: 1.2rem;
    }
    
    .stat-number {
        font-size: 1.75rem;
    }
}

/* ========================================
   Print Styles
   ======================================== */
@media print {
    .qa-hero {
        background: #89287f !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
    
    .qa-card {
        page-break-inside: avoid;
        box-shadow: none;
        border: 1px solid #e2e8f0;
    }
    
    .qa-card:hover {
        transform: none;
    }
    
    .info-card,
    .stat-card {
        page-break-inside: avoid;
    }
    
    .btn {
        display: none;
    }
}

/* ========================================
   Accessibility
   ======================================== */
.card-link:focus {
    outline: 3px solid #89287f;
    outline-offset: 2px;
}

.btn:focus {
    outline: 3px solid #fff;
    outline-offset: 2px;
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .qa-card {
        border: 2px solid #2d3748;
    }
    
    .card-icon {
        border-bottom: 2px solid #2d3748;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}