/*
Theme Name: Basic Starter Theme
Theme URI: https://webtravel.ma
Author: WebTravel.ma
Author URI: https://webtravel.ma
Description: A simple, lightweight WordPress starter theme with basic functionality. Perfect base for custom development.
Version: 1.0.0
Requires at least: 5.0
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: basic-starter
Tags: one-column, two-columns, custom-menu, featured-images, threaded-comments, translation-ready
*/

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

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

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

a {
    color: #0073aa;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #005177;
}

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

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

/* ==========================================================================
   Header
   ========================================================================== */

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

.header-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-branding {
    display: flex;
    align-items: center;
}

.site-logo img {
    max-height: 60px;
    width: auto;
}

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

.site-title a {
    color: #333;
}

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

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

.main-navigation {
    display: flex;
    align-items: center;
}

.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 30px;
    margin: 0;
}

.main-navigation li {
    position: relative;
}

.main-navigation a {
    color: #333;
    font-weight: 500;
    padding: 10px 0;
    display: block;
}

.main-navigation a:hover {
    color: #0073aa;
}

/* Dropdown Menu */
.main-navigation ul ul {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    min-width: 200px;
    display: none;
    flex-direction: column;
    gap: 0;
    padding: 10px 0;
}

.main-navigation ul li:hover > ul {
    display: flex;
}

.main-navigation ul ul li {
    width: 100%;
}

.main-navigation ul ul a {
    padding: 10px 20px;
}

.main-navigation ul ul a:hover {
    background-color: #f5f5f5;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    padding: 10px;
}

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

.site-content {
    padding: 60px 0;
}

.content-area {
    width: 100%;
}

/* Two Column Layout */
.has-sidebar .content-area {
    width: 70%;
    float: left;
}

.has-sidebar .sidebar {
    width: 28%;
    float: right;
}

.has-sidebar::after {
    content: "";
    display: table;
    clear: both;
}

/* Posts */
.post,
.page {
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid #e5e5e5;
}

.post:last-child,
.page:last-child {
    border-bottom: none;
}

.entry-header {
    margin-bottom: 20px;
}

.entry-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 10px;
}

.entry-title a {
    color: #333;
}

.entry-title a:hover {
    color: #0073aa;
}

.entry-meta {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
}

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

.entry-meta a:hover {
    color: #0073aa;
}

.entry-content {
    line-height: 1.8;
}

.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6 {
    margin: 30px 0 15px;
    font-weight: 700;
}

.entry-content p {
    margin-bottom: 20px;
}

.entry-content ul,
.entry-content ol {
    margin: 20px 0;
    padding-left: 40px;
}

.entry-content li {
    margin-bottom: 10px;
}

.entry-footer {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e5e5e5;
    font-size: 14px;
    color: #666;
}

/* Featured Image */
.post-thumbnail {
    margin-bottom: 30px;
}

.post-thumbnail img {
    width: 100%;
    height: auto;
}

/* Pagination */
.pagination {
    margin: 40px 0;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.pagination a,
.pagination span {
    padding: 10px 15px;
    background-color: #f5f5f5;
    border: 1px solid #e5e5e5;
    border-radius: 3px;
}

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

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

.sidebar {
    padding-left: 40px;
}

.widget {
    margin-bottom: 40px;
}

.widget-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #0073aa;
}

.widget ul {
    list-style: none;
}

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

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

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
    background-color: #333;
    color: #fff;
    padding: 60px 0 20px;
}

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

.footer-widget {
    margin-bottom: 0;
}

.footer-widget .widget-title {
    color: #fff;
    border-bottom-color: #555;
}

.footer-widget a {
    color: #ccc;
}

.footer-widget a:hover {
    color: #fff;
}

.site-info {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #555;
    font-size: 14px;
    color: #ccc;
}

.site-info a {
    color: #fff;
}

/* ==========================================================================
   Comments
   ========================================================================== */

.comments-area {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 2px solid #e5e5e5;
}

.comments-title {
    font-size: 24px;
    margin-bottom: 30px;
}

.comment-list {
    list-style: none;
}

.comment {
    margin-bottom: 30px;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 5px;
}

.comment-author {
    font-weight: 700;
    margin-bottom: 10px;
}

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

.comment-content p {
    margin-bottom: 10px;
}

.reply {
    margin-top: 10px;
}

.reply a {
    font-size: 13px;
    color: #0073aa;
}

.comment-respond {
    margin-top: 40px;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 3px;
    margin-bottom: 15px;
}

.comment-form textarea {
    min-height: 150px;
    resize: vertical;
}

.comment-form input[type="submit"] {
    background-color: #0073aa;
    color: #fff;
    padding: 12px 30px;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    font-size: 16px;
}

.comment-form input[type="submit"]:hover {
    background-color: #005177;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn,
.wp-block-button__link {
    display: inline-block;
    padding: 12px 30px;
    background-color: #0073aa;
    color: #fff;
    border-radius: 3px;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.btn:hover,
.wp-block-button__link:hover {
    background-color: #005177;
    color: #fff;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

@media (max-width: 768px) {
    .header-wrapper {
        flex-direction: column;
        gap: 20px;
    }

    .menu-toggle {
        display: block;
        order: -1;
        align-self: flex-end;
    }

    .main-navigation {
        width: 100%;
    }

    .main-navigation ul {
        display: none;
        flex-direction: column;
        width: 100%;
        gap: 0;
    }

    .main-navigation.toggled ul {
        display: flex;
    }

    .main-navigation li {
        width: 100%;
        border-bottom: 1px solid #e5e5e5;
    }

    .main-navigation a {
        padding: 15px 20px;
    }

    .main-navigation ul ul {
        position: static;
        box-shadow: none;
        background-color: #f9f9f9;
        display: none;
    }

    .main-navigation li:hover > ul {
        display: none;
    }

    .main-navigation li.menu-item-has-children.toggled > ul {
        display: flex;
    }

    .has-sidebar .content-area,
    .has-sidebar .sidebar {
        width: 100%;
        float: none;
    }

    .sidebar {
        padding-left: 0;
        margin-top: 60px;
    }

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

    .entry-title {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 14px;
    }

    .site-title {
        font-size: 22px;
    }

    .entry-title {
        font-size: 20px;
    }
}

/* ==========================================================================
   Utility Classes
   ========================================================================== */

.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
}

.clearfix::after {
    content: "";
    display: table;
    clear: both;
}

.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.alignleft {
    float: left;
    margin-right: 20px;
    margin-bottom: 20px;
}

.alignright {
    float: right;
    margin-left: 20px;
    margin-bottom: 20px;
}

.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}
