/* name=body-fonts.css */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Sora:wght@400;500;600;700;800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    /*font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;*/
    font-size: 16px;
    font-weight: 400;
    line-height: 1.6;
    letter-spacing: 0;
    color: #333;
    background-color: #ffffff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Navigation Bar */
nav {
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 10px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 70px;
}

/* Logo Container */
.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #667eea;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 5px 0;
    transition: all 0.3s ease;
}

.logo:hover {
    color: #764ba2;
}

/* Logo Image - High Resolution Support */
.logo-image {
    width: 50px;
    height: 50px;
    object-fit: contain;
    object-position: center;
    display: block;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
    transition: all 0.3s ease;
}

.logo:hover .logo-image {
    filter: drop-shadow(0 3px 8px rgba(102, 126, 234, 0.2));
}

/* Logo Text Container */
.logo-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    justify-content: center;
}

/* Main Logo Text */
.logo-text-main {
    font-size: 1.3rem;
    font-weight: 700;
    color: #667eea;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

/* Subtitle Text */
.logo-text-sub {
    font-size: 0.7rem;
    color: #999;
    letter-spacing: 2px;
    font-weight: 500;
    text-transform: uppercase;
    line-height: 1;
}

.nav-buttons {
    display: flex;
    gap: 15px;
}

.btn {
    padding: 10px 25px;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    white-space: nowrap;
}

.btn-login {
    background: white;
    color: #667eea;
    border: 2px solid #667eea;
}

.btn-login:hover {
    background: #f0f2ff;
}

.btn-register {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-register:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 60px 20px;
    text-align: center;
}

.hero-container {
    max-width: 900px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 2.8rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.hero p {
    font-size: 1.1rem;
    margin-bottom: 40px;
    opacity: 0.9;
}

/* Search Bar */
.search-container {
    max-width: 700px;
    margin: 0 auto 50px;
    position: relative;
}

.search-box {
    width: 100%;
    padding: 18px 25px;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: all 0.3s;
}

.search-box:focus {
    outline: none;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
}

.search-icon {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
    color: #999;
}

/* Main Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Recently Shared Content Section */
.recent-shared-section {
    background: white;
    padding: 40px 0;
    margin-bottom: 40px;
}

.section-title {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 25px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title-icon {
    font-size: 1.8rem;
}

.quick-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 15px;
    margin-bottom: 40px;
}

.quick-link {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 25px;
    border-radius: 12px;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
    font-weight: 600;
}

.quick-link:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(102, 126, 234, 0.3);
}

.quick-link-icon {
    font-size: 2rem;
    margin-bottom: 8px;
    display: block;
}

.quick-link-text {
    font-size: 0.9rem;
}

/* No Content Message */
.no-content {
    text-align: center;
    padding: 40px 20px;
    color: #999;
    background: #f8f9fa;
    border-radius: 12px;
    margin-bottom: 40px;
}

.no-content-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

/* Blogs Section */
.blogs-section {
    margin-bottom: 60px;
}

.blogs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.blog-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.blog-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: white;
    position: relative;
    overflow: hidden;
}

.blog-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0);
    transition: background 0.3s;
}

.blog-card:hover .blog-image::after {
    background: rgba(0, 0, 0, 0.1);
}

.blog-content {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-category {
    display: inline-flex;
    background: #f0f2ff;
    color: #667eea;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 12px;
    width: fit-content;
}

.blog-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
    line-height: 1.4;
    flex: 1;
}

.blog-description {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 15px;
    line-height: 1.5;
    flex: 1;
}

.blog-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
    font-size: 0.85rem;
    color: #999;
}

.blog-author {
    display: flex;
    align-items: center;
    gap: 8px;
}

.author-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.8rem;
    font-weight: 700;
}

.blog-date {
    display: flex;
    align-items: center;
    gap: 5px;
}

.blog-stats {
    display: flex;
    gap: 15px;
    margin-top: 12px;
}

.stat {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #999;
    font-size: 0.85rem;
}

/* Load More Button */
.load-more-btn {
    display: block;
    margin: 40px auto;
    padding: 15px 50px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.load-more-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
}

/* Footer */
footer {
    background: #2c3e50;
    color: white;
    padding: 50px 20px 30px;
    margin-top: 60px;
    border-top: 1px solid #e0e0e0;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-main {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-section h4 {
    margin-bottom: 15px;
    color: #667eea;
}

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

.footer-section li {
    margin-bottom: 8px;
}

.footer-section a {
    color: #bbb;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: #667eea;
}

.footer-bottom {
    border-top: 1px solid #444;
    padding-top: 20px;
    text-align: center;
    color: #bbb;
}

.footer-bottom p {
    margin-bottom: 10px;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 10px;
}

.social-links a {
    color: #667eea;
    font-size: 1.5rem;
    text-decoration: none;
    transition: transform 0.3s;
}

.social-links a:hover {
    transform: scale(1.2);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s ease;
    overflow-y: auto;
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Article Modal Content */
.article-modal-content {
    background: white;
    border-radius: 15px;
    max-width: 800px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
    max-height: 90vh;
    overflow-y: auto;
}

/* Auth Modal Content */
.modal-content {
    background: white;
    padding: 40px;
    border-radius: 15px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
}

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

/* Article Header */
.article-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 40px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
}

.article-header-content {
    flex: 1;
}

