/* style.css */
:root {
    --primary-color: #2563eb; /* Royal Blue */
    --secondary-color: #f8fafc; /* Light Gray Background */
    --text-dark: #1e293b; /* Dark Slate Text */
    --accent-color: #3b82f6; /* Lighter Blue for hover */
    --white: #ffffff;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}




* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--secondary-color);
    color: var(--text-dark);
    line-height: 1.6;
}

/* Header & Navigation */
header {
    background-color: var(--white);
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
    letter-spacing: -1px;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

nav ul li a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: var(--primary-color);
}

/* Search Bar Design */
.search-bar form {
    display: flex;
    background: #f1f5f9;
    padding: 5px;
    border-radius: 50px;
    border: 1px solid #e2e8f0;
}

.search-bar input {
    padding: 8px 15px;
    border: none;
    background: transparent;
    outline: none;
    width: 220px;
}

.search-bar button {
    padding: 8px 20px;
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s ease;
}

.search-bar button:hover {
    background-color: #1d4ed8;
}

/* Main Content Area */
main {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

h2 {
    font-size: 1.8rem;
    margin-bottom: 30px;
    color: var(--text-dark);
    font-weight: 700;
}

/* Horizontal Scroll Grid */
.movie-grid {
    display: flex; /* තිරස් අතට පෙළගැස්වීම */
    overflow-x: auto; /* තිරස් අතට ස්ක්‍රෝල් කිරීමට */
    gap: 20px;
    padding: 10px 5px 25px 5px;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch; /* Mobile සිනිඳු ලෙස ස්ක්‍රෝල් වීමට */
}

/* Scrollbar පෙනුම ලස්සන කිරීමට */
.movie-grid::-webkit-scrollbar {
    height: 8px;
}

.movie-grid::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 10px;
}

.movie-grid::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 10px;
}

/* Movie Card එකක ප්‍රමාණය ස්ථාවර කිරීමට */
.movie-card {
    min-width: 200px; /* කාඩ් එකේ පළල */
    flex: 0 0 auto;
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: 0.3s;
}

/* Movie Card Grid */
.movie-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 30px;
}

.movie-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: var(--shadow);
    border: 1px solid #f1f5f9;
}

.movie-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.movie-card img {
    width: 100%;
    height: 320px;
    object-fit: cover;
}

.movie-card h3 {
    padding: 15px 15px 5px 15px;
    font-size: 1.1rem;
    color: var(--text-dark);
}

/* Buttons */
.btn {
    display: block;
    margin: 15px;
    padding: 12px;
    background-color: #eff6ff;
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 1px solid #dbeafe;
}

.btn:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

/* Download Page Specifics */
.download-container {
    background: var(--white);
    padding: 40px;
    border-radius: 16px;
    box-shadow: var(--shadow);
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.download-container img {
    width: 250px;
    border-radius: 12px;
    margin-bottom: 25px;
    box-shadow: var(--shadow);
}

.download-container p {
    color: #64748b;
    margin-bottom: 20px;
}

/* Footer Styles */
footer {
    background-color: var(--white);
    padding: 50px 5% 20px 5%;
    margin-top: 50px;
    box-shadow: 0 -4px 6px -1px rgba(0, 0, 0, 0.05);
    border-top: 1px solid #e2e8f0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    color: var(--text-dark);
    font-size: 1.2rem;
    margin-bottom: 20px;
    position: relative;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 30px;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

.footer-section p {
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.7;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: #64748b;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #f1f5f9;
    color: #94a3b8;
    font-size: 0.9rem;
}

.footer-bottom b {
    color: var(--primary-color);
}