/*
 * Homepage-specific styles (front-page.php)
 * (Search bar styling REMOVED - now in search-bar.css)
 */

/* Main Search Bar (Homepage Only) - Rule REMOVED */


/* --- Category Buttons (Homepage Only) --- */
body.home .home-categories {
	padding-bottom: 30px; /* Adjusted padding */
	text-align: center;
}

/* Row 1: Bade Buttons */
body.home .home-categories-main {
	list-style: none;
	padding: 0;
	margin: 0 0 10px 0;
	display: grid; /* 2x2 Grid on mobile */
    grid-template-columns: 1fr 1fr;
	gap: 10px;
}
body.home .home-categories-main li a {
	display: block;
	padding: 10px 8px; /* Adjusted padding */
	color: #fff;
	text-decoration: none;
	border-radius: 5px;
	font-size: 0.8rem; /* Adjusted font size */
	font-weight: bold;
	text-transform: uppercase;
	transition: all 0.2s;
	box-shadow: 0 2px 4px rgba(0,0,0,0.15); /* Adjusted shadow */
}
body.home .home-categories-main li a:hover {
	opacity: 0.9;
	transform: translateY(-1px); /* Subtle hover */
}

/* Row 2: Chhote Buttons */
body.home .home-categories-secondary {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
}
body.home .home-categories-secondary li a {
	display: block;
	padding: 5px 12px;
	color: #333;
	background: #f0ad4e;
	border: 1px solid #eea236;
	text-decoration: none;
	border-radius: 4px;
	font-size: 0.75rem;
	font-weight: 600;
	text-transform: capitalize;
	transition: all 0.2s;
}
body.home .home-categories-secondary li a:hover {
	background: #ec971f;
	border-color: #d58512;
}

/* Button Colors */
body.home .cat-btn-green { background: linear-gradient(to bottom, #5cb85c 0%, #4cae4c 100%); border: 1px solid #4cae4c; }
body.home .cat-btn-orange { background: linear-gradient(to bottom, #f0ad4e 0%, #eea236 100%); border: 1px solid #eea236; }
body.home .cat-btn-purple { background: linear-gradient(to bottom, #9c27b0 0%, #7b1fa2 100%); border: 1px solid #7b1fa2; }
body.home .cat-btn-red { background: linear-gradient(to bottom, #d9534f 0%, #d43f3a 100%); border: 1px solid #d43f3a; }


/* --- Movie Grid (Homepage, Search, Archive) --- */
.site-main-home, .site-main-archive, .site-main-search {
	max-width: 1200px;
	margin: 20px auto;
	padding: 0 15px;
}

.movie-grid-container {
	display: grid;
	gap: 10px;
	grid-template-columns: 1fr 1fr; /* Mobile: 2-column */
}

.movie-grid-item {
	background: #fff;
	border-radius: 5px;
	overflow: hidden;
	border: 1px solid #ddd;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05); /* Lighter shadow */
}

.movie-poster a {
	display: block;
	line-height: 0;
}

.movie-poster img {
	width: 100%;
	height: auto;
	aspect-ratio: 2 / 3;
	object-fit: cover;
	display: block;
}

/* Title Style (Homepage, Search, Archive) */
.movie-title {
	font-size: 0.8rem; /* Mobile title size */
	margin: 0;
	padding: 8px;
	text-align: center;
	background: #f9f9f9;
    line-height: 1.3;
    word-wrap: break-word;
    overflow-wrap: break-word;
    color: #333; /* Ensure text color */
}
.movie-title a {
	color: inherit; /* Inherit color from h3 */
	text-decoration: none;
	font-weight: 600;
}
.movie-title a:hover {
	color: #007bff;
}

/* PC Layout */
@media (min-width: 769px) {
	/* Categories on PC */
	body.home .home-categories-main {
		grid-template-columns: repeat(4, 1fr); /* 4-col PC */
	}
    body.home .home-categories-main li a {
		font-size: 0.9rem; 
        padding: 12px 15px;
	}
    body.home .home-categories-secondary li a {
		font-size: 0.8rem; 
	}

	.movie-grid-container {
		grid-template-columns: repeat(4, 1fr);
	}
    .movie-title {
        font-size: 0.9rem; /* PC title size */
    }
}

@media (min-width: 1024px) {
	.movie-grid-container {
		grid-template-columns: repeat(6, 1fr);
	}
}

/* Mobile Specific Adjustments */
@media (max-width: 768px) {
	/* Logo centering handled by style.css */

    /* Category buttons padding */
    body.home .home-categories-main li a {
        padding: 10px 8px; 
    }
    body.home .home-categories-secondary li a {
        padding: 4px 10px; 
    }
}