/* Blog Styles for OneNetwork Tech
   Place this in: /public_html/blogg/blog-styles.css */

:root {
    --primary-color: #959292bf;
    --secondary-color: #2c3e50;
    --accent-color: #f093fb;
    --text-dark: #2d3748;
    --text-light: #718096;
    --bg-light: #f7fafc;
    --border-color: #e2e8f0;
    --card-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --card-shadow-hover: 0 10px 20px rgba(0, 0, 0, 0.15);
}

/* Blog Hero */
.blog-hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 100px 0 80px;
    text-align: center;
}

.blog-hero h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    animation: fadeInUp 0.6s ease;
}

.blog-hero p {
    font-size: 1.25rem;
    opacity: 0.95;
    margin-bottom: 2rem;
    animation: fadeInUp 0.6s ease 0.1s backwards;
}

/* Blog Search */
.blog-search {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    gap: 10px;
    animation: fadeInUp 0.6s ease 0.2s backwards;
}

.blog-search input {
    flex: 1;
    padding: 15px 20px;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    outline: none;
}

.blog-search button {
    padding: 15px 30px;
    background: white;
    color: var(--primary-color);
    border: none;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.blog-search button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Blog Layout */
.blog-section {
    padding: 60px 0;
    background: var(--bg-light);
}

.blog-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 40px;
}

/* Blog Main Content */
.blog-main {
    min-width: 0;
}

.blog-filter-info {
    background: white;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: var(--card-shadow);
}

.blog-filter-info p {
    margin: 0;
    color: var(--text-dark);
}

.clear-filter {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: opacity 0.3s;
}

.clear-filter:hover {
    opacity: 0.7;
}

/* Blog Grid */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

/* Blog Card */
.blog-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.language-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.95);
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 1.2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--card-shadow-hover);
}

.blog-card-image {
    display: block;
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
}

/* Google Translate Styling */
#google_translate_element {
    background: rgba(255, 255, 255, 0.15);
    padding: 15px;
    border-radius: 10px;
    display: inline-block;
}

.goog-te-banner-frame {
    display: none !important;
}

body {
    top: 0 !important;
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-card:hover .blog-card-image img {
    transform: scale(1.1);
}

.blog-card-content {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-card-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 0.875rem;
}

.blog-category {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.blog-date {
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 5px;
}

.blog-card-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.3;
}

.blog-card-title a {
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.3s;
}

.blog-card-title a:hover {
    color: var(--primary-color);
}

.blog-card-excerpt {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 20px;
    flex: 1;
}

.blog-read-more {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: gap 0.3s;
}

.blog-read-more:hover {
    gap: 12px;
}

/* Pagination */
.blog-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 50px;
}

.pagination-btn {
    padding: 10px 15px;
    background: white;
    color: var(--text-dark);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s;
    box-shadow: var(--card-shadow);
}

.pagination-btn:hover,
.pagination-btn.active {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    transform: translateY(-2px);
}

/* Sidebar */
.blog-sidebar {
    position: sticky;
    top: 100px;
    align-self: start;
}

.sidebar-widget {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: var(--card-shadow);
    margin-bottom: 30px;
}

.sidebar-widget h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-dark);
    padding-bottom: 15px;
    border-bottom: 2px solid var(--border-color);
}

/* Category List */
.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-list li {
    margin-bottom: 12px;
}

.category-list a {
    color: var(--text-dark);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border-radius: 8px;
    transition: all 0.3s;
}

.category-list a:hover {
    background: var(--bg-light);
    color: var(--primary-color);
    transform: translateX(5px);
}

.category-list i {
    color: var(--primary-color);
    width: 20px;
}

/* Recent Posts */
.recent-posts-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.recent-posts-list li {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.recent-posts-list li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.recent-posts-list a {
    display: flex;
    gap: 15px;
    text-decoration: none;
    color: var(--text-dark);
    transition: opacity 0.3s;
}

.recent-posts-list a:hover {
    opacity: 0.7;
}

.recent-posts-list img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

.recent-posts-list h4 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 5px;
    line-height: 1.4;
}

.recent-posts-list span {
    font-size: 0.8rem;
    color: var(--text-light);
}

/* No Posts Message */
.no-posts {
    text-align: center;
    padding: 80px 20px;
    background: white;
    border-radius: 15px;
}

.no-posts i {
    font-size: 4rem;
    color: var(--text-light);
    margin-bottom: 20px;
}

.no-posts p {
    font-size: 1.25rem;
    color: var(--text-light);
}

/* Single Post Styles */
.post-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 80px 0 60px;
}

.post-meta-info {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.post-category {
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
}

.post-date,
.post-author,
.post-views {
    display: flex;
    align-items: center;
    gap: 8px;
    opacity: 0.9;
}

.post-title {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.2;
    margin: 0;
}

.post-content-wrapper {
    padding: 60px 0;
    background: white;
}

.post-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 60px;
}

.post-content {
    max-width: 800px;
}

.post-featured-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 15px;
    margin-bottom: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.post-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

.post-content h2,
.post-content h3,
.post-content h4 {
    color: var(--text-dark);
    font-weight: 700;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.post-content h2 {
    font-size: 2rem;
}

.post-content h3 {
    font-size: 1.5rem;
}

.post-content ul,
.post-content ol {
    margin-bottom: 1.5rem;
    padding-left: 30px;
}

.post-content li {
    margin-bottom: 0.5rem;
    line-height: 1.8;
}

.post-content a {
    color: var(--primary-color);
    text-decoration: none;
    border-bottom: 2px solid var(--primary-color);
    transition: opacity 0.3s;
}

.post-content a:hover {
    opacity: 0.7;
}

/* Share Buttons */
.share-buttons {
    margin-top: 40px;
    padding-top: 40px;
    border-top: 2px solid var(--border-color);
}

.share-buttons h3 {
    font-size: 1.25rem;
    margin-bottom: 20px;
}

.share-btn-group {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 50px;
    text-decoration: none;
    color: white;
    font-weight: 600;
    transition: transform 0.3s;
}

.share-btn:hover {
    transform: translateY(-3px);
}

.share-btn.facebook {
    background: #1877f2;
}

.share-btn.twitter {
    background: #1da1f2;
}

.share-btn.linkedin {
    background: #0a66c2;
}

.share-btn.email {
    background: #ea4335;
}

/* Related Posts */
.related-posts {
    margin-top: 60px;
    padding-top: 60px;
    border-top: 2px solid var(--border-color);
}

.related-posts h3 {
    font-size: 2rem;
    margin-bottom: 30px;
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
}

/* Back to Blog */
.back-to-blog {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    margin-bottom: 30px;
    transition: gap 0.3s;
}

.back-to-blog:hover {
    gap: 15px;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .blog-layout,
    .post-layout {
        grid-template-columns: 1fr;
    }
    
    .blog-sidebar {
        position: static;
    }
}

@media (max-width: 768px) {
    .blog-hero h1 {
        font-size: 2rem;
    }
    
    .blog-hero p {
        font-size: 1rem;
    }
    
    .blog-search {
        flex-direction: column;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .post-title {
        font-size: 2rem;
    }
    
    .post-featured-image {
        height: 250px;
    }
    
    .blog-filter-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .blog-hero {
        padding: 60px 0 40px;
    }
    
    .post-meta-info {
        font-size: 0.85rem;
    }
    
    .share-btn-group {
        justify-content: center;
    }
}