/**
 * Hub Pages CSS - Solutions Hub & Resources Hub
 * Shared styles for hub/directory pages
 */

/* ============================================
   HUB HERO SECTION
   ============================================ */

.hub-hero-section {
position: relative;
    min-height: 60vh;
    display: flex;
    align-items: center;
    max-width: 1600px;
    justify-content: center;
    overflow: hidden;
    margin: auto;
    border-radius: 0px 0px 50px 50px;
}

.hub-hero-section .hero-video-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hub-hero-section .hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hub-hero-section .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 31, 63, 0.85) 0%, rgba(0, 102, 204, 0.75) 100%);
    z-index: 1;
}

.hub-hero-section .container {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding: 2rem;
}

.hub-hero-section .hero-badge {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: #ffffff;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hub-hero-section h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hub-hero-section .hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.7;
    margin: 0;
}

/* ============================================
   HUB CONTENT SECTION
   ============================================ */

.hub-content-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.hub-content-section .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ============================================
   RESOURCES/SOLUTIONS GRID
   ============================================ */

.resources-grid,
.solutions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.resource-card,
.solution-card {
    text-decoration: none;
    display: block;
    transition: transform 0.3s ease;
}

.resource-card:hover,
.solution-card:hover {
    transform: translateY(-8px);
}

/* ============================================
   CARD WRAPPER
   ============================================ */

.platform-demo-wrapper {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

.resource-card:hover .platform-demo-wrapper,
.solution-card:hover .platform-demo-wrapper {
    box-shadow: 0 12px 40px rgba(0, 102, 204, 0.15);
}

/* Card Header */
.demo-header {
    padding: 2rem;
    background: linear-gradient(135deg, #0066cc 0%, #0052a3 100%);
    color: #ffffff;
}

.demo-header h3 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
}

.demo-header p {
    margin: 0.5rem 0 0 0;
    opacity: 0.9;
    font-size: 0.95rem;
    color: #ffffff;
}

.demo-header i {
    font-size: 2.5rem;
    color: #ffffff;
}

/* Card Body */
.platform-demo-wrapper > div:last-child {
    padding: 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.platform-demo-wrapper p {
    color: #64748b;
    line-height: 1.7;
    margin: 0 0 1.5rem 0;
    flex: 1;
}

/* Card Links */
.solution-card,
.resource-card {
    text-decoration: none;
    display: block;
    height: 100%;
}

.solution-card:hover .platform-demo-wrapper,
.resource-card:hover .platform-demo-wrapper {
    transform: translateY(-4px);
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.15);
}

.solution-card:hover .demo-header,
.resource-card:hover .demo-header {
    opacity: 0.95;
}

/* Demo Badges */
.demo-badge {
    display: inline-block;
    padding: 0.4rem 0.9rem;
    background: #e3f2fd;
    color: #0066cc;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 20px;
    white-space: nowrap;
}

.demo-badges {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

/* Pricing */
.card-pricing {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e9ecef;
}

.card-pricing strong {
    color: #0066cc;
    font-size: 1.25rem;
    font-weight: 700;
}

/* ============================================
   CTA SECTION
   ============================================ */

.hub-cta-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #001F3F 0%, #003366 100%);
    text-align: center;
}

.hub-cta-section .container {
    max-width: 800px;
    margin: 0 auto;
}

.hub-cta-section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1.5rem;
}

.hub-cta-section p {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.7;
    margin-bottom: 2.5rem;
}

.hub-cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-hub-cta {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-hub-cta-primary {
    background: #ffffff;
    color: #001F3F;
    box-shadow: 0 4px 20px rgba(255, 255, 255, 0.2);
}

.btn-hub-cta-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(255, 255, 255, 0.3);
    background: #f8f9fa;
}

.btn-hub-cta-outline {
    background: transparent;
    color: #ffffff;
    border: 2px solid #ffffff;
}

.btn-hub-cta-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
    .hub-hero-section {
        min-height: 70vh;
    }
    
    .hub-hero-section h1 {
        font-size: 2rem;
    }
    
    .hub-hero-section .hero-subtitle {
        font-size: 1.05rem;
    }
    
    .hub-content-section {
        padding: 60px 0;
    }
    
    .resources-grid,
    .solutions-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .demo-header {
        padding: 1.5rem;
    }
    
    .platform-demo-wrapper > div:last-child {
        padding: 1.5rem;
    }
    
    .hub-cta-section {
        padding: 60px 0;
    }
    
    .hub-cta-section h2 {
        font-size: 2rem;
    }
    
    .hub-cta-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    
    .btn-hub-cta {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .hub-hero-section h1 {
        font-size: 1.75rem;
    }
    
    .hub-hero-section .hero-subtitle {
        font-size: 1rem;
    }
    
    .demo-header h3 {
        font-size: 1.25rem;
    }
    
    .demo-header i {
        font-size: 2rem;
    }
}
