/* Blogs Page Specific Styles */

/* Hero Section */
.blogs-hero {
    height: 60vh;
    min-height: 500px;
    background: linear-gradient(135deg, var(--zasti-black), #1a1a2e);
    position: relative;
    display: flex;
    align-items: center;
    padding-top: 80px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="40" height="40" viewBox="0 0 40 40" opacity="0.2"><circle cx="20" cy="20" r="2" fill="%230057B8"/><circle cx="10" cy="10" r="1" fill="%2320c997"/><circle cx="30" cy="15" r="1.5" fill="%230057B8"/><circle cx="15" cy="30" r="1" fill="%2320c997"/></svg>');
    background-size: 80px 80px;
    opacity: 0.3;
    animation: float 20s ease-in-out infinite;
}

.network-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(0, 87, 184, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(32, 201, 151, 0.15) 0%, transparent 50%);
}

.hero-content {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    text-align: center;
    z-index: 2;
    position: relative;
}

.hero-text h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--zasti-white);
    line-height: 1.2;
}

.hero-text p {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Blogs Grid Section */
.blogs-grid-section {
    padding: 5rem 0;
    background-color: var(--zasti-dark-gray);
}

.blogs-filter {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.75rem 1.5rem;
    border: 2px solid rgba(255, 255, 255, 0.1);
    background: transparent;
    color: rgba(255, 255, 255, 0.7);
    border-radius: var(--border-radius-md);
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.filter-btn:hover {
    border-color: var(--zasti-blue);
    color: var(--zasti-blue);
    transform: translateY(-2px);
}

.filter-btn.active {
    background: linear-gradient(135deg, var(--zasti-blue), var(--zasti-green));
    color: var(--zasti-white);
    border-color: transparent;
}

/* Blogs Grid */
.blogs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.blog-card {
    background: rgba(255, 255, 255, 0.02);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    opacity: 1;
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border-color: rgba(0, 87, 184, 0.3);
}

.blog-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-card:hover .blog-image img {
    transform: scale(1.05);
}

.blog-overlay {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(0, 87, 184, 0.9);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius-sm);
    font-size: 0.875rem;
    font-weight: 500;
}

.blog-date {
    margin: 0;
}

.blog-content {
    padding: 2rem;
}

.blog-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.blog-author {
    color: var(--zasti-blue);
    font-weight: 600;
    font-size: 0.875rem;
}

.blog-category {
    background: rgba(0, 87, 184, 0.1);
    color: var(--zasti-blue);
    padding: 0.25rem 0.75rem;
    border-radius: var(--border-radius-sm);
    font-size: 0.75rem;
    font-weight: 500;
}

.blog-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--zasti-white);
    line-height: 1.3;
    min-height: 4rem;
}

.blog-content p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.read-more {
    color: var(--zasti-blue);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.read-more:hover {
    color: var(--zasti-green);
    transform: translateX(5px);
}

.read-more i {
    font-size: 0.875rem;
    transition: transform 0.3s ease;
}

.read-more:hover i {
    transform: translateX(3px);
}

/* Blog Modals */
.blog-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: var(--zasti-dark-gray);
    margin: 2% auto;
    padding: 0;
    border-radius: var(--border-radius-lg);
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-header {
    padding: 2rem;
    background: linear-gradient(135deg, rgba(0, 87, 184, 0.1), rgba(32, 201, 151, 0.1));
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    font-size: 1.75rem;
    color: var(--zasti-white);
    margin: 0;
    font-weight: 600;
    line-height: 1.3;
}

.close-modal {
    color: rgba(255, 255, 255, 0.6);
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
    line-height: 1;
}

.close-modal:hover {
    color: var(--zasti-white);
}

.modal-body {
    padding: 2rem;
    max-height: calc(90vh - 140px);
    overflow-y: auto;
}

.blog-meta-full {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.blog-meta-full .blog-author {
    color: var(--zasti-blue);
    font-weight: 600;
}

.blog-meta-full .blog-date {
    color: rgba(255, 255, 255, 0.6);
}

.blog-content-full p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.blog-content-full p:last-child {
    margin-bottom: 0;
}

.blog-content-full strong {
    color: var(--zasti-white);
    font-weight: 600;
}

/* Animations */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

/* Ensure proper page layout and footer positioning */
.blogs-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.blogs-grid-section {
    flex: 1;
    min-height: calc(100vh - 200px);
    padding-bottom: 4rem;
}

.blogs-grid {
    margin-bottom: 2rem;
}

.blog-card {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Footer positioning */
.main-footer {
    margin-top: auto;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: white;
    padding: 3rem 0 1rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: #0057B8;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #0057B8;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.footer-logo span {
    font-size: 1.5rem;
    font-weight: bold;
    color: #0057B8;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(0, 87, 184, 0.1);
    border-radius: 50%;
    color: #0057B8;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: #0057B8;
    color: white;
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #0057B8;
}

/* Responsive footer */
@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-text h1 {
        font-size: 2.5rem;
    }
    
    .hero-text p {
        font-size: 1.1rem;
    }
    
    .blogs-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .blogs-filter {
        gap: 0.75rem;
    }
    
    .filter-btn {
        padding: 0.625rem 1.25rem;
        font-size: 0.875rem;
    }
    
    .blog-content {
        padding: 1.5rem;
    }
    
    .blog-content h3 {
        font-size: 1.25rem;
        min-height: auto;
    }
    
    .modal-content {
        width: 95%;
        margin: 5% auto;
    }
    
    .modal-header {
        padding: 1.5rem;
    }
    
    .modal-header h2 {
        font-size: 1.5rem;
    }
    
    .modal-body {
        padding: 1.5rem;
    }
    
    .blog-meta-full {
        flex-direction: column;
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    .blogs-hero {
        height: 50vh;
        min-height: 400px;
    }
    
    .hero-text h1 {
        font-size: 2rem;
    }
    
    .hero-text p {
        font-size: 1rem;
    }
    
    .blogs-grid {
        grid-template-columns: 1fr;
    }
    
    .blog-card {
        margin: 0 1rem;
    }
    
    .modal-content {
        width: 98%;
        margin: 2% auto;
    }
} 