/* Blog Styles */
.blog-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    background: var(--bs-body-bg);
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.blog-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15) !important;
}

.blog-card .card-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
    font-size: 1.1rem;
    font-weight: 600;
}

.blog-card .card-title a:hover {
    color: var(--primary-color) !important;
}

/* Clean Blog Header */
.blog-header {
    background: var(--bs-body-bg);
    color: var(--bs-body-color);
    padding: 3rem 0;
    margin-bottom: 2rem;
    border-bottom: 1px solid #e2e8f0;
}

.blog-header h1 {
    color: var(--primary-color);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.blog-header .lead {
    color: var(--bs-body-color);
    opacity: 0.8;
    font-size: 1.1rem;
}

/* Unified Blog Post Container */
.blog-post-container {
    background: var(--bs-body-bg);
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    overflow: hidden;
    margin-bottom: 2rem;
}

.blog-sidebar .card {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: transform 0.2s ease;
    background: var(--bs-body-bg);
    margin-bottom: 1.5rem;
}

.blog-sidebar .card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.blog-sidebar .card-header {
    background: var(--bs-body-bg);
    border-bottom: 1px solid #e2e8f0;
    padding: 1rem 1.25rem;
    border-radius: 12px 12px 0 0;
}

.blog-sidebar .card-header h5 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-color);
}

.blog-sidebar .card-body {
    padding: 1.25rem;
}

/* Clean Blog Post Header */
.blog-post-header {
    background: var(--bs-body-bg);
    color: var(--bs-body-color);
    padding: 2rem;
    margin-bottom: 0;
    border-bottom: 1px solid #e2e8f0;
}

