/* Content Page Styles */

.page-header {
    padding: 160px 0 60px;
    text-align: center;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-dark) 100%);
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.7);
}

/* Content Controls */
.content-controls {
    padding: 40px 0;
    background: var(--bg-secondary);
}

.search-filter-bar {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
}

.search-box {
    position: relative;
    width: 100%;
    max-width: 500px;
}

.search-box input {
    width: 100%;
    padding: 15px 45px 15px 20px;
    background: var(--bg-card);
    border: 2px solid rgba(139, 126, 255, 0.2);
    border-radius: 30px;
    color: white;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.search-box input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 20px rgba(139, 126, 255, 0.3);
}

.search-icon {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
}

.filter-categories {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.category-filter {
    padding: 10px 20px;
    background: var(--bg-card);
    border: 2px solid rgba(139, 126, 255, 0.2);
    border-radius: 25px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.category-filter:hover {
    border-color: var(--primary-color);
    background: rgba(139, 126, 255, 0.1);
}

.category-filter.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

/* Content Grid */
.content-section {
    padding: 60px 0;
    min-height: 500px;
}

.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

/* Content Card */
.content-card {
    background: var(--bg-card);
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    text-decoration: none;
    display: block;
    color: inherit;
}

.content-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 40px rgba(139, 126, 255, 0.3);
}

.content-image {
    width: 100%;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    font-size: 4rem;
}

.content-body {
    padding: 25px;
}

.content-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
}

.content-category {
    padding: 5px 12px;
    background: var(--primary-color);
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 600;
}

.content-card h3 {
    font-size: 1.4rem;
    margin-bottom: 12px;
    color: white;
}

.content-excerpt {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    margin-bottom: 15px;
}

.content-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.tag {
    padding: 5px 12px;
    background: rgba(139, 126, 255, 0.2);
    border-radius: 15px;
    font-size: 0.75rem;
    color: var(--primary-color);
}

/* Loading State */
.loading {
    text-align: center;
    padding: 60px 20px;
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.6);
}

/* No Results */
.no-results {
    text-align: center;
    padding: 60px 20px;
    color: rgba(255, 255, 255, 0.6);
}

.no-results p {
    font-size: 1.2rem;
}

/* Content Article Page */
.content-article {
    padding: 160px 0 60px;
    min-height: 80vh;
}

#content-container {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.back-link {
    display: inline-flex;
    align-items: center;
    color: var(--primary-color);
    text-decoration: none;
    font-size: 1rem;
    margin-bottom: 30px;
    transition: all 0.3s ease;
}

.back-link:hover {
    color: var(--secondary-color);
    transform: translateX(-5px);
}

.article-meta {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid rgba(139, 126, 255, 0.2);
}

.article-body {
    color: white;
    max-width: 900px;
}

.article-body h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.article-body h2 {
    font-size: 2rem;
    margin: 30px 0 15px;
    color: var(--primary-color);
}

.article-body h3 {
    font-size: 1.5rem;
    margin: 25px 0 12px;
    color: var(--secondary-color);
}

.article-body p {
    line-height: 1.8;
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.8);
}

.article-body ul, .article-body ol {
    margin: 15px 0;
    padding-left: 25px;
    line-height: 1.8;
}

.article-body li {
    margin-bottom: 10px;
    color: rgba(255, 255, 255, 0.8);
}

.article-body code {
    background: var(--bg-secondary);
    padding: 3px 8px;
    border-radius: 5px;
    font-family: 'Courier New', monospace;
    color: var(--primary-color);
}

.article-body pre {
    background: var(--bg-secondary);
    padding: 20px;
    border-radius: 10px;
    overflow-x: auto;
    margin: 20px 0;
    border-left: 4px solid var(--primary-color);
}

.article-body pre code {
    background: none;
    padding: 0;
    color: rgba(255, 255, 255, 0.9);
}

.article-body blockquote {
    border-left: 4px solid var(--primary-color);
    padding-left: 20px;
    margin: 20px 0;
    color: rgba(255, 255, 255, 0.7);
    font-style: italic;
}

.article-body img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 20px 0;
}

.article-body a {
    color: var(--primary-color);
    text-decoration: underline;
    transition: color 0.3s ease;
}

.article-body a:hover {
    color: var(--secondary-color);
}

.error-message {
    text-align: center;
    padding: 60px 20px;
}

.error-message h2 {
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.error-message p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 30px;
}

/* Responsive */
@media (max-width: 768px) {
    .page-header {
        padding: 140px 0 40px;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
    
    .content-grid {
        grid-template-columns: 1fr;
    }
    
    .content-article {
        padding: 140px 0 40px;
    }
    
    .article-body h1 {
        font-size: 1.8rem;
    }
    
    .article-body h2 {
        font-size: 1.5rem;
    }
    
    .article-body h3 {
        font-size: 1.2rem;
    }
    
    .search-filter-bar {
        padding: 20px;
    }
}
