/**
 * Subject Areas Archive Styles
 * 
 * @package DNCG_Pathways
 * @version 2.1.0
 * 
 * File Location: /public/css/archive-subject-areas.css
 */

/* ========================================
   Archive Wrapper
   ======================================== */

.dncg-subject-areas-archive-wrapper {
    min-height: 100vh;
    background: #f5f7fa;
}

/* ========================================
   Hero Section
   ======================================== */

.dncg-archive-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 100px 0 80px;
    position: relative;
    overflow: hidden;
}

.dncg-archive-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

.dncg-archive-hero-content {
    position: relative;
    z-index: 1;
}

.dncg-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.dncg-container-wide {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.dncg-archive-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: white;
    margin: 0 0 20px;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.dncg-archive-intro {
    font-size: 1.25rem;
    color: rgba(255,255,255,0.95);
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    line-height: 1.6;
}

/* ========================================
   Filters Section
   ======================================== */

.dncg-filters-section {
    background: white;
    padding: 30px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.dncg-filter-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.dncg-filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: flex-end;
}

.dncg-filter-group {
    flex: 1;
    min-width: 250px;
}

.dncg-filter-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: #4a5568;
    margin-bottom: 8px;
}

.dncg-filter-select {
    width: 100%;
    padding: 10px 15px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    background: white;
    transition: all 0.3s ease;
    cursor: pointer;
}

.dncg-filter-select:hover {
    border-color: #cbd5e0;
}

.dncg-filter-select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.dncg-filter-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.dncg-btn {
    padding: 10px 24px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.dncg-btn-primary {
    background: #667eea;
    color: white;
}

.dncg-btn-primary:hover {
    background: #5a67d8;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.dncg-btn-secondary {
    background: #e2e8f0;
    color: #4a5568;
}

.dncg-btn-secondary:hover {
    background: #cbd5e0;
}

/* ========================================
   Results Bar
   ======================================== */

.dncg-results-bar {
    padding: 20px 0;
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 30px;
}

.dncg-results-count {
    font-size: 1.1rem;
    color: #4a5568;
    font-weight: 500;
}

/* ========================================
   Subject Areas Grid
   ======================================== */

.dncg-subject-areas-grid-section {
    padding: 40px 0 80px;
}

.dncg-subject-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

/* Subject Tile */
.dncg-subject-tile {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    background: white;
    min-height: 350px;
}

.dncg-subject-tile:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}

.dncg-subject-tile-link {
    display: block;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

/* Tile Image */
.dncg-tile-image {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    background-color: #667eea;
}

.dncg-tile-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, 
        rgba(0,0,0,0.2) 0%, 
        rgba(0,0,0,0.7) 100%);
    transition: opacity 0.3s ease;
}

.dncg-subject-tile:hover .dncg-tile-overlay {
    opacity: 0.9;
}

/* Tile Content */
.dncg-tile-content {
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 30px;
    color: white;
    z-index: 1;
}

.dncg-tile-header {
    flex-grow: 1;
}

.dncg-tile-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0 0 10px;
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.dncg-tile-intro {
    font-size: 0.95rem;
    line-height: 1.5;
    opacity: 0.95;
    margin: 0;
}

/* Stats */
.dncg-tile-stats {
    display: flex;
    gap: 20px;
    padding: 15px 0;
    border-top: 1px solid rgba(255,255,255,0.3);
    border-bottom: 1px solid rgba(255,255,255,0.3);
    margin: 20px 0;
}

.dncg-stat-item {
    font-size: 0.9rem;
    font-weight: 600;
    opacity: 0.95;
}

/* CTA Button */
.dncg-tile-cta {
    margin-top: auto;
}

.dncg-explore-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(255,255,255,0.2);
    border: 2px solid white;
    border-radius: 25px;
    color: white;
    font-weight: 600;
    transition: all 0.3s ease;
}

.dncg-subject-tile:hover .dncg-explore-btn {
    background: white;
    color: #667eea;
}

.dncg-explore-btn svg {
    transition: transform 0.3s ease;
}

.dncg-subject-tile:hover .dncg-explore-btn svg {
    transform: translateX(5px);
}

/* ========================================
   No Results State
   ======================================== */

.dncg-no-subjects-found {
    text-align: center;
    padding: 80px 20px;
}

.dncg-no-subjects-content {
    max-width: 500px;
    margin: 0 auto;
    padding: 40px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.dncg-no-subjects-content svg {
    stroke: #cbd5e0;
    margin-bottom: 20px;
}

.dncg-no-subjects-content h3 {
    font-size: 1.5rem;
    color: #2d3748;
    margin: 0 0 15px;
}

.dncg-no-subjects-content p {
    color: #718096;
    line-height: 1.6;
    margin: 0 0 25px;
}

/* ========================================
   Color Schemes for Tiles
   ======================================== */

.dncg-color-blue .dncg-tile-image {
    background-color: #4c51bf;
}

.dncg-color-green .dncg-tile-image {
    background-color: #48bb78;
}

.dncg-color-purple .dncg-tile-image {
    background-color: #9f7aea;
}

.dncg-color-red .dncg-tile-image {
    background-color: #f56565;
}

.dncg-color-yellow .dncg-tile-image {
    background-color: #ed8936;
}

.dncg-color-teal .dncg-tile-image {
    background-color: #38b2ac;
}

.dncg-color-pink .dncg-tile-image {
    background-color: #ed64a6;
}

/* ========================================
   Responsive Design
   ======================================== */

@media (max-width: 768px) {
    .dncg-archive-title {
        font-size: 2.5rem;
    }
    
    .dncg-archive-intro {
        font-size: 1.1rem;
    }
    
    .dncg-filter-row {
        flex-direction: column;
    }
    
    .dncg-filter-group {
        min-width: 100%;
    }
    
    .dncg-filter-actions {
        width: 100%;
        flex-direction: column;
    }
    
    .dncg-filter-actions .dncg-btn {
        width: 100%;
        justify-content: center;
    }
    
    .dncg-subject-grid {
        grid-template-columns: 1fr;
    }
    
    .dncg-tile-title {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .dncg-archive-hero {
        padding: 60px 0 40px;
    }
    
    .dncg-archive-title {
        font-size: 2rem;
    }
    
    .dncg-tile-content {
        padding: 20px;
    }
}