/*
Theme Name: MFPlaybook
Theme URI: https://mfplaybook.com/
Author: Your Name
Author URI: https://yourwebsite.com/
Description: A responsive classic WordPress theme for football strategy, based on the provided template. Designed for coaches and players to explore playbooks, schemes, and blogs.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: responsive-layout, custom-menu, featured-images, blog, one-column, dark
Text Domain: mfplaybook
*/

/* ===== Global Styles ===== */
:root {
    --primary: #00a651; /* Football field green */
    --primary-hover: #25724a; /* Football field green */
    --secondary: #ff6b00; /* Vibrant orange */
    --accent: #1e90ff; /* Bright blue */
    --dark: #111111; /* Almost black */
    --darker: rgb(7, 11, 11)/*#0a0a0a*/;
    --light: #f8f9fa;
    --gray: #2a2a2a;
    --light-gray: #444;
    --card-bg: rgba(30, 30, 30, 0.9);
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Montserrat', 'Segoe UI', Roboto, sans-serif;
    background-color: var(--dark);
    color: var(--light);
    line-height: 1.6;
    background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiPgogIDxkZWZzPgogICAgPHBhdHRlcm4gaWQ9InBhdHRlcm4iIHg9IjAiIHk9IjAiIHdpZHRoPSI4MCIgaGVpZ2h0PSI4MCIgcGF0dGVyblVuaXRzPSJ1c2VyU3BhY2VPblVzZSIgcGF0dGVyblRyYW5zZm9ybT0icm90YXRlKDEzNSkiPgogICAgICA8cmVjdCB4PSIwIiB5PSIwIiB3aWR0aD0iNDAiIGhlaWdodD0iNDAiIGZpbGw9IiMxMTExMTEiIC8+CiAgICAgIDxyZWN0IHg9IjQwIiB5PSIwIiB3aWR0aD0iNDAiIGhlaWdodD0iNDAiIGZpbGw9IiMxMTExMTEiIC8+CiAgICAgIDxyZWN0IHg9IjAiIHk9IjQwIiB3aWR0aD0iNDAiIGZpbGw9IiMxMTExMTEiIC8+CiAgICAgIDxyZWN0IHg9IjQwIiB5PSI0MCIgd2lkdGg9IjQwIiBoZWlnaHQ9IjQwIiBmaWxsPSIjMTExMTExIiAvPgogICAgICA8cGF0aCBkPSJNNDAsMEw0MCw0MEwwLDQwTDAwIiBmaWxsPSJub25lIiBzdHJva2U9IiMwMGE2NTEiIHN0cm9rZS13aWR0aD0iMSIgLz4KICAgICAgPHBhdGggZD0iTTQwLDQwTDgwLDQwTDgwLDBMNDAsMCIgZmlsbD0ibm9uZSIgc3Ryb2tlPSIjMDBhNjUxIiBzdHJva2Utd2lkdGg9IjEiIC8+CiAgICA8L3BhdHRlcm4+CiAgPC9kZWZzPgogIDxyZWN0IHg9IjAiIHk9IjAiIHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiIGZpbGw9InVybCgjcGF0dGVybikiIC8+Cjwvc3ZnPg==');
    overflow-x: hidden;
}

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

a {
    color: var(--accent);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--secondary);
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none; /* Removes underline from the link */
}

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

.btn {
    display: inline-block;
    padding: 12px 28px;
    background-color: var(--primary);
    color: white;
    border: none;
    border-radius: 30px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.btn:hover {
    background-color: var(--secondary);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(255, 107, 0, 0.3);
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid var(--primary);
}

.btn-secondary:hover {
    background-color: var(--primary-hover);
    border-color: var(--primary);
}

/* ===== Header Styles ===== */
.header {
    background-color: rgba(10, 10, 10, 0.95);
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    padding: 15px 0;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

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

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 50px;
    margin-right: 10px;
}

.logo h1 {
    font-size: 1.8rem;
    font-weight: 800;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.nav-menu {
    display: flex;
    list-style: none;
}

.nav-menu li {
    margin-left: 30px;
    position: relative;
}

.nav-menu a {
    color: var(--light);
    font-weight: 600;
    padding: 8px 0;
    position: relative;
}

.nav-menu a:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

.nav-menu a:hover:after,
.nav-menu .current-menu-item a:after { /* Highlight current page */
    width: 100%;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--light);
    font-size: 1.5rem;
    cursor: pointer;
}

/* ===== Hero Section ===== */
.hero {
    padding: 150px 0 100px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7));
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero h1 span {
    color: var(--primary);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

/* ===== Features Section ===== */
.features {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.5rem;
    text-transform: uppercase;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-title h2:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--primary);
    border-radius: 2px;
}

