/* assets/css/styles.css */

/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Body Styling */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    background-color: #f9f9f9;
    color: #333;
    padding: 20px;
}

/* Header Styling */
header {
    background: #4CAF50;
    /* A refreshing green color */
    color: #fff;
    padding: 15px 0;
    text-align: center;
    border-radius: 8px;
    margin-bottom: 20px;
}

header h1 {
    margin: 0;
    font-size: 2.5rem;
}

/* Main Section Styling */
main {
    max-width: 900px;
    margin: 0 auto;
}

/* Search Section */
#search-section {
    text-align: center;
    margin-bottom: 20px;
}

#search-section h2 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: #333;
}

#search-form input[type="text"] {
    padding: 10px;
    width: 70%;
    margin-right: 10px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    background-color: #fff;
}

#search-form button {
    padding: 10px 20px;
    border: none;
    background: #4CAF50;
    color: #fff;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
}

#search-form button:hover {
    background: #45a049;
}

/* Results Section */
#results-section {
    margin-top: 20px;
}

.result-item {
    background: #fff;
    border: 1px solid #ddd;
    margin-bottom: 15px;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease-in-out;
}

.result-item:hover {
    transform: translateY(-5px);
}

.result-item img {
    width: 100%;
    /* Makes the image take up the full width of the container */
    height: 500px;
    /* Sets a fixed height for all images */
    object-fit: cover;
    /* Ensures the image covers the entire area while maintaining aspect ratio */
    margin-bottom: 10px;
    /* Adds space below the image */
    border-radius: 5px;
    /* Retains rounded corners */
}

.result-item h3 {
    margin-bottom: 10px;
    font-size: 1.4rem;
    color: #333;
}

.result-item p {
    margin-bottom: 10px;
    font-size: 1rem;
    color: #666;
}

.result-item a {
    display: inline-block;
    text-decoration: none;
    color: #4CAF50;
    background: #e8f5e9;
    padding: 8px 15px;
    border-radius: 5px;
    transition: background 0.3s, color 0.3s;
}

.result-item a:hover {
    background: #45a049;
    color: #fff;
}

/* Details Section */
#details-section {
    background: #fff;
    border: 1px solid #ddd;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-top: 20px;
}

#details-section img,
#details-section video {
    max-width: 100%;
    height: auto;
    margin-bottom: 20px;
    border-radius: 5px;
}

/* Footer Styling */
footer {
    background: #4CAF50;
    color: #fff;
    text-align: center;
    padding: 15px 0;
    margin-top: 30px;
    border-radius: 8px;
}

footer p {
    margin: 0;
    font-size: 1rem;
}