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

body {
     font-family: "Ubuntu", sans-serif;
    line-height: 1.6;
    color: #333;
}
h1, h2, h3, h4{
    font-family: "Playfair Display", serif;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.navbar {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

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

.nav-logo {
    font-size: 35px;
    font-weight: bold;
    color: #3498db;
    font-family: "Playfair Display", serif;
}

.nav-login i, .nav-actions {
    font-size: 35px;
    color: #2c3e50;
    cursor: pointer;
    transition: color 0.3s;
}

.nav-login i:hover {
    color: #3498db;
}

.nav-actions {
    display: flex;
    gap: 10px;
}

.nav-btn {
    padding: 8px 16px;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
}

.nav-btn:hover {
    background: #2980b9;
}

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

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    

}

.profile-box {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.profile-box h1, h2{
 
    font-family: "Playfair Display", serif;
}
.profile-box h2{
    font-size: 20px;
}

.profile-box h1{
    font-size: 35px;
}
.profile-box p{
    font-size: 14px;
    font-family: "Ubuntu", sans-serif;
    
}
.profile-image {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin-bottom: 20px;
    border: 5px solid rgba(255,255,255,0.3);
}

.intro-message {
    font-size: 18px;
    line-height: 1.6;
}
.profile-box button{
     background: rgba(255,255,255,0.1);
     border-radius: 6px;
     width: 120px;
     height: 50px;
     color: #fff;
     border: 3px solid #667eea ;
     font-family: "Ubuntu", sans-serif;
}
/* User Welcome */
.user-welcome {
    margin-top: 60px;
    padding: 40px 0;
    background: linear-gradient(135deg, #ff9a56 0%, #ff6b95 100%);
    color: white;
    text-align: center;
}

.welcome-box {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 30px;
    max-width: 600px;
    margin: 0 auto;
}

.welcome-box h2 {
    margin-bottom: 15px;
    font-size: 28px;
}

/* Blog Section */
.blog-section {
    padding: 60px 0;
    background: #f8f9fa;
}

.blog-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 20px;
}

.categories {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.category-btn {
    padding: 10px 20px;
    border: 2px solid #3498db;
    background: transparent;
    color: #3498db;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s;
}

.category-btn.active,
.category-btn:hover {
    background: #3498db;
    color: white;
}

/* Filter */
.filter-container {
    position: relative;
}

.filter-btn {
    padding: 10px;
    background: #fff;
    border: 2px solid #ddd;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.3s;
}

.filter-btn:hover {
    background: #3498db;
    color: white;
    border-color: #3498db;
}

.filter-dropdown {
    position: absolute;
    top: 50px;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    display: none;
    min-width: 150px;
    z-index: 100;
}

.filter-dropdown.show {
    display: block;
}

.filter-option {
    display: block;
    width: 100%;
    padding: 10px 15px;
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
    transition: background 0.3s;
}

.filter-option:hover,
.filter-option.active {
    background: #f0f0f0;
}

/* Blog Grid */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.blog-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.blog-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.blog-card-content {
    padding: 20px;
}

.blog-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.blog-card-title {
    font-size: 18px;
    font-weight: bold;
    color: #2c3e50;
    margin: 0;
}

.blog-card-date {
    font-size: 12px;
    color: #7f8c8d;
    white-space: nowrap;
}

.blog-card-summary {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.5;
}

.blog-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.read-more-btn {
    padding: 8px 16px;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
}

.read-more-btn:hover {
    background: #2980b9;
}
/* Article Actions (Sources & PDF Download) */
.article-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin: 30px 0;
    padding: 20px 0;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
}

.sources-link-btn,
.download-pdf-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sources-link-btn {
    background-color: #3b82f6;
    color: white;
}

.sources-link-btn:hover {
    background-color: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.download-pdf-btn {
    background-color: #10b981;
    color: white;
}

.download-pdf-btn:hover {
    background-color: #059669;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

/* Sources Modal */
.sources-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    animation: fadeIn 0.2s ease;
}

.sources-modal-content {
    background: white;
    border-radius: 12px;
    padding: 30px;
    max-width: 600px;
    width: 90%;
    max-height: 70vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
}

.sources-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 28px;
    color: #64748b;
    cursor: pointer;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.sources-modal-close:hover {
    background-color: #f1f5f9;
    color: #ef4444;
}

.sources-modal-content h3 {
    margin: 0 0 20px 0;
    font-size: 24px;
    color: #1e293b;
    padding-right: 40px;
}

.sources-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sources-list li {
    padding: 12px 0;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    gap: 10px;
}

.sources-list li:last-child {
    border-bottom: none;
}

.source-number {
    color: #3b82f6;
    font-weight: 600;
    min-width: 25px;
}

.sources-list a {
    color: #475569;
    text-decoration: none;
    word-break: break-all;
    transition: color 0.2s ease;
}

.sources-list a:hover {
    color: #3b82f6;
    text-decoration: underline;
}

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

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

.rating {
    display: flex;
    gap: 2px;
}

.rating .star {
    color: #ffd700;
    font-size: 16px;
}

/* Newsletter */
.newsletter {
    background: #2c3e50;
    color: white;
    padding: 60px 0;
    text-align: center;
}

.newsletter h2 {
    margin-bottom: 10px;
    font-size: 28px;
}

.newsletter p {
    margin-bottom: 30px;
    opacity: 0.9;
}

.newsletter-form {
    display: flex;
    max-width: 400px;
    margin: 0 auto;
    gap: 10px;
}

.newsletter-form input {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 5px;
    outline: none;
}

.newsletter-form button {
    padding: 12px 20px;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
}

.newsletter-form button:hover {
    background: #2980b9;
}

/* Footer */
.footer {
    background: #1a1a1a;
    color: white;
    padding: 40px 0;
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.social-links {
    display: flex;
    gap: 20px;
}

.social-links a {
    color: white;
    font-size: 24px;
    transition: color 0.3s;
}

.social-links a:hover {
    color: #3498db;
}
.copy-text{
    font-size: 12px;
    font-weight: 100;
}
/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: white;
    margin: 15% auto;
    padding: 20px;
    border-radius: 10px;
    width: 300px;
    text-align: center;
    position: relative;
}

.close {
    position: absolute;
    right: 15px;
    top: 15px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: #3498db;
}

.login-options {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 20px;
}

.login-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s;
}

.admin-btn {
    background: #e74c3c;
    color: white;
}

.admin-btn:hover {
    background: #c0392b;
}

.user-btn {
    background: #2ecc71;
    color: white;
}

.user-btn:hover {
    background: #27ae60;
}

/* Blog Modal */
.blog-modal {
    display: none;
    position: fixed;
    z-index: 1002;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
    backdrop-filter: blur(5px);
}

.blog-modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 0;
    border-radius: 15px;
    width: 90%;
    max-width: 800px;
    max-height: 80%;
    overflow-y: auto;
    position: relative;
}

.blog-modal .close {
    position: sticky;
    top: 0;
    right: 15px;
    background: white;
    z-index: 10;
    padding: 10px 5px;
}

.blog-full-content {
    padding: 40px;
}

.blog-full-content h1 {
    color: #2c3e50;
    margin-bottom: 10px;
}

.blog-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.blog-category {
    background: #3498db;
    color: white;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 12px;
}

.blog-full-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 30px;
}

