/* Resources Pages Styles (Blog, Whitepapers, Webinars) */

/* Font Variables */
:root {
    --font-heading: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-body: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Typography for Resources */
.resources h1, .resources h2, .resources h3 {
    font-family: var(--font-heading);
}

.resources p, .resources span, .resources div {
    font-family: var(--font-body);
}

/* Resource Cards */
.resource-card h3, .resource-card h4 {
    font-family: var(--font-heading);
}

.resource-card p, .resource-card span {
    font-family: var(--font-body);
}

/* Blog Stats & Resource Stats */
.blog-stats,
.resources-stats,
.webinar-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin: 2rem 0;
}

.blog-stats .stat,
.resources-stats .stat,
.webinar-stats .stat {
    text-align: center;
}

.blog-stats .stat-number,
.resources-stats .stat-number,
.webinar-stats .stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: #3b82f6;
    margin-bottom: 0.5rem;
}

.blog-stats .stat-label,
.resources-stats .stat-label,
.webinar-stats .stat-label {
    font-size: 0.9rem;
    color: #64748b;
    font-weight: 500;
}

/* Featured Article/Resource */
.featured-article,
.featured-resource {
    padding: 4rem 0;
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
}

.featured-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    align-items: center;
}

.resource-preview {
    display: flex;
    justify-content: center;
}

.resource-cover {
    width: 200px;
    height: 260px;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 12px 24px rgba(59, 130, 246, 0.3);
    position: relative;
}

.resource-cover i {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.resource-type {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.featured-badge {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 1rem;
}

.article-meta,
.resource-meta {
    display: flex;
    gap: 1rem;
    margin: 1rem 0;
    flex-wrap: wrap;
}

.article-date,
.article-category,
.read-time,
.meta-item {
    background: #eff6ff;
    color: #3b82f6;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.article-author {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1.5rem 0;
}

.author-avatar i {
    font-size: 2.5rem;
    color: #64748b;
}

.author-name {
    font-weight: 600;
    color: #1e293b;
    display: block;
}

.author-title {
    font-size: 0.9rem;
    color: #64748b;
}

.resource-highlights {
    margin: 1.5rem 0;
}

.resource-highlights h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 1rem;
}

.resource-highlights ul {
    list-style: none;
    padding: 0;
}

.resource-highlights li {
    padding: 0.5rem 0;
    color: #64748b;
    position: relative;
    padding-left: 1.5rem;
}

.resource-highlights li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #10b981;
    font-weight: bold;
}

/* Categories */
.blog-categories,
.resource-categories {
    padding: 4rem 0;
    background: white;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.category-card {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 2px solid #e2e8f0;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.category-card:hover,
.category-card.active {
    border-color: #3b82f6;
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.category-card i {
    font-size: 2rem;
    color: #3b82f6;
    margin-bottom: 1rem;
}

.category-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.article-count,
.resource-count {
    font-size: 0.8rem;
    color: #64748b;
}

/* Articles Grid */
.blog-articles,
.resources-grid-section {
    padding: 4rem 0;
    background: #f8fafc;
}

.articles-grid,
.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.article-card,
.resource-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.article-card:hover,
.resource-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.article-image {
    height: 200px;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.article-image i {
    font-size: 3rem;
}

.article-content,
.resource-info {
    padding: 2rem;
}

.article-content h3,
.resource-info h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.article-content p,
.resource-info p {
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.article-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid #f1f5f9;
}

.resource-topics {
    display: flex;
    gap: 0.5rem;
    margin: 1rem 0;
    flex-wrap: wrap;
}

.topic {
    background: #eff6ff;
    color: #3b82f6;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.pages,
.downloads {
    font-size: 0.8rem;
    color: #64748b;
    margin-right: 1rem;
}

.download-btn {
    width: 100%;
    margin-top: 1rem;
}

/* Load More */
.load-more-section {
    text-align: center;
    margin-top: 3rem;
}

/* Newsletter Signup */
.newsletter-signup {
    padding: 4rem 0;
    background: linear-gradient(135deg, #1e293b, #334155);
    color: white;
}

.newsletter-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.newsletter-text h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.newsletter-form-container {
    display: flex;
    gap: 1rem;
}

.newsletter-form-container input {
    flex: 1;
    padding: 1rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
}

.newsletter-disclaimer {
    font-size: 0.8rem;
    color: #94a3b8;
    margin-top: 0.5rem;
}

/* Webinars Specific */
.upcoming-webinars,
.past-webinars {
    padding: 4rem 0;
}

.upcoming-webinars {
    background: white;
}

.past-webinars {
    background: #f8fafc;
}

.webinars-grid,
.recordings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.webinar-card,
.recording-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
}

.webinar-card:hover,
.recording-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.webinar-card.featured {
    border: 2px solid #3b82f6;
}

.webinar-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 2;
}

.webinar-date {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: white;
    padding: 1rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 2;
}

.date-day {
    font-size: 1.5rem;
    font-weight: 700;
    color: #3b82f6;
}

.date-month {
    font-size: 0.8rem;
    color: #64748b;
    font-weight: 500;
}

.webinar-content,
.recording-content {
    padding: 2rem;
    padding-top: 4rem;
}

.webinar-details {
    margin: 1.5rem 0;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: #64748b;
}

.detail-item i {
    color: #3b82f6;
    width: 16px;
}

.register-btn,
.watch-btn {
    width: 100%;
    margin-top: 1rem;
}

.recording-thumbnail {
    height: 200px;
    background: linear-gradient(135deg, #1e293b, #334155);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    position: relative;
}

.recording-thumbnail i {
    font-size: 4rem;
    opacity: 0.8;
}

.duration {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
}

.recording-meta {
    display: flex;
    justify-content: space-between;
    margin: 1rem 0;
    font-size: 0.8rem;
    color: #64748b;
}

/* Download Modal */
.download-modal,
.registration-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    border-radius: 16px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 2rem 1rem;
    border-bottom: 1px solid #e2e8f0;
}

.modal-header h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1e293b;
}

.modal-close {
    background: none;
    border: none;
    font-size: 2rem;
    color: #64748b;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-body {
    padding: 2rem;
}

.download-form,
.registration-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 500;
    color: #374151;
}

.form-group input,
.form-group select {
    padding: 0.75rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.checkbox-group {
    flex-direction: row;
    align-items: center;
    gap: 0.75rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.9rem;
    color: #64748b;
}

.webinar-details-modal {
    background: #f8fafc;
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 2rem;
}

.webinar-details-modal h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 1rem;
}

.webinar-details-modal p {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    color: #64748b;
}

.webinar-details-modal i {
    color: #3b82f6;
    width: 16px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .featured-content,
    .newsletter-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .blog-stats,
    .resources-stats,
    .webinar-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .articles-grid,
    .resources-grid,
    .webinars-grid,
    .recordings-grid {
        grid-template-columns: 1fr;
    }
    
    .newsletter-form-container {
        flex-direction: column;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        width: 95%;
        margin: 1rem;
    }
}
