/**
 * Advanced Blog System Styles
 * Professional styling for modern blog components
 */

/* Blog Filter Styles */
.filter-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.filter-btn {
    padding: 0.5rem 1rem;
    border: 2px solid #e5e7eb;
    background: white;
    color: #6b7280;
    border-radius: 9999px;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
}

.filter-btn:hover {
    border-color: #FF7A00;
    color: #FF7A00;
}

.filter-btn.active {
    background: #FF7A00;
    border-color: #FF7A00;
    color: white;
}

/* Blog Grid Styles */
#blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.blog-card {
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid #f3f4f6;
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.blog-card-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    overflow: hidden;
}

.blog-card-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.1);
}

.blog-card-content {
    padding: 1.5rem;
}

.blog-card-category {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: #FF7A00;
    color: white;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.blog-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0B1F3A;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.blog-card-excerpt {
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.blog-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid #f3f4f6;
    font-size: 0.875rem;
    color: #9ca3af;
}

.blog-card-date {
    font-weight: 500;
}

.blog-card-read-time {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.blog-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.blog-tag {
    padding: 0.25rem 0.5rem;
    background: #f3f4f6;
    color: #6b7280;
    border-radius: 0.375rem;
    font-size: 0.75rem;
    font-weight: 500;
}

/* Blog Loading State */
.blog-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    color: #6b7280;
}

/* Blog Error State */
.blog-error {
    text-align: center;
    padding: 3rem;
    color: #ef4444;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 0.5rem;
}

/* Pagination Styles */
#blog-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.pagination-btn {
    padding: 0.5rem 1rem;
    border: 1px solid #e5e7eb;
    background: white;
    color: #6b7280;
    border-radius: 0.375rem;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
}

.pagination-btn:hover:not(:disabled) {
    border-color: #FF7A00;
    color: #FF7A00;
}

.pagination-btn.active {
    background: #FF7A00;
    border-color: #FF7A00;
    color: white;
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Portfolio Styles */
#portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.portfolio-category {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid #f3f4f6;
}

.portfolio-category:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.category-icon {
    width: 4rem;
    height: 4rem;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.category-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0B1F3A;
    margin-bottom: 0.75rem;
}

.category-description {
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.project-count {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: #f3f4f6;
    color: #6b7280;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.category-projects {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.project-preview {
    padding: 1rem;
    border: 1px solid #f3f4f6;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 1rem;
}

.project-preview:hover {
    background: #f9fafb;
    border-color: #FF7A00;
}

.project-preview h4 {
    font-weight: 600;
    color: #0B1F3A;
    margin-bottom: 0.5rem;
}

.project-preview p {
    color: #6b7280;
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
}

.tag {
    padding: 0.125rem 0.5rem;
    background: #FF7A00;
    color: white;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
}

/* Contact Cards Styles */
.contact-cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.contact-card {
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid #f3f4f6;
}

.contact-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.contact-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.contact-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.contact-icon.linkedin {
    background: #0077b5;
}

.contact-icon.whatsapp {
    background: #25d366;
}

.contact-icon.email {
    background: #ea4335;
}

.contact-icon.location {
    background: #6b7280;
}

.contact-card-title {
    font-weight: 600;
    color: #0B1F3A;
    margin-bottom: 0.25rem;
}

.contact-card-subtitle {
    color: #6b7280;
    font-size: 0.875rem;
}

.contact-card-action {
    margin-top: 1rem;
}

.contact-card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #FF7A00;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-card-link:hover {
    color: #e56500;
}

.contact-card-text {
    color: #6b7280;
    font-weight: 500;
}

.contact-time-badge {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.75rem;
    color: #9ca3af;
}

/* Responsive Design */
@media (max-width: 768px) {
    #blog-grid {
        grid-template-columns: 1fr;
    }
    
    #portfolio-grid {
        grid-template-columns: 1fr;
    }
    
    .filter-container {
        gap: 0.25rem;
    }
    
    .filter-btn {
        padding: 0.375rem 0.75rem;
        font-size: 0.875rem;
    }
    
    .contact-cards-container {
        grid-template-columns: 1fr;
    }
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.slide-up {
    transform: translateY(30px);
    opacity: 0;
    transition: all 0.5s ease;
}

.slide-up.visible {
    transform: translateY(0);
    opacity: 1;
}