/* Base Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: #f5f5f5;
    color: #333;
}

header {
    background-color: #310f8f; /* LAUTECH purple */
    color: white;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header h1 {
    margin: 0;
    font-size: 1.5rem;
}

nav a {
    color: white;
    text-decoration: none;
    margin-left: 1rem;
}

nav a:hover {
    text-decoration: underline;
}

main {
    max-width: 800px;
    margin: 2rem auto;
    padding: 0 1rem;
}

/* Auth Forms */
.auth-form {
    max-width: 500px;
    margin: 2rem auto;
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.auth-form h2 {
    margin-top: 0;
    color: #310f8f;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.form-group input {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

button, .like-btn {
    background-color: #310f8f;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
}

button:hover, .like-btn:hover {
    background-color: #310f8f;
}

.error {
    color: #e74c3c;
    margin-bottom: 1rem;
    padding: 0.5rem;
    background-color: #fdecea;
    border-radius: 4px;
}

/* Posts */
.post {
    background: white;
    margin-bottom: 1.5rem;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.post-header {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.post-header img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 1rem;
    object-fit: cover;
}

.post-header h3 {
    margin: 0;
    font-size: 1.1rem;
}

.post-header small {
    color: #777;
    margin-left: auto;
}

.post-content {
    margin-bottom: 1rem;
    white-space: pre-line;
}

.post-image {
    max-width: 100%;
    max-height: 300px;
    display: block;
    margin: 0 auto 1rem;
    border-radius: 4px;
}

.post-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #777;
    font-size: 0.9rem;
}

/* Profile */
.profile-header {
    text-align: center;
    margin-bottom: 2rem;
}

.profile-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #310f8f;
}

.profile-form {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.user-posts {
    margin-top: 2rem;
}

/* Responsive */
@media (max-width: 600px) {
    header {
        flex-direction: column;
        text-align: center;
    }
    
    nav {
        margin-top: 1rem;
    }
    
    .post-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .post-header small {
        margin-left: 0;
        margin-top: 0.5rem;
    }
}

/* Social Login Styles */
.social-login {
    margin: 1.5rem 0;
    text-align: center;
}

.social-login p {
    margin-bottom: 1rem;
    color: #666;
    position: relative;
}

.social-login p::before,
.social-login p::after {
    content: "";
    display: inline-block;
    width: 30%;
    height: 1px;
    background: #ddd;
    position: absolute;
    top: 50%;
}

.social-login p::before {
    left: 0;
}

.social-login p::after {
    right: 0;
}

.google-login-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: white;
    color: #444;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.google-login-btn:hover {
    background: #f5f5f5;
    border-color: #ccc;
}

.google-login-btn img {
    width: 20px;
    height: 20px;
}

.auth-switch {
    text-align: center;
    margin-top: 1.5rem;
    color: #666;
}

.auth-switch a {
    color: #8e44ad;
    text-decoration: none;
}

.auth-switch a:hover {
    text-decoration: underline;
}