.section-title p {
    max-width: 700px;
    margin: 20px auto 0;
    color: #bbb;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    background: var(--card-bg);
    border-radius: 10px;
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid var(--gray);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
}

.feature-card-link { /* Wrapper for making the whole card a link */
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
}

.feature-img {
    aspect-ratio: 1 / 1;
    overflow: hidden;
}

.feature-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.feature-card:hover .feature-img img {
    transform: scale(1.1);
}

.feature-content {
    padding: 25px;
    flex-grow: 1; /* Allows content to fill space */
}

.feature-content h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--primary);
}
.feature-content p {
    color: #bbb;
}


/* ===== Playbooks Section ===== */
.playbooks {
    padding: 80px 0;
    background-color: var(--darker);
}

.playbooks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.playbook-card {
    background: var(--card-bg);
    border-radius: 10px;
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid var(--gray);
    display: flex;
    flex-direction: column;
}

.playbook-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    border-color: var(--secondary);
}
.playbook-card .feature-img img {
    aspect-ratio: 1 / 1;
    width: 100%;
    height: auto;
    object-fit: cover;
}

.playbook-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.playbook-meta {
    display: flex;
    color: #bbb;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.playbook-meta span {
    margin-right: 15px;
    display: flex;
    align-items: center;
}

.playbook-meta i {
    margin-right: 5px;
    color: var(--primary);
}

.playbook-content h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    line-height: 1.4;
}
.playbook-content h3 a {
    color: var(--light);
}
.playbook-content h3 a:hover {
    color: var(--secondary);
}

.playbook-content p {
    color: #bbb;
    margin-bottom: 20px;
    flex-grow: 1;
}

/* ===== CTA Section ===== */
.cta {
    padding: 100px 0;
    text-align: center;
    background: linear-gradient(to right, rgba(0, 166, 81, 0.2), rgba(255, 107, 0, 0.2)), var(--darker);
    position: relative;
    overflow: hidden;
}

.cta h2 {
    font-size: 2.8rem;
    margin-bottom: 20px;
}

.cta p {
    max-width: 700px;
    margin: 0 auto 40px;
    font-size: 1.2rem;
}

/* ===== Footer ===== */
.footer {
    background-color: var(--darker);
    padding: 70px 0 30px;
    border-top: 1px solid var(--gray);
}

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

.footer-widget h3 {
    font-size: 1.4rem;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer-widget h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--primary);
}

.footer-widget p {
    color: #bbb;
    margin-bottom: 20px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #bbb;
    display: flex;
    align-items: center;
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-links i {
    margin-right: 10px;
    color: var(--primary);
}

.social-links {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 20px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--gray);
    border-radius: 50%;
    color: var(--light);
    transition: var(--transition);
}

.social-links a:hover {
    background: red/*var(--primary)*/;
    transform: translateY(-3px);
}

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid var(--gray);
    color: #777;
    font-size: 0.9rem;
}

/* ===== WordPress Specific Styles ===== */
.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	-webkit-clip-path: inset(50%);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal !important;
}

/* ===== Responsive Styles ===== */
@media (max-width: 992px) {
    .hero h1 {
        font-size: 2.8rem;
    }
    .section-title h2 {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 80px; /* Adjust based on header height */
        left: -100%;
        flex-direction: column;
        background: var(--darker);
        width: 100%;
        text-align: center;
        transition: var(--transition);
        padding: 20px 0;
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.3);
    }
    .nav-menu.active {
        left: 0;
    }
    .nav-menu li {
        margin: 15px 0;
    }
    .nav-toggle {
        display: block;
    }
    .header {
        padding: 15px 0; /* Keep padding consistent */
    }
    .hero h1 {
        font-size: 2.3rem;
    }
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    .cta h2 {
        font-size: 2.2rem;
    }
}

