/* 
 * LINET Healthcare Theme - Custom Styles
 * Additional styling for enhanced visual design
 */

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

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Hero Section Enhancements */
.hero-section {
    position: relative;
    overflow: hidden;
    animation: fadeIn 0.8s ease-out;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><defs><pattern id="grid" width="40" height="40" patternUnits="userSpaceOnUse"><path d="M 40 0 L 0 0 0 40" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="1200" height="600" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    animation: slideInUp 0.8s ease-out 0.2s both;
}

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

/* Card Enhancements */
.card {
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.card-image-wrapper {
    overflow: hidden;
    height: 250px;
    background: linear-gradient(135deg, #f0f0f0 0%, #e8e8e8 100%);
}

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

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

.card-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-text {
    flex-grow: 1;
}

/* Button Enhancements */
.btn {
    position: relative;
    overflow: hidden;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: left 0.3s ease;
}

.btn:hover::before {
    left: 100%;
}

/* Navigation Enhancements */
.main-navigation {
    position: relative;
}

.main-navigation a {
    position: relative;
    padding-bottom: 5px;
}

.main-navigation a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-primary);
    transition: width 0.3s ease;
}

.main-navigation a:hover::after {
    width: 100%;
}

/* Post Meta Styling */
.post-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.9rem;
    color: var(--color-text-light);
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.post-meta-mini {
    display: flex;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--color-text-light);
    margin-bottom: 0.5rem;
}

/* Breadcrumbs */
.breadcrumbs {
    padding: 1rem 0;
    font-size: 0.9rem;
    color: var(--color-text-light);
}

.breadcrumbs a {
    color: var(--color-primary);
}

.breadcrumbs a:hover {
    text-decoration: underline;
}

/* Sidebar */
.sidebar {
    padding-left: 2rem;
}

.widget {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background-color: var(--color-secondary);
    border-radius: 8px;
}

.widget-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--color-primary);
}

.widget ul {
    list-style: none;
}

.widget li {
    margin-bottom: 0.5rem;
}

.widget a {
    color: var(--color-text-light);
}

.widget a:hover {
    color: var(--color-primary);
}

/* Archive Header */
.archive-header {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid var(--color-border);
}

.archive-title {
    color: var(--color-primary);
    margin-bottom: 1rem;
}

.archive-description {
    color: var(--color-text-light);
    font-size: 1.1rem;
}

/* Search Header */
.search-header {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid var(--color-border);
}

.search-title {
    color: var(--color-primary);
}

.search-title span {
    color: var(--color-accent);
}

/* Entry Header */
.entry-header {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid var(--color-border);
}

.entry-title {
    color: var(--color-primary);
    margin-bottom: 1rem;
}

.featured-image {
    margin: 2rem 0;
    border-radius: 8px;
    overflow: hidden;
}

.featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Entry Footer */
.entry-footer {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid var(--color-border);
}

.post-tags {
    color: var(--color-text-light);
}

.post-tags a {
    display: inline-block;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    padding: 0.25rem 0.75rem;
    background-color: var(--color-secondary);
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--color-primary);
    transition: all 0.3s ease;
}

.post-tags a:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
}

/* Comments */
.comments-area {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid var(--color-border);
}

.comments-title {
    color: var(--color-primary);
    margin-bottom: 2rem;
}

.comment-list {
    list-style: none;
    margin-bottom: 2rem;
}

.comment {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background-color: var(--color-secondary);
    border-radius: 8px;
}

.comment-author {
    font-weight: 600;
    color: var(--color-primary);
}

.comment-metadata {
    font-size: 0.9rem;
    color: var(--color-text-light);
    margin-bottom: 0.5rem;
}

.comment-text {
    margin-top: 1rem;
    color: var(--color-text);
}

/* No Posts Message */
.no-posts {
    text-align: center;
    padding: 3rem 1rem;
    background-color: var(--color-secondary);
    border-radius: 8px;
    grid-column: 1 / -1;
}

.no-posts p {
    color: var(--color-text-light);
    font-size: 1.1rem;
}

/* Footer Enhancements */
.footer-section {
    animation: fadeIn 0.8s ease-out;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 0.5rem;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .sidebar {
        padding-left: 0;
        margin-top: 2rem;
    }

    .grid-2 {
        grid-template-columns: 1fr;
    }

    .main-navigation {
        flex-direction: column;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .card-image-wrapper {
        height: 200px;
    }

    .hero-section h1 {
        font-size: 2rem;
    }

    .hero-section p {
        font-size: 1rem;
    }
}

/* Print Styles */
@media print {
    .site-header,
    .site-footer,
    .sidebar,
    .btn {
        display: none;
    }

    .main-content {
        max-width: 100%;
    }

    a {
        color: var(--color-primary);
        text-decoration: underline;
    }
}
