/* Google Font */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&display=swap');

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

body {
    font-family: 'Poppins', sans-serif;
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea, #764ba2);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px;
    color: #fff;
}

/* Title */
h1 {
    font-size: 2.5rem;
    margin-bottom: 30px;
    font-weight: 600;
    letter-spacing: 1px;
}

/* Sections */
#auth,
#uploadSection {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    padding: 25px;
    border-radius: 20px;
    width: 350px;
    margin-bottom: 25px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Inputs */
input[type="email"],
input[type="password"],
input[type="text"],
input[type="file"] {
    padding: 12px;
    border-radius: 12px;
    border: none;
    outline: none;
    font-size: 0.9rem;
}

/* Buttons */
button {
    padding: 12px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    transition: 0.3s ease;
    background: linear-gradient(45deg, #ff6a00, #ee0979);
    color: white;
}

button:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
}

/* Divider */
hr {
    width: 60%;
    margin: 30px 0;
    border: 0.5px solid rgba(255, 255, 255, 0.3);
}

/* Posts Container */
#posts {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    width: 100%;
    max-width: 1100px;
}

/* Individual Post */
.post {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    padding: 20px;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
    transition: 0.3s ease;
}

.post:hover {
    transform: translateY(-8px);
}

/* Username */
.post p:first-child {
    font-weight: 600;
    margin-bottom: 10px;
}

/* Image */
.post img {
    width: 100%;
    border-radius: 15px;
    margin-bottom: 10px;
    object-fit: cover;
}

/* Caption */
.post p:nth-child(3) {
    font-size: 0.9rem;
    margin-bottom: 10px;
    opacity: 0.9;
}

/* Like Button */
.post button {
    width: 100%;
    background: linear-gradient(45deg, #ff416c, #ff4b2b);
}

.post button:hover {
    transform: scale(1.03);
}