.blog-full-text {
    line-height: 1.8;
    font-size: 16px;
    color: #444;
    margin-bottom: 30px;
}

.blog-sources {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    border-left: 4px solid #3498db;
}

.blog-sources h3 {
    margin-bottom: 10px;
    color: #2c3e50;
}

.sources-list {
    list-style: none;
    padding: 0;
}

.sources-list li {
    padding: 5px 0;
    color: #666;
    border-bottom: 1px solid #eee;
}

.sources-list li:last-child {
    border-bottom: none;
}

.sources-tooltip {
    position: relative;
    cursor: help;
    color: #3498db;
    text-decoration: underline;
}

.sources-tooltip .tooltip-content {
    visibility: hidden;
    background: #333;
    color: white;
    padding: 10px;
    border-radius: 5px;
    position: absolute;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.3s;
}

.sources-tooltip:hover .tooltip-content {
    visibility: visible;
    opacity: 1;
}

/* Admin Dashboard */
.admin-dashboard {
    margin-top: 60px;
    padding: 40px 0;
    min-height: calc(100vh - 200px);
}

.admin-dashboard h1 {
    text-align: center;
    margin-bottom: 40px;
    color: #2c3e50;
}

.create-post-form {
    background: white;
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 40px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.create-post-form h2 {
    margin-bottom: 20px;
    color: #2c3e50;
}

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

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #2c3e50;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #3498db;
}

.form-group input[type="checkbox"] {
    width: auto;
    margin-right: 10px;
}

.form-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.form-actions button {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s;
}

.form-actions button[type="submit"] {
    background: #2ecc71;
    color: white;
}

.form-actions button[type="submit"]:hover {
    background: #27ae60;
}