.blog-post-header h1 {
    color: var(--primary-color);
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.blog-post-meta {
    color: var(--bs-body-color);
    opacity: 0.7;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.blog-post-excerpt {
    color: var(--bs-body-color);
    opacity: 0.8;
    font-size: 1.1rem;
    font-style: italic;
}

/* Clean Blog Post Content */
.blog-post-content {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--bs-body-color);
    background: var(--bs-body-bg);
    margin-bottom: 0;
}

.blog-post-content .content-wrapper {
    background: var(--bs-body-bg);
    padding: 2rem;
}

.blog-post-content .content-wrapper p {
    margin-bottom: 1.5rem;
    color: var(--bs-body-color);
}

.blog-post-content .content-wrapper h1,
.blog-post-content .content-wrapper h2,
.blog-post-content .content-wrapper h3,
.blog-post-content .content-wrapper h4,
.blog-post-content .content-wrapper h5,
.blog-post-content .content-wrapper h6 {
    color: var(--primary-color);
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.blog-post-content .content-wrapper h1 { font-size: 1.8rem; }
.blog-post-content .content-wrapper h2 { font-size: 1.5rem; }
.blog-post-content .content-wrapper h3 { font-size: 1.3rem; }
.blog-post-content .content-wrapper h4 { font-size: 1.1rem; }
.blog-post-content .content-wrapper h5 { font-size: 1rem; }
.blog-post-content .content-wrapper h6 { font-size: 0.9rem; }

/* Rich Text Content Styles */
.blog-post-content .content-wrapper ul,
.blog-post-content .content-wrapper ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.blog-post-content .content-wrapper ul li,
.blog-post-content .content-wrapper ol li {
    margin-bottom: 0.5rem;
    color: var(--bs-body-color);
}

.blog-post-content .content-wrapper ul {
    list-style-type: disc;
}

.blog-post-content .content-wrapper ol {
    list-style-type: decimal;
}

.blog-post-content .content-wrapper blockquote {
    border-left: 4px solid var(--primary-color);
    padding-left: 1.5rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: var(--bs-body-color);
    opacity: 0.8;
}

.blog-post-content .content-wrapper blockquote p {
    margin-bottom: 0.5rem;
}

.blog-post-content .content-wrapper img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1.5rem 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.blog-post-content .content-wrapper table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.blog-post-content .content-wrapper table th,
.blog-post-content .content-wrapper table td {
    padding: 0.75rem;
    border: 1px solid #e2e8f0;
    text-align: left;
}

.blog-post-content .content-wrapper table th {
    background-color: var(--primary-color);
    color: white;
    font-weight: 600;
}

.blog-post-content .content-wrapper table td {
    background-color: var(--bs-body-bg);
    color: var(--bs-body-color);
}

.blog-post-content .content-wrapper table tr:nth-child(even) td {
    background-color: rgba(124, 115, 255, 0.05);
}

.blog-post-content .content-wrapper code {
    background-color: rgba(124, 115, 255, 0.1);
    color: var(--primary-color);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
}

.blog-post-content .content-wrapper pre {
    background-color: #f8f9fa;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1rem;
    margin: 1.5rem 0;
    overflow-x: auto;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.5;
}

.blog-post-content .content-wrapper pre code {
    background-color: transparent;
    color: var(--bs-body-color);
    padding: 0;
}

.blog-post-content .content-wrapper a {
    color: var(--primary-color);
    text-decoration: underline;
    transition: color 0.2s ease;
}

.blog-post-content .content-wrapper a:hover {
    color: var(--secondary-color);
}

.blog-post-content .content-wrapper strong {
    font-weight: 600;
    color: var(--bs-body-color);
}

.blog-post-content .content-wrapper em {
    font-style: italic;
    color: var(--bs-body-color);
}

.blog-post-content .content-wrapper hr {
    border: none;
    border-top: 2px solid #e2e8f0;
    margin: 2rem 0;
}

/* Blog Post Footer */
.blog-post-footer {
    background: var(--bg-secondary);
    padding: 1.5rem 2rem;
    border-top: 1px solid #e2e8f0;
}

.blog-post-footer h5 {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

.social-share .btn {
    border-radius: 6px;
    transition: all 0.2s ease;
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
}

.social-share .btn:hover {
    transform: translateY(-1px);
    background: var(--primary-color);
    color: white;
}

.tags .badge {
    border-radius: 4px;
    font-size: 0.75rem;
    padding: 0.4rem 0.6rem;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    background: var(--primary-color);
    color: white;
}

.related-posts .card {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: transform 0.2s ease;
    background: var(--bs-body-bg);
}

.related-posts .card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.related-posts .card-body {
    padding: 1rem;
}

.related-posts .card-title {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.related-posts .card-title a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.related-posts .card-title a:hover {
    color: var(--secondary-color);
}

.breadcrumb {
    background: transparent;
    padding: 0;
    margin-bottom: 1.5rem;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: ">";
    color: var(--primary-color);
    font-weight: 600;
}

.breadcrumb-item a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.breadcrumb-item a:hover {
    color: var(--secondary-color);
}

.breadcrumb-item.active {
    color: var(--bs-body-color);
    opacity: 0.7;
}

.pagination .page-link {
    border: 1px solid #e2e8f0;
    color: var(--primary-color);
    border-radius: 6px;
    margin: 0 2px;
    transition: all 0.2s ease;
    font-weight: 500;
}

.pagination .page-item.active .page-link {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.pagination .page-link:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-1px);
}

/* Blog Admin Styles */
.blog-admin-table th {
    background-color: var(--bs-body-bg);
    border-top: none;
    font-weight: 600;
    color: var(--primary-color);
    border-color: #e2e8f0;
}

.blog-admin-table td {
    border-color: #e2e8f0;
    color: var(--bs-body-color);
}

.blog-admin-table .btn-group .btn {
    margin-right: 2px;
    border-radius: 4px;
    font-size: 0.8rem;
    padding: 0.25rem 0.5rem;
}

.blog-admin-modal .modal-lg {
    max-width: 800px;
}

.blog-admin-modal .form-control,
.blog-admin-modal .form-select {
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    background: var(--bs-body-bg);
    color: var(--bs-body-color);
}

.blog-admin-modal .form-control:focus,
.blog-admin-modal .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(124, 115, 255, 0.25);
    background: var(--bs-body-bg);
    color: var(--bs-body-color);
}

.blog-admin-modal .form-label {
    color: var(--bs-body-color);
    font-weight: 500;
}

/* TinyMCE Editor Styles */
.tox-tinymce {
    border-radius: 8px !important;
    border: 1px solid #e2e8f0 !important;
}

.tox .tox-toolbar {
    background-color: var(--bs-body-bg) !important;
    border-bottom: 1px solid #e2e8f0 !important;
}

.tox .tox-toolbar__group {
    border-right: 1px solid #e2e8f0 !important;
}

.tox .tox-tbtn {
    color: var(--bs-body-color) !important;
    background-color: transparent !important;
}

.tox .tox-tbtn:hover {
    background-color: rgba(124, 115, 255, 0.1) !important;
}

.tox .tox-tbtn--enabled {
    background-color: rgba(124, 115, 255, 0.2) !important;
}

.tox .tox-edit-area {
    background-color: var(--bs-body-bg) !important;
}

.tox .tox-edit-area__iframe {
    background-color: var(--bs-body-bg) !important;
}

/* Dark Theme Adjustments */
[data-theme="dark"] .blog-card {
    background-color: var(--bs-body-bg);
    color: var(--bs-body-color);
    border-color: #4a5568;
}

[data-theme="dark"] .blog-card .card-title a {
    color: var(--bs-body-color) !important;
}

[data-theme="dark"] .blog-card .card-title a:hover {
    color: var(--primary-color) !important;
}

[data-theme="dark"] .blog-card .card-text {
    color: var(--bs-body-color) !important;
    opacity: 0.8;
}

[data-theme="dark"] .blog-card .text-muted {
    color: var(--bs-body-color) !important;
    opacity: 0.6;
}

[data-theme="dark"] .blog-post-container {
    background-color: var(--bs-body-bg);
    border-color: #4a5568;
}

[data-theme="dark"] .blog-post-content .content-wrapper {
    background-color: var(--bs-body-bg);
    color: var(--bs-body-color);
    border: none;
}

[data-theme="dark"] .blog-post-content .content-wrapper p {
    color: var(--bs-body-color);
}

[data-theme="dark"] .blog-post-content .content-wrapper h1,
[data-theme="dark"] .blog-post-content .content-wrapper h2,
[data-theme="dark"] .blog-post-content .content-wrapper h3,
[data-theme="dark"] .blog-post-content .content-wrapper h4,
[data-theme="dark"] .blog-post-content .content-wrapper h5,
[data-theme="dark"] .blog-post-content .content-wrapper h6 {
    color: var(--primary-color);
}

[data-theme="dark"] .blog-post-content .content-wrapper ul li,
[data-theme="dark"] .blog-post-content .content-wrapper ol li {
    color: var(--bs-body-color);
}

[data-theme="dark"] .blog-post-content .content-wrapper blockquote {
    border-left-color: var(--primary-color);
    color: var(--bs-body-color);
}

[data-theme="dark"] .blog-post-content .content-wrapper table th {
    background-color: var(--primary-color);
    color: white;
}

[data-theme="dark"] .blog-post-content .content-wrapper table td {
    background-color: var(--bs-body-bg);
    color: var(--bs-body-color);
    border-color: #4a5568;
}

[data-theme="dark"] .blog-post-content .content-wrapper table tr:nth-child(even) td {
    background-color: rgba(124, 115, 255, 0.1);
}

[data-theme="dark"] .blog-post-content .content-wrapper code {
    background-color: rgba(124, 115, 255, 0.2);
    color: var(--primary-color);
}

[data-theme="dark"] .blog-post-content .content-wrapper pre {
    background-color: #2d3748;
    border-color: #4a5568;
    color: var(--bs-body-color);
}

[data-theme="dark"] .blog-post-content .content-wrapper pre code {
    color: var(--bs-body-color);
}

[data-theme="dark"] .blog-post-content .content-wrapper a {
    color: var(--primary-color);
}

[data-theme="dark"] .blog-post-content .content-wrapper a:hover {
    color: var(--secondary-color);
}

[data-theme="dark"] .blog-post-content .content-wrapper strong {
    color: var(--bs-body-color);
}

[data-theme="dark"] .blog-post-content .content-wrapper em {
    color: var(--bs-body-color);
}

[data-theme="dark"] .blog-post-content .content-wrapper hr {
    border-top-color: #4a5568;
}

[data-theme="dark"] .blog-post-footer {
    background-color: var(--dark-bg);
    border-top-color: #4a5568;
}

[data-theme="dark"] .blog-post-footer h5 {
    color: var(--primary-color);
}

[data-theme="dark"] .related-posts .card {
    background-color: var(--bs-body-bg);
    color: var(--bs-body-color);
    border-color: #4a5568;
}

[data-theme="dark"] .related-posts .card-title a {
    color: var(--primary-color) !important;
}

[data-theme="dark"] .related-posts .card-title a:hover {
    color: var(--secondary-color) !important;
}

[data-theme="dark"] .blog-sidebar .card {
    background-color: var(--bs-body-bg);
    color: var(--bs-body-color);
    border-color: #4a5568;
}

[data-theme="dark"] .blog-sidebar .card-header {
    background-color: var(--bs-body-bg);
    border-bottom-color: #4a5568;
}

[data-theme="dark"] .blog-sidebar .card-text {
    color: var(--bs-body-color) !important;
    opacity: 0.8;
}

[data-theme="dark"] .blog-sidebar .text-muted {
    color: var(--bs-body-color) !important;
    opacity: 0.6;
}

[data-theme="dark"] .blog-admin-table th {
    background-color: var(--bs-body-bg);
    color: var(--primary-color);
    border-color: #4a5568;
}

[data-theme="dark"] .blog-admin-table {
    color: var(--bs-body-color);
    background-color: var(--bs-body-bg);
}

[data-theme="dark"] .blog-admin-table td {
    border-color: #4a5568;
}

[data-theme="dark"] .blog-admin-modal .modal-content {
    background-color: var(--bs-body-bg);
    color: var(--bs-body-color);
    border: 1px solid #4a5568;
}

[data-theme="dark"] .blog-admin-modal .modal-header {
    border-bottom-color: #4a5568;
}

[data-theme="dark"] .blog-admin-modal .modal-footer {
    border-top-color: #4a5568;
}

[data-theme="dark"] .blog-admin-modal .form-control,
[data-theme="dark"] .blog-admin-modal .form-select {
    background-color: var(--bs-body-bg);
    border-color: #4a5568;
    color: var(--bs-body-color);
}

[data-theme="dark"] .blog-admin-modal .form-control:focus,
[data-theme="dark"] .blog-admin-modal .form-select:focus {
    background-color: var(--bs-body-bg);
    border-color: var(--primary-color);
    color: var(--bs-body-color);
}

[data-theme="dark"] .blog-admin-modal .form-label {
    color: var(--bs-body-color);
}

[data-theme="dark"] .breadcrumb-item a {
    color: var(--primary-color);
}

[data-theme="dark"] .breadcrumb-item.active {
    color: var(--bs-body-color);
    opacity: 0.7;
}

[data-theme="dark"] .breadcrumb-item + .breadcrumb-item::before {
    color: var(--primary-color);
}

[data-theme="dark"] .pagination .page-link {
    background-color: var(--bs-body-bg);
    border-color: #4a5568;
    color: var(--bs-body-color);
}

[data-theme="dark"] .pagination .page-link:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

/* Dark theme TinyMCE adjustments */
[data-theme="dark"] .tox-tinymce {
    border-color: #4a5568 !important;
}

[data-theme="dark"] .tox .tox-toolbar {
    background-color: var(--bs-body-bg) !important;
    border-bottom-color: #4a5568 !important;
}

[data-theme="dark"] .tox .tox-toolbar__group {
    border-right-color: #4a5568 !important;
}

[data-theme="dark"] .tox .tox-tbtn {
    color: var(--bs-body-color) !important;
}

[data-theme="dark"] .tox .tox-edit-area {
    background-color: var(--bs-body-bg) !important;
}

[data-theme="dark"] .tox .tox-edit-area__iframe {
    background-color: var(--bs-body-bg) !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .blog-header,
    .blog-post-header {
        padding: 1.5rem 0;
    }
    
    .blog-header h1,
    .blog-post-header h1 {
        font-size: 2rem;
    }
    
    .blog-post-header {
        padding: 1.5rem;
    }
    
    .blog-post-content .content-wrapper {
        padding: 1.5rem;
    }
    
    .blog-post-footer {
        padding: 1rem 1.5rem;
    }
    
    .blog-sidebar {
        margin-top: 2rem;
    }
    
    .social-share .btn {
        margin-bottom: 0.5rem;
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
}

/* Animation for blog cards */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.blog-card {
    animation: fadeInUp 0.4s ease-out;
}

.blog-card:nth-child(2) {
    animation-delay: 0.1s;
}

.blog-card:nth-child(3) {
    animation-delay: 0.2s;
}

.blog-card:nth-child(4) {
    animation-delay: 0.3s;
}

.blog-card:nth-child(5) {
    animation-delay: 0.4s;
}

.blog-card:nth-child(6) {
    animation-delay: 0.5s;
} 

/* Light Theme Form Adjustments */
[data-theme="light"] .blog-admin-modal .form-control,
[data-theme="light"] .blog-admin-modal .form-select {
    background: var(--input-bg);
    border-color: var(--input-border);
    color: var(--input-text);
}

[data-theme="light"] .blog-admin-modal .form-control:focus,
[data-theme="light"] .blog-admin-modal .form-select:focus {
    background: var(--input-focus-bg);
    border-color: var(--input-focus-border);
    color: var(--input-text);
    box-shadow: 0 0 0 0.2rem var(--input-focus-shadow);
}

[data-theme="light"] .blog-admin-modal .form-label {
    color: var(--text-color);
} 