@media (max-width: 576px) {
    .hero {
        padding: 120px 0 80px;
    }
    .hero h1 {
        font-size: 2rem;
    }
    .hero p {
        font-size: 1rem;
    }
    .section-title h2 {
        font-size: 1.8rem;
    }
}

/* ===== Post & Page Content Styles ===== */
.entry-header {
    margin-bottom: 40px;
}

.post-thumbnail {
	display: flex;
    justify-content: center;
    margin-bottom: 40px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

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

.entry-content {
    line-height: 1.8;
    font-size: 1.1rem;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
    margin-top: 2em;
    margin-bottom: 1em;
    line-height: 1.3;
    color: var(--primary);
}

.entry-content p {
    margin-bottom: 1.5em;
}

.entry-content a {
    text-decoration: underline;
}
.entry-content a:hover {
    text-decoration: none;
}

.entry-content ul,
.entry-content ol {
    margin: 0 0 1.5em 1.5em;
}

.entry-content li {
    margin-bottom: 0.5em;
}

.entry-content blockquote {
    border-left: 4px solid var(--primary);
    padding-left: 20px;
    margin: 2em 0;
    font-style: italic;
    color: #ccc;
}

.entry-footer {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--gray);
}

.post-tags span {
    font-weight: bold;
    color: var(--primary);
    margin-right: 10px;
}
.post-tags a {
    display: inline-block;
    background: var(--gray);
    padding: 5px 12px;
    border-radius: 20px;
    margin: 0 5px 5px 0;
    font-size: 0.9rem;
}
.post-tags a:hover {
    background: var(--secondary);
    color: var(--light);
}

/* ===== Archive and Pagination Styles ===== */
.archive-description {
    max-width: 700px;
    margin: -20px auto 40px;
    color: #bbb;
    font-size: 1.1rem;
}

.pagination .nav-links {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.pagination .page-numbers {
    display: inline-block;
    padding: 10px 18px;
    border: 1px solid var(--gray);
    border-radius: 5px;
    color: var(--light);
    transition: var(--transition);
}

.pagination .page-numbers:hover,
.pagination .page-numbers.current {
    background-color: var(--primary);
    border-color: var(--primary);
    color: var(--light);
    text-decoration: none;
}

/* ===== Comments Section Styles ===== */
.comments-area {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid var(--gray);
}
.comments-title, .comment-reply-title {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 40px;
}
.comment-list {
    list-style: none;
    padding: 0;
}
.comment-list .comment {
    padding: 25px;
    margin-bottom: 20px;
    background: var(--card-bg);
    border: 1px solid var(--light-gray);
    border-radius: 8px;
}
.comment-author .avatar {
    border-radius: 50%;
    margin-right: 15px;
    float: left;
}
.comment-meta {
    margin-bottom: 10px;
}
.comment-author .fn {
    font-weight: bold;
    color: var(--primary);
    font-style: normal;
}
.comment-metadata a {
    font-size: 0.9em;
    color: #999;
}
.comment-content p {
    margin: 10px 0;
}
.reply .comment-reply-link {
    display: inline-block;
    padding: 5px 15px;
    background: var(--gray);
    color: var(--light);
    border-radius: 20px;
    font-size: 0.9rem;
}
.reply .comment-reply-link:hover {
    background: var(--secondary);
}

/* Comment Form */
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 12px;
    background: var(--gray);
    border: 1px solid var(--light-gray);
    color: var(--light);
    border-radius: 5px;
    margin-bottom: 15px;
}
.comment-form input[type="submit"] {
    /* Reuse button style */
    display: inline-block;
    padding: 12px 28px;
    background-color: var(--primary);
    color: white;
    border: none;
    border-radius: 30px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
}
.comment-form input[type="submit"]:hover {
    background-color: var(--secondary);
}

.entry-content {
    background-color: rgba(7, 11, 11, 1);
    border-radius: 25px;
    padding: 25px 15px 10px 20px;
}

.entry-title {
    color: #00a651;
    font-size: 2.5rem;
}