/* style.css */

/*
div {
	border: 1px solid #cc0000;
}
*/

body {
    font-family: 'Segoe UI', Arial, sans-serif;
    margin: 0;
    background: #8BB0F4;
    color: #333;
}

.container {
    max-width: 1400px;
    margin: 30px auto;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    padding: 30px;
}

.hero-image {
	text-align: center;
	padding: 10px;
	border-radius: 10px;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.movie-title {
	margin-top: 10px;
	text-align: center;
}

.nav {
    text-align: center;
    margin-bottom: 30px;
    padding: 15px;
    /*background: #f8f9fa; */
    border-radius: 8px;
}

.nav a {
    margin: 0 20px;
    text-decoration: none;
    font-weight: 600;
    color: #007bff;
}

.nav a:hover {
    color: #0056b3;
}

h1 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 25px;
}

.controls {
	display: flex;
	justify-content: center;
	align-items: center;
	padding: 15px;
}

input[type="text"] {
    border-radius: 8px;        /* Adjust this number */
    padding: 10px;
    border: 1px solid #ccc;
}

.detail-box {
	display: grid;
	grid-template-columns: 1fr 280px;
	gap: 30px;
	margin-top: 20px;
	padding: 10px;
}

.poster, .backdrop {
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

button {
    padding: 12px 28px;
    font-size: 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.save-btn {
    background: #28a745;
    color: white;
}

.save-btn:hover {
    background: #218838;
}

.delete-btn {
    background: #dc3545;
    color: white;
}

.delete-btn:hover {
    background: #c82333;
}

/* TRAILER GRID */
.trailer-grid {
    display: flex;
    align: center;
    flex-wrap: wrap;
    gap: 15px;
    padding: 10px;
}

.trailer-grid img {
    border-radius: 8px;
    transition: transform 0.3s;
}

.trailer-grid img:hover {
    transform: scale(1.05);
}

/* Movie Grid - 10 per row */
/*
.movies {
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    gap: 12px;
}
*/

.movies {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
	gap: 12px;
}

.movie-card {
    text-align: center;
    position: relative;
    transition: transform 0.3s, box-shadow 0.3s;
}

.movie-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.12);
}

.poster {
    width: 100%;
    max-height: 160px;   /* Smaller height */
    object-fit: cover;
    border-radius: 6px;
}

.poster-image {
	display: flex;
	align-items: center;
	justify-content: center;
}

/* Back To Top Button Styling */
#backToTopBtn {
    display: none;
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 99;
    font-size: 15px;
    font-weight: bold;
    background-color: #007bff;
    color: white;
    border: none;
    outline: none;
    cursor: pointer;
    padding: 10px 16px;
    border-radius: 30px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    transition: background-color 0.2s, transform 0.2s;
}

#backToTopBtn:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
}
