/*
Theme Name: Inshorts Theme
Author: Your Name
Description: A custom WordPress theme replicating Inshorts.com
Version: 1.0
Text Domain: inshorts
*/

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-color, #f5f5f5);
    color: var(--text-color, #333);
    transition: background 0.3s, color 0.3s;
}

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--header-bg, #fff);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    z-index: 1000;
}

.menu-toggle {
    font-size: 24px;
    cursor: pointer;
    display: block;
}

.logo img {
    max-height: 50px;
}

.main-navigation {
    display: none;
    position: absolute;
    top: 60px;
    left: 0;
    width: 100%;
    background: var(--header-bg, #fff);
    padding: 10px;
}

.main-navigation.active {
    display: block;
}

.nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-menu li {
    margin: 10px 0;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-color, #333);
    font-size: 16px;
}

.news-container {
    margin: 80px 20px 20px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.news-card {
    display: flex;
    margin-bottom: 20px;
    background: var(--card-bg, #fff);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    border-radius: 8px;
    overflow: hidden;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.5s ease-out forwards;
}

.news-image {
    width: 40%;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.news-content {
    width: 60%;
    padding: 15px;
}

.news-content h2 {
    font-size: 18px;
    margin: 0 0 10px;
    line-height: 1.4;
}

.news-content p {
    font-size: 14px;
    margin: 0 0 10px;
    line-height: 1.5;
}

.news-content a {
    color: #007bff;
    text-decoration: none;
    font-weight: bold;
}

#load-more {
    display: block;
    margin: 20px auto;
    padding: 10px 20px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}

#load-more:hover {
    background: #0056b3;
}

.no-more-posts {
    text-align: center;
    color: #666;
    margin: 20px 0;
}

.site-footer {
    background: var(--footer-bg, #333);
    color: var(--footer-text, #fff);
    text-align: center;
    padding: 20px;
}

.footer-logo img {
    max-height: 50px;
    margin-bottom: 10px;
}

.social-icons {
    margin: 10px 0;
}

.social-icons a {
    color: var(--footer-text, #fff);
    margin: 0 10px;
    font-size: 20px;
    text-decoration: none;
}

#dark-mode-toggle {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    margin-right: 10px;
}

/* Dark Mode */
body.dark-mode {
    --bg-color: #222;
    --card-bg: #333;
    --text-color: #fff;
    --header-bg: #333;
    --footer-bg: #222;
    --footer-text: #ccc;
}

/* Animations */
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .news-card {
        flex-direction: column;
    }
    .news-image, .news-content {
        width: 100%;
    }
    .news-image img {
        max-height: 200px;
    }
    .site-header {
        padding: 10px;
    }
    .logo img {
        max-height: 40px;
    }
}

@media (max-width: 480px) {
    .news-content h2 {
        font-size: 16px;
    }
    .news-content p {
        font-size: 13px;
    }
}