/*
Theme Name: Mujeeb Premium
Theme URI: https://mujeeb.media
Author: Mujeeb Awan
Author URI: https://mujeeb.media
Description: Professional WordPress theme with modern design, Q&A section, and SEO optimization
Version: 1.0.0
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mujeeb-premium
Domain Path: /languages
Requires at least: 5.0
Tested up to: 6.4
Requires PHP: 7.4
*/

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    color: #2c2c54;
    background-color: #f5f1e8;
    line-height: 1.6;
}

a {
    color: #ff6b4a;
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: #e55a3a;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    color: #2c2c54;
    font-weight: 600;
    margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }

p {
    margin-bottom: 1rem;
    font-size: 1rem;
}

/* Buttons */
.btn, button, input[type="button"], input[type="submit"] {
    display: inline-block;
    padding: 12px 30px;
    background-color: #ff6b4a;
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn:hover, button:hover {
    background-color: #e55a3a;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 107, 74, 0.3);
}

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

/* Header & Navigation */
header {
    background-color: #f5f1e8;
    border-bottom: 1px solid #e8e0d5;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2c2c54;
}

.logo a {
    color: #2c2c54;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
    align-items: center;
}

nav a {
    color: #2c2c54;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: all 0.3s ease;
}

nav a:hover {
    background-color: rgba(255, 107, 74, 0.1);
    color: #ff6b4a;
}

/* Main Content */
main {
    min-height: 60vh;
    padding: 3rem 0;
}

/* Posts Grid */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.post-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.post-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

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

.post-content {
    padding: 1.5rem;
}

.post-category {
    display: inline-block;
    background-color: #ffd93d;
    color: #2c2c54;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.post-card h3 {
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
}

.post-card p {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.post-meta {
    font-size: 0.85rem;
    color: #999;
}

/* Q&A Section */
.qa-section {
    background: linear-gradient(135deg, #f5f1e8 0%, #fff9f0 100%);
    padding: 3rem 0;
    margin: 3rem 0;
}

.qa-title {
    text-align: center;
    margin-bottom: 2rem;
}

.qa-container {
    max-width: 800px;
    margin: 0 auto;
}

.qa-item {
    background: white;
    margin-bottom: 1rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.qa-question {
    padding: 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #2c2c54;
    font-weight: 600;
    transition: all 0.3s ease;
}

.qa-question:hover {
    background-color: #f9f6f0;
}

.qa-toggle {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #ff6b4a;
    transition: transform 0.3s ease;
}

.qa-item.active .qa-toggle {
    transform: rotate(180deg);
}

.qa-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background-color: #fafaf8;
}

.qa-item.active .qa-answer {
    max-height: 500px;
    padding: 1.5rem;
    border-top: 1px solid #e8e0d5;
}

.qa-answer p {
    color: #666;
    margin: 0;
}

/* Footer */
footer {
    background-color: #2c2c54;
    color: white;
    padding: 2rem 0;
    margin-top: 3rem;
}

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

footer p {
    margin: 0.5rem 0;
    color: #ccc;
}

footer a {
    color: #ff6b4a;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }

    nav ul {
        flex-direction: column;
        gap: 0.5rem;
        width: 100%;
    }

    nav a {
        display: block;
        width: 100%;
        text-align: center;
    }

    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }

    .posts-grid {
        grid-template-columns: 1fr;
    }

    .qa-question {
        font-size: 0.95rem;
    }
}

/* Utilities */
.text-center {
    text-align: center;
}

.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }

.hidden {
    display: none;
}