.article-close-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 28px;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.article-close-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.article-category-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.article-title {
    font-size: 2rem;
    margin-bottom: 15px;
    line-height: 1.3;
}

.article-meta-header {
    display: flex;
    gap: 20px;
    opacity: 0.9;
    font-size: 0.95rem;
    flex-wrap: wrap;
}

/* Article Body */
.article-body {
    padding: 40px;
}

.article-image-container {
    text-align: center;
    margin-bottom: 30px;
}

.article-image-icon {
    font-size: 5rem;
}

.article-content {
    color: #555;
    line-height: 1.8;
    margin-bottom: 30px;
    font-size: 1rem;
}

.article-stats-detailed {
    display: flex;
    gap: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    margin-bottom: 30px;
}

.stat-item {
    flex: 1;
    text-align: center;
}

.stat-number {
    font-size: 1.8rem;
    font-weight: 700;
    color: #667eea;
}

.stat-label {
    font-size: 0.85rem;
    color: #999;
    margin-top: 5px;
}

/* Article Footer */
.article-footer {
    border-top: 1px solid #e0e0e0;
    padding: 20px 40px;
    background: #f8f9fa;
    border-radius: 0 0 15px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.article-author-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.article-author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    flex-shrink: 0;
}

.article-author-details h4 {
    margin: 0;
    color: #333;
    font-size: 0.95rem;
}

.article-author-details p {
    margin: 0;
    color: #999;
    font-size: 0.85rem;
}

.open-categany-btn {
    padding: 12px 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.open-categany-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

/* Auth Modal */
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 15px;
}

.modal-header h2 {
    color: #667eea;
    font-size: 1.5rem;
}

.close-btn {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #999;
    transition: color 0.3s;
}

.close-btn:hover {
    color: #333;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: all 0.3s;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.submit-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

/* Toast Notification */
.toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #4caf50;
    color: white;
    padding: 15px 25px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    display: none;
    z-index: 1001;
    animation: slideIn 0.3s ease;
}

.toast.show {
    display: block;
}

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

/* Tablet Devices (768px - 1024px) */
@media (max-width: 1024px) {
    .logo {
        gap: 10px;
    }

    .logo-image {
        width: 45px;
        height: 45px;
    }

    .logo-text-main {
        font-size: 1.2rem;
    }

    .logo-text-sub {
        font-size: 0.65rem;
        letter-spacing: 1.5px;
    }
}

/* Mobile Devices (480px - 768px) */
@media (max-width: 768px) {
    .nav-container {
        min-height: 60px;
    }

    .logo {
        gap: 8px;
        padding: 3px 0;
    }

    .logo-image {
        width: 40px;
        height: 40px;
    }

    .logo-text-main {
        font-size: 1.1rem;
    }

    .logo-text-sub {
        font-size: 0.6rem;
        letter-spacing: 1px;
    }

    .btn {
        padding: 8px 15px;
        font-size: 0.85rem;
    }

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

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

    .quick-links-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 10px;
    }

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

    .modal-content {
        padding: 25px;
        width: 95%;
    }

    .article-modal-content {
        width: 95%;
    }

    .article-header {
        padding: 25px;
        flex-direction: column;
    }

    .article-title {
        font-size: 1.5rem;
    }

    .article-body {
        padding: 20px;
    }

    .article-footer {
        padding: 15px 20px;
        flex-direction: column;
    }

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

    .article-stats-detailed {
        gap: 15px;
    }
}

/* Small Mobile Devices (< 480px) */
@media (max-width: 480px) {
    .nav-container {
        min-height: 55px;
        padding: 0 15px;
    }

    .logo {
        gap: 6px;
        padding: 2px 0;
    }

    .logo-image {
        width: 35px;
        height: 35px;
    }

    .logo-text-main {
        font-size: 0.95rem;
    }

    .logo-text-sub {
        font-size: 0.55rem;
        letter-spacing: 0.8px;
    }

    .nav-buttons {
        gap: 8px;
    }

    .btn {
        padding: 7px 12px;
        font-size: 0.75rem;
    }

    .hero {
        padding: 40px 15px;
    }

    .hero h1 {
        font-size: 1.5rem;
        margin-bottom: 10px;
    }

    .hero p {
        font-size: 0.9rem;
        margin-bottom: 30px;
    }

    .search-container {
        margin-bottom: 30px;
    }

    .search-box {
        padding: 14px 20px;
        font-size: 0.9rem;
    }

    .modal-content {
        padding: 20px;
    }

    .article-header {
        padding: 20px;
    }

    .article-body {
        padding: 15px;
    }

    .article-footer {
        padding: 12px 15px;
    }
}

/* Extra Small Mobile (< 360px) */
@media (max-width: 360px) {
    .nav-container {
        min-height: 50px;
        padding: 0 10px;
    }

    .logo {
        gap: 5px;
    }

    .logo-image {
        width: 32px;
        height: 32px;
    }

    .logo-text-main {
        font-size: 0.9rem;
    }

    .logo-text-sub {
        font-size: 0.5rem;
        letter-spacing: 0.5px;
    }

    .nav-buttons {
        gap: 5px;
    }

    .btn {
        padding: 6px 10px;
        font-size: 0.7rem;
    }

    .hero h1 {
        font-size: 1.3rem;
    }

    .hero p {
        font-size: 0.85rem;
    }

    .container {
        padding: 0 15px;
    }
}