/* --- Global Reset & Base Styles --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f0f4f8; /* Soft light background */
    color: #334155;
}

a {
    text-decoration: none;
    color: inherit;
}

/* No Post Available Message Box Style */
.no-post-box {
    grid-column: 1 / -1; /* Grid ki poori width lega (Mobile & PC dono par) */
    background: #ffffff;
    border: 1px dashed #cbd5e1;
    color: #64748b;
    text-align: center;
    padding: 20px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
    margin: 5px 0;
}

/* --- Full Screen Wide Container --- */
.site-wrapper {
    max-width: 1400px; /* PC par poora wide screen cover karega */
    margin: 0 auto;
    background-color: #ffffff;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.08);
    min-height: 100vh;
}

/* --- Header & Branding --- */
.site-header {
    background: linear-gradient(135deg, #0284c7, #0369a1); /* Stylish Blue Gradient */
    padding: 15px 20px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.logo img {
    max-width: 230px;
    height: auto;
    display: block;
    margin: 0 auto 12px;
}

/* --- Modern Live Search Box --- */
.live-search-wrapper {
    position: relative;
    max-width: 500px;
    margin: 0 auto;
}

.search-box {
    display: flex;
    background: #fff;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.15);
}

.search-box input[type="text"] {
    width: 80%;
    padding: 10px 18px;
    border: none;
    outline: none;
    font-size: 14px;
    color: #333;
}

.search-box button {
    width: 20%;
    background-color: #f59e0b;
    color: #fff;
    border: none;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.2s;
}

.search-box button:hover {
    background-color: #d97706;
}

/* Search Dropdown Results */
.search-dropdown-results {
    position: absolute;
    top: 110%;
    left: 0;
    right: 0;
    background: #ffffff;
    z-index: 999;
    max-height: 280px;
    overflow-y: auto;
    display: none;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    text-align: left;
    border: 1px solid #e2e8f0;
}

.search-result-item {
    display: block;
    padding: 10px 15px;
    color: #1e293b;
    font-size: 13px;
    font-weight: 600;
    border-bottom: 1px solid #f1f5f9;
}

.search-result-item:hover {
    background-color: #f8fafc;
    color: #0284c7;
}

/* --- Alert Bar --- */
.alert-bar {
    background-color: #fef9c3;
    border: 1px solid #fde047;
    color: #854d0e;
    padding: 10px 15px;
    margin: 15px;
    font-size: 13px;
    border-radius: 6px;
    text-align: center;
}

.alert-bar a {
    color: #0284c7;
    font-weight: bold;
}

/* --- Section Headings (Stylish Gradient & Rounded) --- */
.section-title {
    background: linear-gradient(90deg, #e0f2fe, #bae6fd);
    border-left: 5px solid #0284c7;
    color: #0369a1;
    padding: 10px 15px;
    text-align: left;
    font-size: 15px;
    font-weight: bold;
    margin: 20px 15px 12px;
    border-radius: 0 6px 6px 0;
}

/* --- Movie Grid Layout (Mobile: 1 Column | PC: 2 Columns Full Width) --- */
.movie-grid {
    display: grid;
    grid-template-columns: 1fr; /* Default Mobile: 1 Column */
    gap: 15px;
    padding: 0 15px 15px;
}

/* PC / Desktop Screens (Min-width 768px) */
@media screen and (min-width: 768px) {
    .movie-grid {
        grid-template-columns: repeat(2, 1fr); /* PC: 2 Columns Full Wide */
    }
}

/* --- Stylish Movie Card --- */
.movie-card {
    display: flex;
    align-items: center;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
    transition: all 0.25s ease;
}

.movie-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(2, 132, 199, 0.12);
    border-color: #0284c7;
}

.movie-thumb {
    width: 80px;
    height: 105px;
    object-fit: cover;
    border-radius: 8px;
    margin-right: 12px;
    flex-shrink: 0;
    background-color: #f1f5f9;
}

.movie-info {
    flex-grow: 1;
}

.movie-title {
    font-size: 14px;
    font-weight: 600;
    color: #0284c7;
    line-height: 1.4;
    margin-bottom: 8px;
    display: block;
}

.movie-title:hover {
    color: #0369a1;
    text-decoration: underline;
}

/* --- Modern Categories Section --- */
.categories-section {
    padding: 30px 20px;
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
    text-align: center;
}

.categories-section h3 {
    font-size: 16px;
    margin-bottom: 15px;
    color: #1e293b;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* Stylish Grid Layout for Categories */
.category-tags-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px; /* Categories ke beech ka gap */
    max-width: 1000px;
    margin: 0 auto;
}

.category-tags-list a {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    border: 1px solid #cbd5e1;
    color: #0284c7;
    padding: 8px 16px;
    border-radius: 50px; /* Fully rounded pill shape */
    font-size: 13px;
    font-weight: 600;
    transition: all 0.25s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

/* Hover Effect - Premium Look */
.category-tags-list a:hover {
    background: linear-gradient(135deg, #0284c7, #0369a1);
    color: #ffffff;
    border-color: #0284c7;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(2, 132, 199, 0.25);
}

/* --- Pagination --- */
.pagination {
    text-align: center;
    padding: 20px;
}

.pagination a {
    background-color: #0284c7;
    color: #fff;
    padding: 8px 25px;
    border-radius: 30px;
    font-weight: bold;
    font-size: 14px;
    box-shadow: 0 4px 10px rgba(2, 132, 199, 0.3);
    transition: background 0.2s;
}

.pagination a:hover {
    background-color: #0369a1;
}

.container, .site-wrapper {
    max-width: 100% !important;
    width: 100% !important;
}

/* --- Footer --- */
footer {
    background-color: #1e293b;
    color: #94a3b8;
    text-align: center;
    padding: 25px;
    font-size: 13px;
    border-top: 1px solid #334155;
}

footer a {
    color: #38bdf8;
    margin: 0 6px;
}

footer a:hover {
    text-decoration: underline;
}


