/*
Theme Name: 7starBD Movie Downloader
Theme URI: https://7starbd.net/
Author: Baijid
Author URI: https://7starbd.net/
Description: A lightweight, SEO-friendly, and fast-loading WordPress movie download theme with a grid-based layout.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: 7starBD-movie-theme
Tags: custom-background, custom-header, custom-menu, featured-images, post-formats, theme-options, translation-ready, two-columns
*/

/* --- Basic Reset and Typography --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    /* background-color: #f0f0f0; Light background - now handled by Customizer */
    color: #333;
    line-height: 1.6;
}

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

a:hover {
    text-decoration: underline;
}

/* --- Layout Structure --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* --- Header Styling (Inspired by Screenshot) --- */
.site-header {
    background-color: #1e8449; /* Green from screenshot */
    padding: 15px 0;
    color: white;
}

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

.site-branding a {
    color: white;
    font-size: 24px;
    font-weight: bold;
    text-decoration: none;
}

.search-form {
    display: flex;
}

.search-form input[type="search"] {
    padding: 8px 10px;
    border: none;
    border-radius: 3px 0 0 3px;
    font-size: 14px;
}

.search-form input[type="submit"] {
    background-color: #ff8c00; /* Orange from screenshot */
    color: white;
    border: none;
    padding: 8px 15px;
    cursor: pointer;
    border-radius: 0 3px 3px 0;
    font-size: 14px;
}

/* --- Navigation Bar --- */
.taxonomy-nav {
    background-color: #f7f7f7;
    padding: 10px 0;
    border-bottom: 1px solid #ddd;
}

.taxonomy-nav-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    justify-content: center;
}

.taxonomy-nav a {
    background-color: #ff8c00; /* Orange button */
    color: white;
    padding: 5px 10px;
    border-radius: 3px;
    font-size: 13px;
    text-transform: uppercase;
    font-weight: 600;
    transition: background-color 0.2s;
}

.taxonomy-nav a:hover {
    background-color: #e07b00;
    text-decoration: none;
}

/* --- Main Content Grid (index.php) --- */
.movie-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Responsive grid */
    gap: 20px;
    padding: 20px 0;
}

/* --- Movie Card Styling --- */
.movie-card {
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.2s;
}

.movie-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.movie-card-poster {
    position: relative;
    overflow: hidden;
}

.movie-card-poster img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.movie-card-info {
    padding: 10px;
}

.movie-card-info h2 {
    font-size: 16px;
    margin-bottom: 5px;
    line-height: 1.3;
}

.movie-card-info p {
    font-size: 13px;
    color: #666;
    margin-bottom: 3px;
}

.quality-tag {
    font-weight: bold;
    color: #1e8449; /* Green for quality */
}

.size-tag {
    color: #ff8c00; /* Orange for size */
}

/* --- Footer Styling --- */
.site-footer {
    background-color: #1e8449; /* Green from screenshot */
    color: white;
    padding: 20px 0;
    font-size: 13px;
    text-align: center;
}

.footer-links a {
    color: white;
    margin: 0 10px;
}

/* --- Responsiveness (Mobile First) --- */
@media (max-width: 768px) {
    .header-inner {
        flex-direction: column;
        gap: 10px;
    }

    .search-form {
        width: 100%;
    }

    .search-form input[type="search"] {
        flex-grow: 1;
    }

    .movie-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); /* Smaller cards on mobile */
    }
}

/* --- Single Movie Page Styling (single.php) --- */
.movie-details {
    padding: 20px 0;
    background-color: white;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.entry-header {
    background-color: #ff8c00; /* Orange background for title */
    color: white;
    padding: 15px 20px;
    margin-bottom: 20px;
    border-radius: 5px 5px 0 0;
}

.entry-header h1 {
    font-size: 28px;
    margin: 0;
}

.movie-meta-info {
    padding: 0 20px 20px;
    border-bottom: 1px solid #eee;
    margin-bottom: 20px;
}

.movie-meta-info p {
    margin-bottom: 5px;
}

.movie-poster-single {
    float: left;
    margin-right: 20px;
    max-width: 300px;
}

.movie-poster-single img {
    width: 100%;
    height: auto;
    border-radius: 5px;
}

.entry-content {
    padding: 0 20px 20px;
    overflow: hidden; /* Clear float */
}

/* --- Download Section and Buttons --- */
.download-section {
    clear: both;
    margin-top: 30px;
    padding: 20px;
    background-color: #f7f7f7;
    border: 1px solid #ddd;
    border-radius: 5px;
    text-align: center;
}

.download-section h2 {
    color: #1e8449;
    margin-bottom: 15px;
    font-size: 24px;
}

.download-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.download-btn {
    background-color: #1e8449; /* Green CTA */
    color: white;
    padding: 15px 30px;
    border-radius: 5px;
    font-size: 18px;
    font-weight: bold;
    text-transform: uppercase;
    transition: background-color 0.2s, transform 0.1s;
    box-shadow: 0 4px 0 #145a32; /* Darker green shadow */
    text-decoration: none;
    display: inline-block;
}

.download-btn:hover {
    background-color: #145a32;
    transform: translateY(2px);
    box-shadow: 0 2px 0 #145a32;
    text-decoration: none;
}

/* --- Pagination Styling --- */
.pagination-links {
    clear: both;
    padding: 20px 0;
    text-align: center;
}

.pagination-links a, .pagination-links .current {
    display: inline-block;
    padding: 8px 15px;
    margin: 0 5px;
    border: 1px solid #ddd;
    border-radius: 3px;
    text-decoration: none;
    background-color: white;
}

.pagination-links .current {
    background-color: #ff8c00;
    color: white;
    border-color: #ff8c00;
    font-weight: bold;
}

.pagination-links a:hover {
    background-color: #f0f0f0;
}

/* --- Responsive Adjustments for Single Page --- */
@media (max-width: 768px) {
    .movie-poster-single {
        float: none;
        margin: 0 auto 20px;
        max-width: 100%;
    }

    .download-buttons {
        flex-direction: column;
        gap: 10px;
    }

    .download-btn {
        width: 100%;
    }
}

/* --- Welcome Bar Styling --- */
.welcome-bar {
    background-color: #1e8449; /* Same green as header */
    color: white;
    text-align: center;
    padding: 8px 0;
    font-size: 14px;
    font-weight: 500;
}

/* --- White Bar Styling (Between Header and Welcome Bar) --- */
.white-bar {
    background-color: white;
    height: 10px; /* Adjust height as needed */
    width: 100%;
    border-bottom: 1px solid #ddd; /* Optional subtle separation line */
}


/* --- Content Header Bar (Orange Bar with Homepage Text) --- */
.content-header-bar {
    background-color: #ff8c00; /* Orange color */
    color: white;
    padding: 10px 15px;
    margin-top: 10px; /* Space below the navigation bar */
    display: flex;
    align-items: center;
    justify-content: flex-start; /* Align content to the left */
    font-weight: bold;
    font-size: 16px;
    border-radius: 3px;
}

.content-header-bar .folder-icon {
    /* Simple text-based folder icon for lightweight design */
    font-family: sans-serif;
    font-size: 18px;
    margin-right: 10px;
    color: white;
}

.content-header-bar .folder-icon::before {
    content: "\25B6"; /* Simple right-pointing triangle as a folder/arrow icon */
}

.content-header-bar .title {
    flex-grow: 1; /* Pushes the title to the right if needed, but here we keep it left */
}

/* --- Custom Logo Styling --- */
.custom-logo-link img {
    max-height: 50px; /* Adjust height as needed */
    width: auto;
    display: block;
}
