/*
 * Public CSS for Reddit Style WP Plugin
 */

.rswp-auth-form, .rswp-create-topic, .rswp-profile, .rswp-dashboard {
    max-width: 600px;
    margin: 20px auto;
    padding: 20px;
    border: 1px solid #eee;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.rswp-auth-form input[type="text"],
.rswp-auth-form input[type="password"],
.rswp-auth-form input[type="email"],
.rswp-create-topic input[type="text"],
.rswp-create-topic select,
.rswp-create-topic textarea {
    width: 100%;
    margin-bottom: 15px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.rswp-topic-item {
    display: flex;
    margin-bottom: 20px;
    padding: 15px;
    border: 1px solid #eee;
    border-radius: 8px;
    background: #fff;
}

.rswp-vote-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-right: 20px;
    min-width: 40px;
}

.rswp-vote-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 20px;
    color: #888;
    padding: 0;
}

.rswp-vote-btn:hover {
    color: #ff4500;
}

.rswp-vote-count {
    font-weight: bold;
    margin: 5px 0;
}

.rswp-topic-content h4 {
    margin: 0 0 10px 0;
}

.rswp-topic-meta {
    font-size: 0.85em;
    color: #777;
    margin-top: 10px;
}

@media (max-width: 600px) {
    .rswp-topic-item {
        flex-direction: column;
    }
    .rswp-vote-controls {
        flex-direction: row;
        margin-bottom: 10px;
    }
    .rswp-vote-count {
        margin: 0 10px;
    }
}

/* Avatar Styling */
.rswp-profile-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.rswp-avatar-large {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 20px;
    border: 2px solid #eee;
}

.rswp-menu-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
    vertical-align: middle;
    margin-right: 8px;
}

.rswp-menu-profile a {
    display: flex;
    align-items: center;
}
