/* Public Blog Hub Styles - AhteVerse */

.blogs-main {
    padding-top: var(--header-height);
    min-height: 100vh;
    background: #060913;
}

/* Hero Section */
.blogs-hero {
    position: relative;
    padding: 100px 40px 60px;
    text-align: center;
    overflow: hidden;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.hero-background {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(59, 130, 246, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.glitch-text {
    font-family: var(--font-heading);
    font-size: 4rem;
    font-weight: 900;
    text-transform: uppercase;
    color: #fff;
    margin-bottom: 20px;
    letter-spacing: 0.05em;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.6;
}

/* Grid Section */
.blogs-grid-section {
    padding: 60px 40px;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
}

.grid-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.grid-header h2 {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: #fff;
}

.glass-select {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 10px 20px;
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 1rem;
    outline: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.glass-select:focus, .glass-select:hover {
    border-color: var(--electric-blue);
    background: rgba(255, 255, 255, 0.1);
}

.glass-select option {
    background: #0f172a;
    color: #fff;
}

/* Blog Cards */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.blog-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    text-decoration: none;
    height: 100%;
}

.blog-card:hover {
    transform: translateY(-10px);
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(59, 130, 246, 0.1);
}

.card-image-wrap {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    position: relative;
    background: #0f172a;
}

.card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.blog-card:hover .card-image {
    transform: scale(1.05);
}

.card-category {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--electric-blue);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    z-index: 2;
}

.card-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.card-title {
    color: #fff;
    font-size: 1.4rem;
    font-family: var(--font-heading);
    margin-bottom: 12px;
    line-height: 1.3;
}

.card-excerpt {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 15px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.4);
}

.meta-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.meta-right {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Skeleton Loading State */
.skeleton {
    animation: pulse 1.5s infinite;
}

.skeleton .card-image-wrap { background: rgba(255, 255, 255, 0.05); }
.skeleton .card-content { min-height: 200px; background: transparent; }

@keyframes pulse {
    0% { opacity: 0.6; }
    50% { opacity: 0.3; }
    100% { opacity: 0.6; }
}

/* Empty State */
.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 16px;
    border: 1px dashed rgba(255, 255, 255, 0.1);
}

.empty-state i {
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.2);
    margin-bottom: 15px;
}

.empty-state h3 {
    color: #fff;
    margin-bottom: 10px;
}

.empty-state p {
    color: rgba(255, 255, 255, 0.5);
}

@media (max-width: 768px) {
    .glitch-text { font-size: 2.5rem; }
    .grid-header { flex-direction: column; align-items: flex-start; gap: 15px; }
    .glass-select { width: 100%; }
    .blogs-grid-section { padding: 40px 15px; }
    
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .card-content { padding: 15px; }
    .card-title { font-size: 1rem; }
    .card-excerpt { display: none; } /* Hide excerpt on 2-col mobile for space */
    .card-meta { font-size: 0.7rem; }
}
