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

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-attachment: fixed;
    color: #fff;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Glassmorphism Helper */
.glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

/* ------------ Navbar ------------ */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 50px;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-radius: 0 0 20px 20px;
    margin: 0 10px;
}

.logo {
    font-size: 26px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #03e9f4;
    text-shadow: 0 0 10px rgba(3, 233, 244, 0.5);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 25px;
}

.nav-links a {
    color: #eee;
    text-decoration: none;
    font-size: 15px;
    transition: 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-links a:hover {
    color: #03e9f4;
    transform: translateY(-2px);
}

.mail-link {
    font-weight: bold;
    color: #fff !important;
    background: rgba(3, 233, 244, 0.2);
    padding: 5px 15px;
    border-radius: 15px;
}

.mail-link:hover {
    background: #03e9f4 !important;
    color: #333 !important;
}

/* ------------ Buttons ------------ */
button {
    padding: 12px 25px;
    background: #fff;
    color: #333;
    border: none;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    font-size: 16px;
    transition: 0.3s;
}

button:hover {
    background: #03e9f4;
    color: #fff;
    box-shadow: 0 0 15px #03e9f4;
}

/* ------------ Hero Section ------------ */
.hero {
    display: flex;
    justify-content: center;
    padding: 80px 20px;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    padding: 50px;
    border-radius: 20px;
    animation: fadeIn 1s ease-in-out;
}

.hero h1 {
    font-size: 38px;
    margin-bottom: 20px;
    color: #fff;
}

.hero p {
    font-size: 18px;
    color: #eee;
    margin-bottom: 35px;
    line-height: 1.8;
}

/* ------------ Feed / Posts Section ------------ */
.feed-section {
    padding: 40px 50px;
    max-width: 1100px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
    font-size: 28px;
    color: #03e9f4;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.post-card {
    padding: 25px;
    border-radius: 20px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.post-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(3, 233, 244, 0.2);
}

.post-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.avatar {
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    color: #03e9f4;
}

.user-info h3 {
    font-size: 16px;
    color: #fff;
}

.user-info span {
    font-size: 12px;
    color: #ddd;
}

.post-title {
    font-size: 18px;
    margin-bottom: 10px;
    color: #03e9f4;
}

.post-excerpt {
    font-size: 15px;
    color: #eee;
    margin-bottom: 20px;
    line-height: 1.6;
}

.post-actions {
    display: flex;
    gap: 20px;
    color: #fff;
    font-size: 15px;
    cursor: pointer;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 15px;
}

.post-actions span {
    transition: 0.3s;
}

.post-actions span:hover {
    color: #03e9f4;
}

/* ------------ Login Section ------------ */
.login-wrapper {
    display: flex;
    justify-content: center;
    padding: 80px 20px 100px;
}

.login-container {
    position: relative;
    width: 400px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    padding: 40px;
}

.login-form h2 {
    color: #fff;
    text-align: center;
    font-size: 28px;
    margin-bottom: 10px;
}

.login-form p {
    color: #eee;
    text-align: center;
    margin-bottom: 30px;
    font-size: 14px;
}

.input-group {
    position: relative;
    margin-bottom: 30px;
}

.input-group input {
    width: 100%;
    padding: 10px 0;
    font-size: 16px;
    color: #fff;
    border: none;
    border-bottom: 1px solid #fff;
    outline: none;
    background: transparent;
    transition: 0.5s;
}

.input-group label {
    position: absolute;
    top: 0;
    left: 0; /* Changed back to left for LTR */
    padding: 10px 0;
    font-size: 16px;
    color: #fff;
    pointer-events: none;
    transition: 0.5s;
}

.input-group input:focus ~ label,
.input-group input:valid ~ label {
    top: -20px;
    left: 0; /* Changed back to left for LTR */
    color: #03e9f4;
    font-size: 12px;
}

.footer-links {
    margin-top: 20px;
    text-align: center;
}

.footer-links a {
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    transition: 0.3s;
}

.footer-links a:hover {
    color: #03e9f4;
    text-decoration: none;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        gap: 15px;
        padding: 15px;
    }
    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
    }
    .hero h1 {
        font-size: 28px;
    }
    .login-container {
        width: 100%;
    }
}
