/*
Theme Name:   Fasaha24
Theme URI:    https://fasaha24.com
Author:       Fasaha24
Author URI:   https://fasaha24.com
Description:  A custom theme for Fasaha24 tutorials, videos, forum, and store.
Version:      1.0
License:      GNU General Public License v2 or later
License URI:  http://www.gnu.org/licenses/gpl-2.0.html
Text Domain:  fasaha24
*/

/* --- Global CSS Styles --- */

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f1f1f1;
    margin: 0;
    padding-bottom: 70px;
    /* Crucial: Make space for the sticky footer */
}

.content-area {
    width: 90%;
    max-width: 980px;
    margin: 20px auto;
    padding: 20px 30px;
    background-color: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
}

.site-header {
    text-align: center;
    padding: 20px 0;
    border-bottom: 1px solid #ddd;
    background-color: #fff;
}

.site-title a {
    text-decoration: none;
    color: #222;
    font-size: 2.5em;
    font-weight: bold;
}

h1,
h2,
h3 {
    color: #222;
}

a {
    color: #0073aa;
    text-decoration: none;
}

a:hover {
    color: #00a0d2;
}

hr {
    border: 0;
    border-top: 1px solid #eee;
    margin: 2em 0;
}

/* Sticky Footer Navigation */
.sticky-footer-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #2c3e50;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.2);
    z-index: 1000;
}

.sticky-footer-nav ul {
    display: flex;
    justify-content: space-around;
    list-style: none;
    margin: 0;
    padding: 0;
}

.sticky-footer-nav ul li a {
    display: block;
    padding: 15px 10px;
    color: white;
    font-size: 14px;
    text-align: center;
}

.sticky-footer-nav ul li a:hover {
    background-color: #34495e;
}
/* --- Sidebar and Layout Styles --- */

.site-content-wrapper {
    display: flex;
    gap: 30px;
    /* Creates space between content and sidebar */
    width: 90%;
    max-width: 1200px;
    margin: 20px auto;
}

/* The main content area */
#primary.content-area {
    width: 70%;
    padding: 20px 30px;
    background-color: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
    margin: 0;
    /* Override previous margin */
}

/* The sidebar area */
#secondary.widget-area {
    width: 30%;
}

.widget {
    margin-bottom: 20px;
    padding: 20px;
    background-color: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

.widget-title {
    margin-top: 0;
    border-bottom: 2px solid #0073aa;
    padding-bottom: 10px;
    margin-bottom: 15px;
    font-size: 1.2em;
}

/* Make it responsive for mobile */
@media (max-width: 768px) {
    .site-content-wrapper {
        flex-direction: column;
        /* Stack content on top of sidebar */
    }

    #primary.content-area,
    #secondary.widget-area {
        width: 100%;
        /* Make both full-width */
    }
}
/* --- Advanced Profile Page Styles --- */
.profile-container {
    max-width: 800px;
    margin: 0 auto;
}

.profile-main-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
}
.profile-avatar img {
    border-radius: 50%;
    border: 4px solid #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.profile-username {
    margin: 15px 0 5px 0;
    font-size: 1.8em;
}
.profile-handle {
    margin: 0;
    color: #777;
    font-size: 1em;
}
body.dark-mode .profile-handle {
    color: #aaa;
}

.profile-stats-bar {
    display: flex;
    justify-content: space-around;
    padding: 15px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    margin-bottom: 20px;
}
body.dark-mode .profile-stats-bar {
    border-color: #333;
}
.profile-stats-bar .stat-item {
    text-align: center;
}
.profile-stats-bar .stat-item strong {
    display: block;
    font-size: 1.4em;
    font-weight: 600;
}
.profile-stats-bar .stat-item span {
    font-size: 0.8em;
    color: #777;
}
body.dark-mode .profile-stats-bar .stat-item span {
    color: #aaa;
}
/* --- Fix for full-width profile page --- */

/* This targets the content area ONLY on the profile page */
.profile-page-area {
    width: 100%; /* Make it full width */
    max-width: 100%;
    margin: 0;
    padding: 20px 0; /* Add some padding top and bottom */
    background-color: transparent; /* Remove the white box background */
    box-shadow: none; /* Remove the shadow */
}

/* Now, we ensure the .profile-container inside it is centered */
.profile-container {
    max-width: 800px;
    margin: 0 auto; /* Center the profile content */
    padding: 20px;
    background: #fff; /* Give the profile content a white background */
    box-shadow: 0 1px 3px rgba(0,0,0,0.12);
}

body.dark-mode .profile-page-area {
    background-color: transparent;
}

body.dark-mode .profile-container {
    background: #1e1e1e;
    border-color: #333;
}

/* Re-paste all the other profile styles to be sure */
.profile-main-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
}
.profile-avatar img {
    border-radius: 50%;
    border: 4px solid #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.profile-username {
    margin: 15px 0 5px 0;
    font-size: 1.8em;
}
.profile-handle {
    margin: 0;
    color: #777;
    font-size: 1em;
}
/* ... all the other .profile-stats-bar and .profile-tabs-nav styles should also be here ... */
/* --- Google Font Import --- */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap');

/* --- HEADER LAYOUT --- */
/* This uses Flexbox to arrange the logo, menu, and search in a row */
.header-main-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 2%; /* Use percentage for responsiveness */
    max-width: 1300px;
    margin: 0 auto;
}

/* --- STYLED TEXT LOGO --- */
.site-branding .site-title a {
    font-family: 'Poppins', sans-serif;
    font-size: 32px;
    font-weight: 700;
    color: #222222;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

/* --- NAVIGATION MENU STYLING --- */
.main-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

.main-navigation li {
    margin: 0 15px;
}

.main-navigation a {
    text-decoration: none;
    color: #333;
    font-weight: 600;
    font-size: 16px;
    padding-bottom: 5px;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.main-navigation a:hover,
.main-navigation .current-menu-item a {
    color: #0073aa;
    border-color: #0073aa;
}

/* --- SEARCH FORM STYLING --- */
.header-search .search-form {
    display: flex;
}

.header-search .search-field {
    border: 1px solid #ccc;
    padding: 8px;
    min-width: 180px;
}

.header-search .search-submit {
    background-color: #0073aa;
    color: white;
    border: none;
    padding: 8px 12px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.header-search .search-submit:hover {
    background-color: #005a87;
}