/* Reset some default styling */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Body and overall styling */
body {
    font-family: Arial, sans-serif;
    background: #f4f4f9;
    color: #333;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
header {
    background-color: #FF5A5F;
    color: white;
    text-align: center;
    padding: 20px;
    font-size: 24px;
    font-weight: bold;
}

header h1 {
    font-size: 1.8em;
}

header p {
    font-size: 1.1em;
    margin-top: 0.3em;
}

/* Main content container */
#main-content {
    flex: 1;
    padding: 20px;
    padding-bottom: 80px; /* Leave space for the bottom navigation */
}

/* Filter section */
#filter-section {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
    flex-direction: column;
    align-items: center;
}

#filter-section label {
    font-size: 1.1em;
    margin-bottom: 5px;
}

#filter-section select {
    font-size: 1.1em;
    padding: 5px 10px;
    border-radius: 5px;
    border: 1px solid #ddd;
}

/* Profile list */
#profile-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    padding-bottom: 60px;
}

.profile {
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    text-align: center;
    padding: 10px;
    transition: box-shadow 0.2s ease-in-out;
}

.profile:hover {
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.profile img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 50%;
}

.profile p {
    margin-top: 10px;
    font-size: 1.1em;
}

/* Bottom navigation bar */
.bottom-nav {
    display: flex;
    justify-content: space-around;
    align-items: center;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #fff;
    border-radius: 20px;
    border-top: 1px solid #ddd;
    padding: 10px 0;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.nav-item {
    text-align: center;
    color: #333;
    text-decoration: none;
    font-size: 0.9em;
    transition: color 0.2s ease-in-out;
}

.nav-item img {
    width: 24px;
    height: 24px;
    display: block;
    margin: 0 auto 5px;
}

.nav-item:hover {
    color: #FF5A5F;
}

/* Floating button for creating posts */
.floating-button {
    position: fixed;
    top: 70px; /* Adjusted for better visibility */
    left: 20px;
    background-color: #FF5A5F;
    color: white;
    font-size: 24px;
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    text-align: center;
    line-height: 60px;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
    z-index: 1100; /* Ensures the button stays above other elements */
}

.floating-button:hover {
    background-color: #E14E54;
    transform: scale(1.1); /* Subtle zoom effect on hover */
}


/* Form Container */
form {
    max-width: 400px;
    margin: 40px auto;
    padding: 20px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

form div {
    margin-bottom: 15px;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

input[type="text"], 
textarea, 
select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    transition: border-color 0.3s;
}

input:focus, textarea:focus, select:focus {
    border-color: #FF5A5F;
    outline: none;
}

input[type="file"] {
    padding: 5px;
}

/* Submit Button */
button {
    width: 100%;
    padding: 10px;
    background-color: #FF5A5F;
    border: none;
    border-radius: 5px;
    color: white;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #E14E54;
}

/* Responsive Design */
@media (max-width: 480px) {
    form {
        margin: 20px;
    }

    #profile-list {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }

    .floating-button {
        width: 40px;
        height: 40px;
        font-size: 20px;
        line-height: 40px;
    }
}
