/*
Theme Name: Linux Pathfinder
Theme URI: https://linuxpathfinder.com
Author: Asif Khan
Author URI: https://linuxpathfinder.com
Description: Custom WordPress theme replicating the original Linux Pathfinder Drupal design. A clean, modern blog-style layout for technical content focused on Linux and DevOps.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: linuxpathfinder
Tags: blog, two-columns, right-sidebar, custom-menu, featured-images, threaded-comments, translation-ready

This theme is based on the original myblog Drupal theme design.
*/

/* ==========================================================================
   Reset & Base Styles
   ========================================================================== */

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

body {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

a {
    color: #0066cc;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #004499;
    text-decoration: underline;
}

img {
    max-width: 100%;
    height: auto;
}

/* ==========================================================================
   Layout
   ========================================================================== */

.site-wrapper {
    max-width: 1320px;
    margin: 0 auto;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.site-header {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: #fff;
    padding: 20px 0;
}

.site-header .container {
    max-width: 1290px;
    margin: 0 auto;
    padding: 0 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-branding {
    flex: 0 0 auto;
}

.site-title {
    font-size: 32px;
    font-weight: 700;
    margin: 0;
}

.site-title a {
    color: #fff;
    text-decoration: none;
}

.site-description {
    font-size: 14px;
    color: #ecf0f1;
    margin: 5px 0 0 0;
}

/* ==========================================================================
   Navigation
   ========================================================================== */

.main-navigation {
    background-color: #fff;
    border-bottom: 1px solid #e0e0e0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.main-navigation .container {
    max-width: 1290px;
    margin: 0 auto;
    padding: 0 15px;
}

.main-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
}

.main-navigation li {
    position: relative;
}

.main-navigation a {
    display: block;
    padding: 15px 20px;
    color: #333;
    font-weight: 500;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.main-navigation a:hover,
.main-navigation .current-menu-item > a {
    background-color: #f8f9fa;
    color: #0066cc;
}

/* Search form in navigation */
.nav-search {
    margin-left: auto;
    padding: 10px 0;
}

.nav-search .search-form {
    display: flex;
}

.nav-search input[type="search"] {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 3px 0 0 3px;
    width: 200px;
}

.nav-search button {
    padding: 8px 15px;
    background-color: #0066cc;
    color: #fff;
    border: none;
    border-radius: 0 3px 3px 0;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.nav-search button:hover {
    background-color: #004499;
}

/* ==========================================================================
   Content Area
   ========================================================================== */

.site-content {
    max-width: 1290px;
    margin: 30px auto;
    padding: 0 15px;
    display: flex;
    gap: 30px;
}

.content-area {
    flex: 1;
}

/* ==========================================================================
   Posts
   ========================================================================== */

.post {
    background-color: #fff;
    margin-bottom: 30px;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.post:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.post-thumbnail {
    position: relative;
    overflow: hidden;
}

.post-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.post:hover .post-thumbnail img {
    transform: scale(1.05);
}

.entry-header {
    padding: 20px 25px 10px;
}

.entry-title {
    font-size: 26px;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 10px;
}

.entry-title a {
    color: #222;
    text-decoration: none;
}

.entry-title a:hover {
    color: #0066cc;
}

.entry-meta {
    font-size: 13px;
    color: #777;
    margin-bottom: 15px;
}

.entry-meta a {
    color: #777;
}

.entry-meta a:hover {
    color: #0066cc;
}

.entry-meta > span {
    margin-right: 15px;
}

.entry-content,
.entry-summary {
    padding: 0 25px 20px;
    line-height: 1.8;
}

.entry-content p,
.entry-summary p {
    margin-bottom: 15px;
}

.more-link {
    display: inline-block;
    padding: 8px 20px;
    background-color: #0066cc;
    color: #fff !important;
    border-radius: 3px;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.more-link:hover {
    background-color: #004499;
    text-decoration: none;
}

/* Categories and Tags */
.entry-footer {
    padding: 15px 25px;
    background-color: #f8f9fa;
    border-top: 1px solid #e0e0e0;
    font-size: 14px;
}

.cat-links,
.tags-links {
    display: inline-block;
    margin-right: 15px;
}

.cat-links a,
.tags-links a {
    display: inline-block;
    padding: 3px 10px;
    margin: 0 5px 5px 0;
    background-color: #e9ecef;
    color: #495057;
    border-radius: 3px;
    font-size: 13px;
}

.cat-links a:hover,
.tags-links a:hover {
    background-color: #0066cc;
    color: #fff;
    text-decoration: none;
}

/* ==========================================================================
   Pagination
   ========================================================================== */

.pagination {
    margin: 40px 0;
    text-align: center;
}

.pagination .nav-links {
    display: flex;
    justify-content: center;
    gap: 5px;
}

.pagination a,
.pagination span {
    display: inline-block;
    padding: 10px 15px;
    background-color: #fff;
    border: 1px solid #e0e0e0;
    color: #333;
    border-radius: 3px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.pagination a:hover,
.pagination .current {
    background-color: #0066cc;
    border-color: #0066cc;
    color: #fff;
}

/* ==========================================================================
   Sidebar
   ========================================================================== */

.widget-area {
    flex: 0 0 350px;
}

.widget {
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    margin-bottom: 30px;
    padding: 20px;
}

.widget-title {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #0066cc;
    color: #222;
}

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

.widget ul li {
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

.widget ul li:last-child {
    border-bottom: none;
}

.widget ul li a {
    color: #555;
    text-decoration: none;
}

.widget ul li a:hover {
    color: #0066cc;
}

/* Tabbed Widget (Popular/Recent Posts) */
.tabbed-widget {
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    margin-bottom: 30px;
}

.tab-nav {
    display: flex;
    border-bottom: 2px solid #e0e0e0;
}

.tab-nav button {
    flex: 1;
    padding: 15px 20px;
    background-color: #f8f9fa;
    border: none;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    color: #555;
    transition: all 0.3s ease;
}

.tab-nav button.active {
    background-color: #fff;
    color: #0066cc;
    border-bottom: 3px solid #0066cc;
}

.tab-content {
    padding: 20px;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

/* ==========================================================================

/* ==========================================================================
   FOOTER STYLES - WORKING 3 COLUMN LAYOUT
   ========================================================================== */


/* ==========================================================================
   FOOTER - EXACT MATCH TO DRUPAL DESIGN
   ========================================================================== */

footer.site-footer-new {
    background: #3a4d5c !important;
    padding: 0 !important;
    margin: 60px 0 0 0 !important;
    width: 100% !important;
    display: block !important;
    position: relative !important;
}

footer.site-footer-new .footer-container {
    max-width: 1290px;
    margin: 0 auto;
    padding: 0 20px;
}

footer.site-footer-new .footer-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr 1fr !important;
    gap: 60px !important;
    padding: 60px 0 50px !important;
    width: 100% !important;
}

footer.site-footer-new .footer-col {
    display: block;
    width: 100%;
}

/* Headings with orange underline */
footer.site-footer-new .footer-heading {
    color: #ffffff !important;
    font-size: 20px !important;
    font-weight: 700 !important;
    margin: 0 0 20px 0 !important;
    padding: 0 0 12px 0 !important;
    border-bottom: 3px solid #ff6633 !important;
    display: inline-block !important;
    line-height: 1.2 !important;
}

footer.site-footer-new .footer-heading-space {
    margin-top: 40px;
}

footer.site-footer-new .footer-text {
    color: #b8c5d0 !important;
    font-size: 14px !important;
    line-height: 1.7 !important;
    margin: 0 0 25px 0 !important;
}

/* Newsletter Form */
footer.site-footer-new .footer-email-input {
    width: 100% !important;
    padding: 12px 15px !important;
    background: #2d3e4d !important;
    border: 1px solid #4a5f70 !important;
    border-radius: 4px !important;
    color: #ffffff !important;
    font-size: 14px !important;
    margin-bottom: 15px !important;
    display: block !important;
}

footer.site-footer-new .footer-email-input::placeholder {
    color: #8a9ba8;
}

footer.site-footer-new .footer-subscribe-btn {
    width: 100% !important;
    padding: 13px 20px !important;
    background: #ff6633 !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 4px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    display: block !important;
}

footer.site-footer-new .footer-subscribe-btn:hover {
    background: #ff7744;
}

/* Recent Posts */
footer.site-footer-new .footer-posts-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

footer.site-footer-new .footer-posts-list li {
    margin: 0 0 18px 0;
    padding: 0 0 18px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

footer.site-footer-new .footer-posts-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

footer.site-footer-new .footer-posts-list a {
    color: #b8c5d0 !important;
    text-decoration: none !important;
    font-size: 14px !important;
    line-height: 1.6 !important;
}

footer.site-footer-new .footer-posts-list a:hover {
    color: #ffffff;
}

/* Social Icons */
footer.site-footer-new .footer-social-icons {
    display: flex;
    gap: 12px;
    margin-bottom: 0;
}

footer.site-footer-new .footer-social-link {
    width: 50px !important;
    height: 50px !important;
    background: #2d3e4d !important;
    border: 1px solid #4a5f70 !important;
    border-radius: 6px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #b8c5d0 !important;
    font-size: 20px !important;
    text-decoration: none !important;
}

footer.site-footer-new .footer-social-link:hover {
    background: #ff6633;
    border-color: #ff6633;
    color: #ffffff;
}

footer.site-footer-new .footer-social-link svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
}

/* Useful Links */
footer.site-footer-new .footer-links-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

footer.site-footer-new .footer-links-list li {
    margin: 0 0 14px 0;
}

footer.site-footer-new .footer-links-list a {
    color: #b8c5d0 !important;
    text-decoration: none !important;
    font-size: 14px !important;
}

footer.site-footer-new .footer-links-list a:hover {
    color: #ffffff;
}

/* Copyright */
footer.site-footer-new .footer-copyright {
    background: #2d3e4d;
    padding: 25px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

footer.site-footer-new .footer-copyright p {
    margin: 0 !important;
    text-align: center !important;
    color: #8a9ba8 !important;
    font-size: 14px !important;
}

footer.site-footer-new .footer-copyright a {
    color: #b8c5d0 !important;
    text-decoration: none !important;
    margin-left: 5px !important;
}

footer.site-footer-new .footer-copyright a:hover {
    color: #ff6633;
}

/* Responsive */
@media (max-width: 992px) {
    footer.site-footer-new .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
    footer.site-footer-new .footer-col:last-child {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    footer.site-footer-new .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 40px 0;
    }
}

/* ==========================================================================
   Back to Top Button
   ========================================================================== */

#back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #e67e22 0%, #d35400 100%);
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 4px 12px rgba(230, 126, 34, 0.4);
    transition: all 0.3s ease;
    z-index: 9999;
}

#back-to-top:hover {
    background: linear-gradient(135deg, #d35400 0%, #e67e22 100%);
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(230, 126, 34, 0.5);
}

#back-to-top.show {
    display: flex;
}

#back-to-top i {
    pointer-events: none;
}