.form-actions button[type="button"] {
    background: #95a5a6;
    color: white;
}

.form-actions button[type="button"]:hover {
    background: #7f8c8d;
}

.manage-posts {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.manage-posts h2 {
    margin-bottom: 20px;
    color: #2c3e50;
}

.admin-post-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border: 1px solid #eee;
    border-radius: 8px;
    margin-bottom: 10px;
    transition: all 0.3s;
}

.admin-post-item:hover {
    background: #f8f9fa;
    border-color: #3498db;
}

.admin-post-info h4 {
    margin: 0 0 5px 0;
    color: #2c3e50;
}

.admin-post-info p {
    margin: 0;
    color: #666;
    font-size: 14px;
}

.admin-post-actions {
    display: flex;
    gap: 10px;
}

.admin-post-actions button {
    padding: 5px 10px;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    font-size: 12px;
}

.toggle-display-btn {
    background: #f39c12;
    color: white;
}

.toggle-display-btn:hover {
    background: #e67e22;
}

.toggle-display-btn.hidden {
    background: #95a5a6;
}

.delete-post-btn {
    background: #e74c3c;
    color: white;
}

.delete-post-btn:hover {
    background: #c0392b;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-container {
        padding: 0 15px;
    }
    
    .nav-logo {
        font-size: 20px;
    }
    
    .profile-box {
        padding: 30px 20px;
    }
    
    .profile-image {
        width: 120px;
        height: 120px;
    }
    
    .intro-message {
        font-size: 16px;
    }
    
    .blog-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .categories {
        justify-content: center;
    }
    
    .filter-container {
        align-self: center;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .newsletter-form {
        flex-direction: column;
        align-items: stretch;
    }
    
    .social-links {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .modal-content {
        width: 90%;
        margin: 20% auto;
    }
    
    .blog-modal-content {
        width: 95%;
        margin: 2% auto;
        max-height: 95%;
    }
    
    .blog-full-content {
        padding: 20px;
    }
    
    .login-options {
        flex-direction: column;
        align-items: stretch;
    }
    
    .admin-post-item {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    
    .admin-post-actions {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero {
        padding: 40px 0;
    }
    
    .profile-box {
        padding: 20px 15px;
    }
    
    .blog-section {
        padding: 40px 0;
    }
    
    .newsletter {
        padding: 40px 0;
    }
    
    .footer {
        padding: 30px 0;
    }
    
    .blog-card-header {
        flex-direction: column;
        gap: 5px;
    }
    
    .blog-card-date {
        align-self: flex-start;
    }
}

/* Login Page Styles */
.login-section {
    margin-top: 60px;
    min-height: calc(100vh - 200px);
    padding: 60px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
}

.login-container {
    max-width: 500px;
    margin: 0 auto;
}

.login-type-selector {
    text-align: center;
    color: white;
}

.login-type-selector h1 {
    margin-bottom: 40px;
    font-size: 32px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.login-type-buttons {
    display: flex;
    gap: 30px;
    justify-content: center;
}

.login-type-btn {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255,255,255,0.2);
    border-radius: 20px;
    padding: 40px 30px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    min-width: 180px;
}

.login-type-btn:hover {
    background: rgba(255,255,255,0.2);
    border-color: rgba(255,255,255,0.4);
    transform: translateY(-5px);
}

.login-type-btn i {
    font-size: 48px;
    margin-bottom: 20px;
    display: block;
}

.login-type-btn h3 {
    margin-bottom: 10px;
    font-size: 20px;
}

.login-type-btn p {
    font-size: 14px;
    opacity: 0.9;
    margin: 0;
}

.admin-type:hover {
    border-color: #e74c3c;
    box-shadow: 0 10px 30px rgba(231, 76, 60, 0.3);
}

.user-type:hover {
    border-color: #2ecc71;
    box-shadow: 0 10px 30px rgba(46, 204, 113, 0.3);
}

.login-form-container {
    animation: slideIn 0.3s ease-out;
}

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

.login-form {
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.form-header {
    text-align: center;
    margin-bottom: 30px;
    position: relative;
}

.back-btn {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 20px;
    color: #666;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: all 0.3s;
}

.back-btn:hover {
    background: #f0f0f0;
    color: #333;
}

.form-header h2 {
    margin: 0;
    color: #2c3e50;
    font-size: 24px;
}

.form-icon {
    font-size: 60px;
    margin: 20px 0;
    display: block;
}

.admin-icon {
    color: #e74c3c;
}

.user-icon {
    color: #2ecc71;
}

.signup-icon {
    color: #3498db;
}

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

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

.form-group input {
    width: 100%;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.3s;
    background: white;
}

.form-group input:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.login-btn {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 10px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.admin-login-btn {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
}

.admin-login-btn:hover {
    background: linear-gradient(135deg, #c0392b, #a93226);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.3);
}

.user-login-btn {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    color: white;
}

.user-login-btn:hover {
    background: linear-gradient(135deg, #27ae60, #229954);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(46, 204, 113, 0.3);
}

.signup-btn {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
}

.signup-btn:hover {
    background: linear-gradient(135deg, #2980b9, #21618c);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}

.form-footer {
    text-align: center;
    margin-top: 20px;
}

.form-footer a {
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.form-footer a:hover {
    color: #2980b9;
    text-decoration: underline;
}

.form-footer p {
    margin: 15px 0 0 0;
    color: #666;
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.loading-overlay .loading-content {
    background: white;
    padding: 40px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.loading-overlay .loading-spinner {
    width: 50px;
    height: 50px;
    margin-bottom: 20px;
}

.loading-overlay p {
    margin: 0;
    color: #333;
    font-size: 16px;
}
/* ============================================
   CUSTOM ALERT MODAL STYLES
   ============================================ */

.custom-alert-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(3px);
}

.custom-alert-box {
    background: white;
    border-radius: 16px;
    padding: 35px;
    max-width: 420px;
    width: 90%;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.3s ease;
    position: relative;
}

@keyframes slideIn {
    from {
        transform: translateY(-30px) scale(0.95);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.custom-alert-icon {
    font-size: 56px;
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.custom-alert-icon.success { 
    color: #27ae60; 
}

.custom-alert-icon.error { 
    color: #e74c3c; 
}

.custom-alert-icon.warning { 
    color: #f39c12; 
}

.custom-alert-icon.info { 
    color: #3498db; 
}

.custom-alert-title {
    font-size: 24px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 15px;
    color: #2c3e50;
    line-height: 1.3;
}

.custom-alert-message {
    font-size: 16px;
    line-height: 1.7;
    color: #555;
    text-align: center;
    margin-bottom: 28px;
}

.custom-alert-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.custom-alert-btn {
    padding: 14px 32px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 100px;
}

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

.custom-alert-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.custom-alert-btn.secondary {
    background: #ecf0f1;
    color: #2c3e50;
}

.custom-alert-btn.secondary:hover {
    background: #bdc3c7;
}
/* Like and Rating Styles */

/* Blog Card Stats */
.blog-card-stats {
    display: flex;
    align-items: center;
    gap: 15px;
}

.like-btn {
    background: none;
    border: none;
    color: #e53e3e;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.like-btn:hover {
    background: #fff5f5;
    transform: scale(1.1);
}

.like-btn i {
    transition: transform 0.2s ease;
}

.like-btn:active i {
    transform: scale(1.3);
}

.rating-display {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #f59e0b;
    font-size: 0.9rem;
}

.rating-display i {
    color: #f59e0b;
}

/* Modal Stats */
.blog-modal-stats {
    display: flex;
    align-items: center;
    gap: 20px;
    margin: 20px 0;
    padding: 15px;
    background: #f7fafc;
    border-radius: 10px;
    flex-wrap: wrap;
}

.like-btn-modal {
    background: #e53e3e;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.like-btn-modal:hover {
    background: #c53030;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(229, 62, 62, 0.3);
}

.like-btn-modal:active {
    transform: translateY(0);
}

.views-count,
.rating-info {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #4a5568;
    font-size: 0.9rem;
}

.views-count i {
    color: #4299e1;
}

.rating-info i {
    color: #f59e0b;
}

/* Rating Section in Modal */
.rating-section {
    margin-top: 30px;
    padding: 20px;
    background: #f7fafc;
    border-radius: 10px;
    text-align: center;
}

.rating-section h3 {
    margin-bottom: 15px;
    color: #2d3748;
}

.star-rating {
    display: flex;
    justify-content: center;
    gap: 10px;
    font-size: 2rem;
    margin-bottom: 10px;
}

.star-rating i {
    color: #cbd5e0;
    cursor: pointer;
    transition: all 0.2s ease;
}

.star-rating i:hover,
.star-rating i:hover ~ i {
    color: #f59e0b;
    transform: scale(1.2);
}

.star-rating i.fas {
    color: #f59e0b;
}

#ratingMessage {
    margin-top: 10px;
    font-weight: 600;
    min-height: 20px;
}

/* Temporary Message Toast */
.temp-message {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #48bb78;
    color: white;
    padding: 15px 25px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 10000;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}
/* Like and Rating Styles */

/* Blog Card Info (Display only - not clickable) */
.blog-card-info {
    display: flex;
    align-items: center;
    gap: 15px;
    color: #718096;
    font-size: 0.9rem;
}

.blog-card-info span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.blog-card-info i.fa-heart {
    color: #e53e3e;
}

.blog-card-info i.fa-star {
    color: #f59e0b;
}

/* Interaction Section in Modal */
.interaction-section {
    margin-top: 30px;
    padding: 25px;
    background: #f7fafc;
    border-radius: 10px;
    border: 2px solid #e2e8f0;
}

/* Modal Stats */
.blog-modal-stats {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e2e8f0;
    flex-wrap: wrap;
}

.like-btn-modal {
    background: #fff;
    color: #e53e3e;
    border: 2px solid #e53e3e;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.like-btn-modal:hover {
    background: #e53e3e;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(229, 62, 62, 0.3);
}

.like-btn-modal.liked {
    background: #e53e3e;
    color: white;
}

.like-btn-modal.liked:hover {
    background: #c53030;
}

.like-btn-modal:active {
    transform: translateY(0);
}

.views-count,
.rating-info {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #4a5568;
    font-size: 0.95rem;
    font-weight: 500;
}

.views-count i {
    color: #4299e1;
}

.rating-info i {
    color: #f59e0b;
}

/* Rating Section in Modal */
.rating-section {
    text-align: center;
}

.rating-section h3 {
    margin-bottom: 15px;
    color: #2d3748;
    font-size: 1.2rem;
}

.star-rating {
    display: flex;
    justify-content: center;
    gap: 15px;
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.star-rating i {
    color: #cbd5e0;
    cursor: pointer;
    transition: all 0.2s ease;
}

.star-rating i:hover {
    color: #f59e0b;
    transform: scale(1.2);
}

.star-rating i.fas {
    color: #f59e0b;
}

/* Hover effect for stars */
.star-rating:hover i {
    color: #cbd5e0;
}

.star-rating:hover i.fas {
    color: #f59e0b;
}

.star-rating i:hover,
.star-rating i:hover ~ i.fas {
    color: #f59e0b !important;
}

#ratingMessage {
    margin-top: 10px;
    font-weight: 600;
    min-height: 24px;
    color: #2d3748;
}

/* Temporary Message Toast */
.temp-message {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #48bb78;
    color: white;
    padding: 15px 25px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 10000;
    animation: slideIn 0.3s ease, slideOut 0.3s ease 1.7s forwards;
    font-weight: 600;
}

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

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


@media (max-width: 480px) {
    .custom-alert-box {
        padding: 25px;
        max-width: 95%;
    }
    
    .custom-alert-title {
        font-size: 20px;
    }
    
    .custom-alert-message {
        font-size: 14px;
    }
    
    .custom-alert-buttons {
        flex-direction: column;
    }
    
    .custom-alert-btn {
        width: 100%;
    }
     .login-section {
        padding: 40px 0;
    }
    
    .login-type-btn {
        min-width: 200px;
        padding: 30px 20px;
    }
    
    .login-type-btn i {
        font-size: 40px;
    }
    
    .form-icon {
        font-size: 50px;
    }
}

@media (max-width: 768px) {
     .login-type-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .login-type-btn {
        min-width: 250px;
    }
    
    .login-container {
        margin: 0 20px;
    }
    
    .login-form {
        padding: 30px 20px;
    }
    
    .login-type-selector h1 {
        font-size: 28px;
    }
    .blog-modal-stats {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .like-btn-modal {
        justify-content: center;
        width: 100%;
    }

    .star-rating {
        font-size: 2rem;
        gap: 10px;
    }

    .temp-message {
        right: 20px;
        bottom: 20px;
        left: 20px;
        text-align: center;
    }

    .interaction-section {
        padding: 20px;
    }
     .blog-modal-stats {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .star-rating {
        font-size: 1.8rem;
        gap: 8px;
    }

    .temp-message {
        right: 20px;
        bottom: 20px;
        left: 20px;
        text-align: center;
    }
     .article-actions {
        flex-direction: column;
        gap: 12px;
    }
    
    .sources-link-btn,
    .download-pdf-btn {
        width: 100%;
        justify-content: center;
    }
    
    .sources-modal-content {
        width: 95%;
        padding: 20px;
        max-height: 80vh;
    }
    
    .sources-modal-content h3 {
        font-size: 20px;
    }
}





